Design a dead-letter process for failed PDF events
13 October 2026
Check what happened at the destination before replaying a failed event. A missing acknowledgement can put a completed business action in the dead-letter queue.
Suppose three document deliveries have exhausted their retries. For one, the receiving system already recorded the intended change. Replaying all three could repeat that action. Give the queue an owner who can compare the original event with destination evidence and record a decision for each item.
Reconcile the event, the attempt and the business action
Record the event’s source and identifier, document version, intended destination, failed attempt and observed response. Look for the corresponding business action at that destination. The mere existence of a PDF with the same name does not show that the right version was attached to the right case or that the required notification was sent.
Use the event identity to link repeated deliveries. Keep each delivery attempt separately identifiable so an operator can see whether an acknowledgement, a transport step or the business action failed. ArkePDF’s illustrative event contract provides an example of the fields to agree between producer and consumer. Event contract
Choose a disposition for each item
| What the owner establishes | Disposition | Evidence required to close |
|---|---|---|
| The intended action already completed for this event and version. | Close without replay. | A matching destination record and the reason the failed attempt is redundant. |
| The action is absent and the original event is still valid. | Authorise one controlled replay. | The new attempt, its outcome and the destination result. |
| The event is invalid or the destination cannot be checked. | Repair or investigate before replay. | The defect or unknown, its assigned owner and the decision on what can safely run. |
Only the first outcome is known in the three-item example. Inspect the other two independently. A timeout leaves all three business outcomes open. The receiving system may have completed, failed or only partly performed the action.
Preserve the history through repair
Keep the original dead-letter record. If a correction creates a new payload version, link it to the original and document how the receiving system will prevent a duplicate effect. Restrict replay to the authorised operator. Record their action, time, decision and harmless reference, without copying credentials or sensitive PDF contents into the incident log. Close each item after checking its destination outcome, rather than when it merely disappears from the queue.
Part of the Test duplicate and out-of-order PDF webhook events guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
