Answer the question
In order to leave comments, you need to log in
How to organize a Go microservice architecture?
Hello! I've been studying Go for a couple of weeks and trying to figure out the microservice architecture.
My service has fairly standard inputs: there are several entities (posts, blog categories) that can be created / edited, updated, deleted.
There are needs to communicate with other services. For interservice communication I use gRPC.
The question is how to competently create the architecture of such a microservice so that:
Answer the question
In order to leave comments, you need to log in
If you are using gRPC, then the architecture starts with inter-service communication. You describe the message structure in the .proto language and compile it into Go data structures. Then write logic handlers for these structures. That is, the starting point is the message exchange architecture. And microservices for that and micro, that they do not require internal architecture in general.
It was comfortableit only depends on straight arms. You can memorize all sorts of uncle beans, eric evansevs, etc., to the crust, but realize it in such a way that blood will flow from the eyes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question