Separate receipt from completion
Consider a fictional workflow that receives an event, creates a case and attaches a document. A failure in the last step does not undo the case creation. Replaying every step may create a second case.
Provider-specific delivery verification, such as Shopify’s documented webhook checks, establishes a message’s provenance. It does not prove that the downstream business operation completed.
Record the information needed for a safe decision
| Record | Purpose |
|---|---|
| Delivery identity | Recognise another delivery of the same event where supported |
| Business identity | Find the intended case across attempts |
| Confirmed effects | Avoid repeating a completed action |
| Pending step | Resume from a known boundary |
| Failure category | Separate retryable interruption from invalid data |
| Reconciliation result | Verify the final state independently of the notification |
Test failure after the first irreversible effect
Use synthetic events and interrupt the workflow after case creation. Resume it and inspect the destination: one case, the intended document and an explicit completion state. Also test the same event arriving again after success.
HTTP semantics alone cannot make an arbitrary business action safe to repeat. Define deduplication and recovery for the actual destination. If the effect cannot be queried or protected, hold the operation for review instead of automatically retrying an ambiguous action.
Bound retries and preserve an ambiguous state
If the destination created the fictional case but the response was lost, query it using a stable business reference where the API supports that operation. If the effect cannot be established, stop automatic replay and assign the item for review. Treat unknown completion as its own state rather than calling it a failure with no effect.
The recovery policy should name the retry limit, who handles exhausted attempts and what evidence closes the item. Test a duplicate arriving after success and two attempts competing for the same work. A delivery identifier is useful evidence, but preventing repeated effects still requires an implementation appropriate to the destination.
Sources and scope of references
- Shopify — Verify webhook deliveries — 2026-11-22
- IETF — HTTP Semantics, RFC 9110 — 2026-11-22