Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Idempotency · Webhooks

Direct answer

Consumer design that makes repeated processing of the same webhook event converge on one intended effect.

When to use this

Use it when designing, operating or troubleshooting the webhook boundary around Idempotency. Keep producer event, delivery identity, source verification, acknowledgement, durable processing and downstream state separate.

First 30 seconds

1. Process each event once in effect.

2. Store processed event IDs with TTL.

3. Use upserts/conditional updates.

4. Test with duplicate deliveries.

5. Log duplicates.

Operational verification

event ID → seen? → skip or process

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
webhook delivery automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformwebhook delivery automation · Automation → Webhooks owns generic Idempotency semantics. Broader event orchestration remains in Event-Driven Automation, and provider/target-specific behavior stays in the owning platform Domain.
Scope / prerequisiteUse it when designing, operating or troubleshooting the webhook boundary around Idempotency. Keep producer event, deliv…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

event ID → durable dedupe lookup → processing state → idempotent/transactional side effect → completion marker → duplicate acknowledgement

Healthy evidence: event identity is durable, side effects converge safely and interrupted states can be reconciled without duplicate business impact.

Step 2 Failure modes and next checks Narrow the fault

Suspicious evidence: in-memory only dedupe, completion marker before side effect, side effect before marker with unsafe retry or provider event ID ignored.

Step 3 Common mistakes Narrow the fault
  • Processing duplicates twice.
Step 4 Where it fails Narrow the fault

Where Idempotency usually goes wrong: stable operation key, desired/current-state comparison, no-op behavior and duplicate-mutation prevention.

Evidence references

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.

observation · 1
Key points
  • Idempotent handler ≠ duplicate event impossible; duplicates still occur and must be recognized or made harmless.
  • HTTP idempotency ≠ business idempotency automatically; downstream systems may create repeated side effects.
  • In-memory dedupe ≠ durable idempotency; process restart can forget prior events.
  • Event ID stored ≠ side effect committed atomically; crash ordering can leave either duplicate risk or lost work.
Key checks
  • Event ID dedup store (Redis/DB) — idempotency
  • Idempotent handlers (upsert) — effects
  • Duplicate delivery test — verification
ReferenceWhat it is1 section · depth on demand

Core model

Consumer design that makes repeated processing of the same webhook event converge on one intended effect.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A dedupe record shows an event identity was seen; without atomic processing semantics it does not show the side effect completed exactly once.

In depth

Webhook idempotency means processing the same event twice has no extra effect. Producers retry when they do not get a timely 2xx, and networks can duplicate requests, so receivers will see repeats.

delivery_id = request.headers["X-GitHub-Delivery"]
if seen.exists(delivery_id):
    return "", 200            # already handled
seen.add(delivery_id, ttl=7*86400)
queue.enqueue(handle, request.get_json())
TechniqueExample
Store delivery/event IDsRedis or database table with TTL
Idempotent actions"Ensure VLAN exists" instead of "create VLAN"
Version checksIgnore events older than current state

Acknowledge duplicates with 2xx so the producer stops retrying.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docwebhook delivery automation current

Authoritative/upstream documentation reviewed for bounded claims in Webhooks > Idempotency. 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%
Terminology layer

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.

Aliases that resolve here
webhook idempotencyidempotent webhook handlerwebhook deduplicationexactly once webhook
Embedded reference data

Quick lookup tables

Idempotency webhook boundary map

Fast request/delivery, trust, processing and verification boundaries for Idempotency.

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
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For Idempotency, rely on structured fields and stable IDs (stable operation key, desired/current-state comparison, no-op behavior and duplicate-mutation prevention) rather than text formatted for display.

Confirmation

Confirm action

Continue?