🔗Dead Letter Queue (DLQ)
Also known as DLQ, Dead-Letter Queue, Dead Letter Exchange
A side queue for failed messages. Now they stop blocking the rest.
Think of it like
Think of it like a box at the post office. Letters that cannot be sent wait there for a person.
Example
On Amazon SQS, the setting maxReceiveCount says how many tries a message gets. Jack sets it to 5, so a message that fails five times moves to his DLQ.
Why it matters
Without one, a bad message is either lost or retried forever. Both hide the real problem.
Definition
Common mistake
Key takeaways
- 1Set the tries. Choose how many fails moves a message.
- 2Keep the line moving. Bad messages step aside.
- 3Alarm and replay. Watch it, fix it, then send again.