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.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.
What is a 'poison pill' message in Kafka consumer processing, and why is it dangerous if not handled?