Pcornel
Automation · Webhooks

Dead Letter Handling

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

Back to the Topic

Answer

Retention and controlled replay of webhook events that exhaust normal delivery or processing attempts.

Remember

  • Dead letter ≠ root cause fixed; it only preserves work that could not complete.
  • Replay ≠ safe automatically; target state may have changed since the original event.
  • Message retained ≠ evidence complete; delivery headers, signature context and failure reason may be lost.
  • Queue emptied ≠ incident resolved; events can be discarded or replayed unsuccessfully.

First checks

  • Dead-letter queue/storage — failed events
  • Alert on DLQ growth — monitoring
  • Replay procedure — recovery

Verify in this order

processing fails N times → DLQ → alert → replay

Where it usually breaks

Dead-letter presence proves repeated processing failure was retained; it does not identify root cause or prove replay safety.

Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.

Dead Letter Handling 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=5329

Confirmation

Confirm action

Continue?