Retries
Cheat sheet · https://pcornel.dk/topic.php?topic=5326
Answer
Producer redelivery policy after timeout or retryable response, typically creating at-least-once rather than exactly-once semantics.
Remember
- Retry ≠ new event; the same logical event can arrive multiple times.
- Timeout ≠ first attempt failed; consumer processing may have succeeded before the response was lost.
- Backoff ≠ deduplication; repeated delivery can still duplicate side effects.
- More retries ≠ more reliability automatically; long retry storms can overload a degraded consumer.
First checks
- Producer retry schedule — behaviour
- Consumer returns 5xx only for retryable errors — signals
- Idempotent processing — safe retries
Verify in this order
failed delivery → producer retries → consumer dedups
Where it usually breaks
A retry policy proves the producer will attempt redelivery under defined conditions; it does not provide exactly-once processing.
Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.
Retries webhook boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Source / delivery | Event, subscription, delivery ID and attempt metadata are attributable | Missing source event, stale subscription, wrong callback or delivery history gap |
| Trust / acknowledgement | Auth/signature and schema checks occur before safe acknowledgement | Unverified payload, slow handler, 2xx before durable receipt or replay weakness |
| Processing / proof | Durable dedupe/worker evidence matches downstream target state | Duplicate side effect, worker failure hidden by 2xx or no target reconciliation |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind retries, credential rotation, replay or payload edits before evidence is captured |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5326