Microservices Why Use RabbitMQ?

In Microservices architecture you have two ways to communicate between the microservices:

  • Synchronous – that is, each service calls directly the other microservice , which results in dependency between the services
  • Asynchronous – you have some central hub (or message queue) where you place all requests between the microservices and the corresponding service takes the request, process it and return the result to the caller. This is what RabbitMQ (or any other message queue – MSMQ and Apache Kafka are good alternatives) is used for. In this case all microservices know only about the existance of the hub.

microservices.io has some very nice articles about using microservices

Leave a Comment