Comments (2)
@joeblew99 thanks for the note - totally agree that queues are an important part of microservice architecture. NSQ feels like a pretty solid choice here, and from my limited experience with it, seems like a great choice for applications that need to communicate in an async fashion.
Would be cool if you have any thoughts on this. I am happy to make a PR for this and contrib it back to this repo too. There are not enough examples of this around i feel.
Sounds good. Any ideas on functionality?
from go-micro-services.
thanks for the response :)
Can you comment on why your not using grpc-gateway.
It would get right a some of your boiler plate. I hate typing :)
- Easy to have a go at it too.
- You get a swagger API fro free too.
- Also grpc-web is ongong private repo, and so it will be easy to swap out when its ready later.
Now about the idea of putting in a Message queue layer and functionality:
- With a MQ, then all the good things of CQRS are then thee for the taking.
- Providence / Audit trail from the event store logs
- Ability to relay logs to simulate a bug or crash
- No need for DB migration scripts, because the event store is the full history. Its similar to how the blockchain works. When you change anything in the system just replay the logs back into the system and lets the read and write databases fill up. Its weir to get used to, but its there and makes doing advanced architectures such as machine learning possible for example.
Lbs that work well with your setup:
https://github.com/andrewwebber/cqrs
- Very well documented
- Clear
https://github.com/nvcnvn/nsq_to_couchbase
- Needed to store logs for every
- Couchbase is all golang and makes it easy to go HA.
- Your events will have Full facet search. Huge
- I woudl also pipe all application logs and metrics into it for pushing off to Prometheus later. Again the facet search is huge here because you get to have amazing tooling for search for free.
- I would even put tracing into it. But not sure yet.
Coach DB is a controversial choice for Message queue backing i know.
Couch has come along really well now and is 100% golang with offline support and full facet and text search integrated. Its compelling.
Its clear that Microservices shoudl use what they want, but i need to pick one DB as a basis for the infrastructure layer of the control plane. Hope you get me.
I dont think its a huge thing to adapt what you have now to start to use some of this.
from go-micro-services.
Related Issues (20)
- Add back in Trace Visualization
- Refactor loop in code path
- Build problems with metadata errors HOT 1
- Service API error? HOT 2
- Add lightstep instrumentation to project HOT 1
- Failed to build due to GRPC Protobuf HOT 3
- Optimize the build process w/ Docker compose HOT 1
- Microservices fail to start without Stackdriver variables in .env file.
- .env.sample is missing
- Alternative to Google Stackdriver HOT 1
- Any example for using service discovery (e.g. consul) with this code? HOT 3
- Implement client-side loadbalancing
- is there a plan to support k8s HOT 1
- Are there any benefits to use consul instead of Kubernetes for service discovery? HOT 1
- access microservices HOT 3
- Question about the GRPC protoc version HOT 2
- codahale/hdrhistogram repo url has been transferred under the github HdrHstogram umbrella
- grpc dialer issue HOT 1
- Use database instead of data binding from JSON HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-micro-services.