Realtime & Connections

WebSocket chat design

Design realtime delivery for team chat: clients send messages, receive others’ messages in under 500ms, and show typing indicators. REST QPS is modest but 150k users are concurrently connected at peak. Why WebSocket vs polling, how do connections route through the load balancer, and how do multiple API hosts broadcast to a room?

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson