Dead Letter Queue
ELI5 — The Vibe Check
A dead letter queue (DLQ) is where messages go to die — or more accurately, where they go when they can't be processed after multiple attempts. It's the 'undeliverable mail' pile of your messaging system. Instead of losing failed messages or retrying them forever, you park them in a DLQ where someone (or something) can investigate what went wrong and decide what to do with them.
Real Talk
A Dead Letter Queue (DLQ) is a specialized message queue that receives messages that couldn't be successfully processed by the primary consumer after a configured number of retry attempts. DLQs prevent message loss and infinite retry loops in asynchronous messaging systems. They enable debugging (inspect why messages failed), alerting (monitor DLQ depth), and reprocessing (replay messages after fixing the consumer). Supported natively in AWS SQS, RabbitMQ, Azure Service Bus, and Kafka.
When You'll Hear This
"Check the dead letter queue — the payment processor might be rejecting malformed orders." / "Set the DLQ retry limit to 3 before messages get parked."
Related Terms
Event-Driven Architecture
Event-Driven Architecture is like a gossip network. When something happens (order placed!), it broadcasts the news.
Message Queue
A Message Queue is a waiting room for tasks. Producers drop tasks in the queue, consumers pick them up and process them one at a time.
RabbitMQ
If Kafka is the massive freight train, RabbitMQ is the smart postal worker who knows exactly which mailbox each letter goes to. It's great at routing messa
SQS (Simple Queue Service)
SQS is a message queue in the cloud. One part of your app puts messages in the queue, another part picks them up and processes them later.