What it is
A dead letter channel is a special channel where the messaging system or a consumer puts messages that cannot be delivered or processed. It prevents bad messages from blocking the flow or being silently lost.
How it works
- A consumer fails to process a message after retries, or the system cannot deliver it.
- The message is moved to the dead letter channel.
- Operators inspect, fix, replay, or discard the dead letters.
Why it matters
- Stops a single poison message from stalling a queue forever.
- Preserves failed messages for diagnosis instead of dropping them.
- Separates the happy path from error handling.
Causes include malformed content, an unreachable destination, or repeated processing errors. Good practice is to capture why the message failed, often in headers, so operators can act. A dead letter channel that no one watches becomes a silent black hole, so it should be monitored and alerted on like any other failure signal.
Key idea
A dead letter channel collects undeliverable or unprocessable messages so they are preserved for inspection instead of lost or blocking the queue.