Skip to content
Article Issue #5257

Webhook Retry Logic

What to know

Webhook retry logic refers to the strategy a webhook provider uses to re-attempt delivery of an event payload when the initial HTTP request fails or the consumer returns a non-2xx status; Providers typically retry with exponential backoff: the first retry fires after seconds, subsequent retries after minutes, and final retries after hours or days; Consumer endpoints that process webhook events synchronously, such as running a slow database write before returning 200, are a common cause of apparent delivery failures

Webhook Retry Logic, WikiWalls Glossary illustration

« Back to Glossary Index

Webhook retry logic refers to the strategy a webhook provider uses to re-attempt delivery of an event payload when the initial HTTP request fails or the consumer returns a non-2xx status. Robust retry logic is essential because consumer endpoints may be temporarily unavailable due to deployments, network partitions, or overload.

How it works

Providers typically retry with exponential backoff: the first retry fires after seconds, subsequent retries after minutes, and final retries after hours or days. The total retry window varies by provider (for example, Stripe retries for up to 72 hours). Because the same event can be delivered multiple times, consumer endpoints must be idempotent.

Key facts

  • Exponential backoff: Retry intervals grow geometrically (1s, 2s, 4s, 8s) to reduce thundering herd on recovery
  • Idempotency requirement: Consumers must handle the same event ID arriving multiple times without duplicate processing
  • Dead-letter queue: Events that exhaust retries should be captured for manual inspection and replay

For builders

Consumer endpoints that process webhook events synchronously, such as running a slow database write before returning 200, are a common cause of apparent delivery failures. Accept the webhook immediately, enqueue it, and process asynchronously.

Sources

« Back to Definition Index
Administrator · 41 published guides · Joined 2016

Welcome to wikiwalls

The WikiWalls Journal · Free, weekly

One careful fix in your inbox each Wednesday.

No affiliate links inside the diagnosis. No sponsored "top 10". One careful fix per week — unsubscribe in one click.

No tracking pixels · No spam · Edited by a human.