IT lexicon › Database › Dead-letter queue (DLQ)

Dead-letter queue (DLQ)

Database På svenska → Updated: 2026-05-28

A separate queue where messages are moved when they can't be processed after a certain number of attempts. Instead of a "poison" message blocking the queue forever, it lands in the DLQ for inspection and manual/automatic handling.

Problem: a message that consistently crashes the consumer (bad data, bug) would otherwise either block the queue or loop forever (a retry storm). After X failed attempts the system "dead-letters" the message → a parking spot where it doesn't disturb the rest. Use case: review why it failed, fix the bug, replay (redrive) the message. Standard in SQS, RabbitMQ, Kafka (via its own patterns), Azure Service Bus. Best practice: alert on DLQ depth (a growing DLQ = something is broken), store the failure reason/metadata. Distinct from a regular retry: the DLQ is the terminus after retries are exhausted. Central in robust message-driven systems and microservices.

← Back to the lexicon