Search code examples
springrabbitmqmicroservicesspring-rabbit

How does the client part communicate with a service with RabbitMQ?


I am currently learning the microservice architecture with rabbitMQ to communicate between them. I got the idea to manage the communication between different microservices but I don't really find out how does the client can manage to communicate with my microservices.

For example if I create a user via my web app, do I have to send the request to the exchange directly that will send it to the account service (how can I send it to my exchange?) or do I need a sort of API Gateway to get all my request and then transfer to the exchange?

Thanks in advance,


Solution

  • Yes, you need a gateway of some sort. More info here: https://microservices.io/ enter image description here