BotNetwork

Bulkheads between dependencies

isolate thread/async pools per dependency to stop cascades

Guide1 min readUpdated

Why it matters

Isolate thread/async pools per dependency to stop cascades.

Practical steps

  1. Draw the boundary for arch bulkheads: what belongs in the bot process vs a worker.
  2. Implement isolate thread/async pools per dependency to stop cascades behind a narrow interface so platforms can share it.
  3. Make arch bulkheads idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch bulkheads.
  5. Document failure modes and ownership of arch bulkheads for on-call.

Watch out for

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

Related comparisons and tools