One Bad Message Should Not Stop the Queue
Repeatedly retrying an unprocessable message can hold useful work hostage. Give failed jobs a visible destination and a controlled way back.

Recognize the repeat offender
A malformed record, a retired customer reference, or an unsupported event version may fail every time it is processed. Retrying it rapidly consumes capacity without creating a path to success. Record failure categories and attempt counts so operators can distinguish a temporary provider outage from an input that needs correction. Keep private payloads out of general logs; diagnostics should point to an appropriately protected record rather than copying everything into an alert.
Separate work that needs attention
After an appropriate bounded retry policy, move the job to a review or dead-letter destination while allowing other work to continue. Preserve enough context to understand its original purpose, version, and business identity. Define who owns that destination and how often it is checked. An isolated queue nobody monitors is simply a quieter place to lose work, especially when the customer was already told their request had been accepted.
Do not replay the successful neighbor
Suppose three synthetic fulfillment events are queued and only the middle one contains an unsupported status. After processing, the first and third should have traceable outcomes, while the second is isolated with a useful reason. Correct the mapping and replay only that event. Verify that the fulfillment partner sees no second request for the neighbors. This is a more revealing exercise than clearing the failed queue and resending the entire batch, because it proves that recovery can be narrow and that completed work remains completed.
Repair before replaying
The cause might be fixed in code, corrected data, or a changed mapping. Verify that cause before returning the job to normal processing. Record the replay decision and retain the original event identity where needed to prevent duplicate effects. Do not solve an error by replacing an identifier until it looks new. That can bypass safeguards and turn a previously completed action into an accidental second payment, order, or notification.
Prove the recovery path
Use synthetic failed jobs to test inspection, correction, replay, and a second failure. Check that a replay cannot jump authorization boundaries or overwhelm a recovered provider. Keep bulk replay separate from an ordinary retry button and make its scope visible before execution. The useful outcome is a traceable resolution for affected business records, with completed work left intact and genuinely unresolvable cases explicitly closed rather than retried forever.


