BotNetwork

Shared kernels across bot platforms

share domain modules; keep transport packages separate

Guide1 min readUpdated

Why it matters

Share domain modules; keep transport packages separate.

Practical steps

  1. Draw the boundary for arch shared kernels: what belongs in the bot process vs a worker.
  2. Implement share domain modules; keep transport packages separate behind a narrow interface so platforms can share it.
  3. Make arch shared kernels idempotent at the message/update id layer.
  4. Add contract tests between the adapter and the core for arch shared kernels.
  5. Document failure modes and ownership of arch shared kernels for on-call.

Watch out for

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

Related comparisons and tools