Poison Message
ELI5 — The Vibe Check
A poison message is a message that crashes your consumer every time it tries to process it. Bad data, missing fields, infinite loops — whatever the reason, it blocks everything behind it and gets retried forever. It's the rotten apple that spoils the whole queue.
Real Talk
A poison message (poison pill) is a message in a queue that consistently fails processing, potentially blocking other messages. Without handling, it creates an infinite retry loop. Mitigation strategies include max retry counts, dead letter queues, message TTLs, and circuit breakers. Identifying poison messages requires logging failed message content and error details.
When You'll Hear This
"A poison message with malformed JSON was blocking the entire payment queue." / "Set max retries to 3 so poison messages go to the DLQ instead of blocking forever."
Related Terms
Dead Letter Queue
A dead letter queue is where failed messages go to die (or at least wait for someone to fix them).
Error Handling
Error handling is the art of planning for things to go wrong and dealing with them gracefully instead of letting everything catch fire.
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.
Retry Pattern
Retry Pattern is trying something again when it fails, because sometimes failures are temporary (network hiccup, brief overload).