BotNetwork

Preventing retry storms

cap retries jitter and use idempotency keys everywhere

Guide1 min readUpdated

Why it matters

Cap retries jitter and use idempotency keys everywhere.

Practical steps

  1. Draw the boundary for arch retry storms: what belongs in the bot process vs a worker.
  2. Implement cap retries jitter and use idempotency keys everywhere behind a narrow interface so platforms can share it.
  3. Make arch retry storms idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch retry storms.
  5. Document failure modes and ownership of arch retry storms for on-call.

Watch out for

  • Copy-pasting outdated snippets for arch retry storms without re-reading current official docs.
  • Shipping arch retry storms to production without a staging rehearsal and a documented rollback.

Related comparisons and tools