Use it when designing, operating or troubleshooting the webhook boundary around Duplicate Events. Keep producer event, delivery identity, source verification, acknowledgement, durable processing and downstream state separate.
Duplicate Events
Multiple deliveries representing the same logical producer event and the operational controls used to recognize, suppress or safely reprocess them.
1. Duplicates come from retries and at-least-once delivery.
2. Dedup by event ID.
3. Handle out-of-order events (timestamps/versions).
4. Monitor duplicate rates.
5. Don't rely on exactly-once.
duplicate delivery → dedup → ignored
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
logical event ID → multiple delivery attempts → durable processing-state lookup → suppress/resume → downstream state verification
Healthy evidence: duplicate attempts map to one logical event, incomplete processing can resume and retention covers the provider replay horizon.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: payload-hash only dedupe, boolean seen-before flag hiding failed work, short retention or duplicate attempts appearing as separate incidents.
Step 3 Common mistakes Narrow the fault
- Assuming each event arrives exactly once.
- Dedup keys that expire too early.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Duplicate delivery ≠ producer bug; at-least-once systems intentionally trade duplicates for delivery reliability.
- Same payload ≠ same event identity; distinct events can legitimately contain identical values.
- Same event ID ≠ same attempt metadata; each delivery can have separate timing and response evidence.
- Duplicate suppressed ≠ downstream state correct; the first processing attempt may have failed after dedupe was marked complete.
- Duplicate counter metric — observability
- Dedup window size — coverage
- Out-of-order handling — sequence
ReferenceWhat it is1 section · depth on demand
What it is
Duplicate events happen because of retries and at-least-once delivery. Deduplicate with the event ID (or a hash) stored for a time window.
ReferenceWhy it matters1 section · depth on demand
In depth
Duplicate events are a normal part of webhook delivery: senders retry on timeouts, networks resend, and some platforms guarantee at-least-once delivery. A receiver that acts on every delivery without checking will create two tickets, run two deployments or send two notifications.
Deduplication methods:
| Method | How |
|---|---|
| Delivery ID | Store processed IDs (e.g. X-GitHub-Delivery) for a period; skip repeats |
| Idempotent action | Action has the same effect if repeated |
| Natural key | "Ticket for device X and alarm Y" exists → update instead of create |
if redis.set(f"wh:{delivery_id}", 1, nx=True, ex=86400) is None:
return "duplicate", 200
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Duplicate detection shows repeated delivery identity, but it does not show the original processing completed successfully.
Example
if redis.set(f"evt:{event_id}", 1, nx=True, ex=86400) is None:
return 200 # already processed
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Webhooks > Duplicate Events. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Duplicate Events webhook boundary map
Fast request/delivery, trust, processing and verification boundaries for Duplicate Events.
| 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 |