Why it matters
Serialize work per chat id to avoid races.
Practical steps
- Draw the boundary for arch actor model: what belongs in the bot process vs a worker.
- Implement serialize work per chat id to avoid races behind a narrow interface so platforms can share it.
- Make arch actor model idempotent at the message/update id layer.
- Add contract tests between the adapter and the core for arch actor model.
- Document failure modes and ownership of arch actor model for on-call.
Watch out for
- Copy-pasting outdated snippets for arch actor model without re-reading current official docs.
- Shipping arch actor model to production without a staging rehearsal and a documented rollback.