Pcornel
Automation · Webhooks

Retries

Cheat sheet · https://pcornel.dk/topic.php?topic=5326

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Source / deliveryEvent, subscription, delivery ID and attempt metadata are attributableMissing source event, stale subscription, wrong callback or delivery history gap
Trust / acknowledgementAuth/signature and schema checks occur before safe acknowledgementUnverified payload, slow handler, 2xx before durable receipt or replay weakness
Processing / proofDurable dedupe/worker evidence matches downstream target stateDuplicate side effect, worker failure hidden by 2xx or no target reconciliation
TroubleshootingFirst failed boundary is preserved, changed minimally and retestedBlind 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

Confirmation

Confirm action

Continue?