Messagingdlqpoison message

Dead letter queue

Definition

A dead letter queue (DLQ) receives messages that could not be processed after a configured number of attempts, or that expired or were rejected.

In practice

Without a DLQ, a poison message (one that always fails) is retried forever, wasting capacity and in ordered queues blocking everything behind it. Moving it aside keeps the main flow healthy and preserves the message for debugging.

A DLQ is only useful if someone watches it: alert on its depth, keep the failure reason with each message, and have a tested way to replay messages after a fix.

Example

After 5 failed attempts to parse a malformed invoice event, the broker moves it to invoices.dlq; an alert fires and the team replays it once the parser is fixed.