What Is a Message Queue?
A message queue is a system that temporarily stores messages sent from one part of an application until another part is ready to process them, decoupling pro...
Published October 9, 2026
A message queue is a system that temporarily stores messages sent from one part of an application until another part is ready to process them, decoupling producers of work from the consumers that perform it.
Why it exists
- Processing some work directly and synchronously (like sending an email during a web request) can slow down the user-facing response and fail entirely if that step has a temporary problem
- A queue lets that work happen asynchronously, in the background, independent of the original request
How to apply it
- Use a queue for slow or unreliable operations that don't need to block the immediate response, like sending emails, processing uploads, or generating reports
- Popular message queue systems include RabbitMQ, Amazon SQS, and Redis-backed queues used by many web frameworks
FAQ
What happens if a queued job fails?
Most queue systems support automatic retries with backoff, and a "dead letter queue" to hold jobs that fail repeatedly, so they can be inspected rather than silently lost.