Documented webhook response limits range from 2 seconds at LINE to 60 seconds at SmartHR, making signature verification, storage and immediate 2xx acknowledgement the common pattern.
Provider documentation lists response windows from 2 seconds for LINE’s Messaging API to 60 seconds for SmartHR. Slack and Zoom allow 3 seconds, Shopify 5 seconds and GitHub 10 seconds; Stripe does not state a numerical limit and asks senders to return 2xx quickly.
The recommended acknowledgement-first flow is to verify the signature against the raw request body, store the event or enqueue it, return 2xx, and perform the slower work in a separate worker. Signature failures should receive 400 or 401, while transient server failures should use 5xx so the sender can retry.
Timeouts can produce duplicate processing even when the original handler eventually finishes. Events should therefore be deduplicated by an identifier such as webhook-id, Stripe’s event ID or X-Shopify-Webhook-Id; duplicate deliveries should still receive 2xx.
Serverless environments require additional care. Cloudflare Workers can use ctx.waitUntil() for up to 30 seconds on HTTP-triggered Workers, while Vercel’s waitUntil() shares the function timeout and after() is recommended on Next.js 15.1 and later. Neither mechanism replaces a queue or durable table when failed work must be recovered.