Realtime chat hits the same wall: many clients, one order, one truth. You need a single source of truth for the room — not a longer feature list.
A Cloudflare Durable Object (DO) is a named little server. Workers are request-scoped; a DO reached with getByName("room-42") is always the same instance, holding memory, SQLite, WebSockets, and alarms together.
Serverless, yet a stateful small process. Wherever Cloudflare places it, getByName("lobby") still means that lobby.
Use a DO when multiple clients must share order and state. Use plain Workers for independent, read-heavy work.
First design question: what is the coordination atom? Room, match, tenant — one DO each. Never a global singleton.
Part 2 applies the atom to chat rooms.