© Anton Dolganin 2025
When a consumer crashes on specific messages (can't parse, validation fails, business logic errors), you don’t want to lose the data — or block the stream.
💡 The fix:
dead-letter-topic
instead of crashingExample (Python, confluent-kafka):
try:
process(msg.value())
except Exception:
dlq_producer.produce("dead-letter-topic", msg.value())
📌 Why it matters:
Especially useful in ETL, file decompression, and format transformations.
© Anton Dolganin 2025