What is a Message Queue? #4911
Answered
by
NadeeshaMedagama
malikaweerakoon1974
asked this question in
Q&A
Replies: 1 comment
|
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 ↓ Order Service ↓ Message Queue ↓ Email Service The user receives an immediate response while the email is sent in the background. Benefits |
0 replies
Answer selected by
malikaweerakoon1974
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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