Skip to content
Discussion options

You must be logged in to vote

A message queue allows different services to communicate asynchronously.

Instead of waiting for another service to finish, a service places a message into a queue, and another service processes it later.

Example
Client

Order Service

Message Queue

Email Service

The user receives an immediate response while the email is sent in the background.

Benefits
Loose coupling
Improved scalability
Better fault tolerance
Asynchronous processing
Increased reliability
Popular Message Queues
RabbitMQ
Apache Kafka
Amazon SQS
ActiveMQ

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by malikaweerakoon1974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants