Skip to content

docs(webhooks): document durable delivery, retries, limits, and redelivery - #1583

Draft
wangsijie wants to merge 1 commit into
masterfrom
wangsijie-log-14749-docs-durable-webhook-delivery-retry
Draft

wangsijie wants to merge 1 commit into
masterfrom
wangsijie-log-14749-docs-durable-webhook-delivery-retry

Conversation

@wangsijie

Copy link
Copy Markdown
Contributor

Summary

Documents durable webhook delivery: the retry schedule, delivery guarantees, limits, and manual redelivery.

  • docs/developers/webhooks/configure-webhooks.mdx
    • Replaces the "up to three retries on 5xx" note with a new Delivery and retries section. Retries cover network errors, timeouts, 408, 429, and 5xx, with a backoff from 10 s up to 4 h for 24 hours (full attempt schedule included). Retry-After is honored up to 4 h, and the per-webhook retries setting is deprecated with no effect.
    • Delivery guarantees: at-least-once delivery for up to 24 hours or 10,000 waiting deliveries per webhook (within 50,000 per tenant), whichever comes first.
    • Limits: concurrency (5 per webhook, 20 per tenant, 100 per instance), the per-webhook circuit breaker, and waiting delivery caps (overflow events are logged as failed and can be redelivered).
    • Redeliver a failed delivery: the Console action and POST /api/hooks/{id}/recent-logs/{logId}/redeliver, with rejection statuses.
    • Monitoring: the 48-hour recent requests window, the Retrying status with attempts and next attempt time, and health status that excludes deliveries still retrying.
    • The endpoint response note now matches which statuses are retried.
  • docs/developers/webhooks/request.mdx
    • Deduplicating deliveries lists why duplicates happen (5xx or timeout after processing, restarts during a deploy, a stalled instance, manual redelivery) and says to deduplicate on deliveryId across retries and redeliveries.
    • New Handling out-of-order deliveries section: compare createdAt, or re-fetch current state.
    • deliveryId and createdAt field notes cover redeliveries, and redelivery log entries reference the original in redeliveredFrom.
  • docs/developers/webhooks/README.mdx: a short overview of durable delivery, plus a timeout FAQ that mentions the 10 s timeout, retries, and deduplication.

English only. Other locales follow the translation workflow.

Linear: LOG-14749

…ivery

Replace the legacy 3-retry note with the 24-hour retry schedule, and
document the at-least-once delivery window, duplicate and out-of-order
handling, concurrency limits, the circuit breaker, waiting delivery caps,
and manual redelivery from the Console or the Management API.

Amp-Thread-ID: https://ampcode.com/threads/T-01a22ccc-e518-733d-a5cf-7e01d623d66c
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying logto-docs-tutorials with  Cloudflare Pages  Cloudflare Pages

Latest commit: be3d289
Status: ✅  Deploy successful!
Preview URL: https://27d911ba.logto-docs-tutorials.pages.dev
Branch Preview URL: https://wangsijie-log-14749-docs-dur.logto-docs-tutorials.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying logto-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: be3d289
Status: ✅  Deploy successful!
Preview URL: https://646f01a3.logto-docs.pages.dev
Branch Preview URL: https://wangsijie-log-14749-docs-dur.logto-docs.pages.dev

View logs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant