Part 1 of 8 · 1 min read
Why this page comes second in Level 11
In this module you will
- Scope a chat system and estimate connections, message rate and storage.
- Compare polling, long polling and WebSocket, and choose one for each side of the link.
- Explain stateless and stateful services, and how service discovery picks a chat server.
- Follow a one-to-one message, a group message and a multi-device sync from start to end.
- Design online presence with heartbeats, and name where it stops scaling.
A feed is mostly pull: the client asks. Chat flips this. The server must reach the client at any moment, which needs a connection that stays open. That changes how servers are built, how load is balanced and how failures are handled. It also reuses the ID generator, the key-value store and the notification system from Level 10. The book used is "System Design Interview" by Alex Xu, chapter 12. Numbers marked "made up" only show the idea.