Answer the question
In order to leave comments, you need to log in
What is the correct way to work with RabbitMQ queues?
There is a gateway that accepts requests from the outside (api, front) and 2 microservices to which the gateway delegates processing. The first thing that came to mind was to create one by one for each microservice, how right / wrong is this option?
The project is purely for familiarization with Rabbit, alternative solutions are not needed, thanks in advance)
Answer the question
In order to leave comments, you need to log in
If these requests to the gateway do not require a response from microservices to form a response to the user (asynchronous), then RabbitMQ will fit well. Your solution will work fine (service queue), but see if it can still be divided into different areas within the service, or if even narrower - by queue for a specific method. "Narrowing" the queue will make it possible to further divide the microservice into several, as well as give more for monitoring (it will be clear in more detail what types of requests are in the queue more, etc.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question