intermediateConsumer Errors, Retry & Recovery

What is a 'poison pill' message in Kafka consumer processing, and why is it dangerous if not handled?

A poison pill is a message that causes processing to fail every single time it's retried (e.g. malformed data that always throws a parse exception) — without special handling, a naive retry-forever consumer gets stuck reprocessing that same message endlessly, blocking every message behind it on that partition from ever being processed.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What's the standard pattern for handling a message that fails processing repeatedly, without blocking the whole partition?← Back to all Kafka & Microservices questions