System Design
9. Message Queues and Event-Driven SystemsAnimated
Dead Letter Queues
A queue for messages that cannot be processed.
The idea
After several failures, a message moves to a separate queue for inspection.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
A service publishes an event: "OrderPlaced".
- step:
- 1/4
- at:
- Producer
1/8
The green dot is a request moving through the system.
Step by step
- 1Consumer fails
- 2Message retried
- 3After the limit move it to the DLQ
- 4Humans or tools investigate
Where it is used
Poison messages.
Watch out for
DLQs that nobody watches.