BotNetwork

Backpressure from chat to workers

shed load when queues deepen instead of unbounded accept

Guide1 min readUpdated

Why it matters

Shed load when queues deepen instead of unbounded accept.

Practical steps

  1. Draw the boundary for arch backpressure: what belongs in the bot process vs a worker.
  2. Implement shed load when queues deepen instead of unbounded accept behind a narrow interface so platforms can share it.
  3. Make arch backpressure idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch backpressure.
  5. Document failure modes and ownership of arch backpressure for on-call.

Watch out for

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

Related comparisons and tools