The problem worth understanding
A retry policy cannot turn every failure into eventual success. An invalid identifier, missing authority or changed business rule may keep failing no matter how often the message is sent. Repeating too quickly can also worsen an overloaded dependency. Reliable recovery starts by understanding which conditions are temporary, which need a correction and which require an accountable person to decide.
A considered approach
Classify the failures at the boundary. For temporary conditions, use a bounded retry approach with spacing appropriate to the dependency and a clear stopping condition. Preserve logical operation identity so repetition does not duplicate work. For invalid information, surface the reason and the correction route. For uncertain outcomes, reconcile before replaying. Show an operational status that distinguishes waiting for another attempt from a stopped item needing attention.
Decisions and tradeoffs
Automatic recovery reduces manual effort but can hide repeated faults if nobody sees the pattern. Immediate escalation creates noise for brief interruptions. Choose the balance according to the business consequence and response ownership. A queue of failed work is not a recovery strategy by itself. Someone needs enough context, appropriate access and a safe action to resolve the item without inventing technical steps.
Useful artifacts
Create a failure catalogue, retry rules, stop conditions, operator view and recovery runbook. Include a record of attempts that explains progress without retaining unnecessary sensitive content. Acceptance scenarios should test interruption after the receiver acts as well as interruption before it receives anything.
Review it in context
Rehearse recovery with an operator using a representative failed item. Observe whether they can distinguish safe replay from an uncertain outcome. If they need the original engineer to interpret each case, the view, ownership or procedure still contains implicit knowledge that should be made available before handover.
A useful question
What information would make retrying an informed action rather than a guess?
Questions worth checking.
- Does each failure category have an owner and response?
- Is replay safe after an uncertain outcome?
- Can stopped work be resolved without searching raw logs?