Dead Letter Queue (DLQ)
PronunciationDED LET-er kyoo
Definition
A Dead Letter Queue (DLQ) is a holding area in a messaging system for messages that cannot be processed successfully after a set number of attempts.
Where you hear it
In asynchronous architectures, event-driven systems, and message broker configurations.
Examples
The background worker moved the malformed JSON message to the DLQ after three failed retries.
We set up an alert to notify the engineering team whenever a message lands in the payment service DLQ.
Messages that fail five times go to the dead letter queue for manual review.
Common mistake
Thinking a DLQ solves the processing error automatically, when it actually just stores the failed messages for later inspection and manual debugging.
Don't confuse with
Dead Letter Queue vs. Retry Queue: A retry queue holds messages that are temporarily failing and will be reprocessed automatically, whereas a dead letter queue stores messages that have permanently failed and require manual intervention.
Say it at work
- In a meeting or chat
I noticed a spike in our DLQ, so we should probably investigate why these messages are failing.
- In an email or ticket
Please review the messages currently sitting in the DLQ to identify the root cause of the processing errors.
Keep exploring
More in Architecture & Design