BotNetwork

The ack-first pattern for webhook bots

ACK without durability is how you lose updates.

Published 1 min read

Safe sequence

  1. Verify signature
  2. Persist the update id (or enqueue atomically)
  3. Return 200
  4. Process

On Cloudflare Workers, ctx.waitUntil helps after the response, but durable storage still matters for retries.

See latency budget and APIs and webhooks.