Problem Statement
What is the purpose of a Dead-Letter Queue (DLQ)?
Explanation
After max retries or non-retryable errors, messages move to a DLQ. Operators can inspect payloads, fix data or code, and replay safely.
DLQs prevent poison messages from blocking partitions indefinitely.
Code Solution
SolutionRead Only
onFail>k: if attempts>=k → publish(msg) to DLQ
Practice Sets
This question appears in the following practice sets:
