Review cards · 15 cards
Realtime
WebSockets, push, presence and routing messages to connected clients.
Cards
- Chat apps show "sent" when the _____ has stored a message, "delivered" when it reached the recipient's _____, and "read" when the recipient opened it.
- How does long polling work, and what does it cost compared with a WebSocket?
- The recipient's phone app is closed. How does a new chat message reach them?
- A page shows live sports scores. Only the server sends updates. Which is the simplest fit over plain HTTP, with reconnects built into the browser?
- How should "is typing…" indicators be handled differently from messages?
- At peak, 10 million clients hold WebSocket connections. One server comfortably holds 50,000. How many servers do you need?
- When should a chat server acknowledge a message to its sender?
- How does a chat service know a user has gone offline when their phone just loses signal (no "goodbye" is ever sent)?
- Why should a chat app never rely on the push notification itself to carry the message?
- A gateway holding a million WebSocket connections restarts. How do you keep the reconnects from overwhelming the other servers?
- Why are WebSocket servers harder to run than stateless HTTP servers?
- After reconnecting, a chat client asks for every message after the last _____ it has seen, so nothing that arrived while it was offline is lost.
- How should a chat service order the messages in a conversation?
- Why don't large chat apps push every online/offline change to every member of big groups?
- A chat has 50 WebSocket servers. A message for Bob arrives at server 1, but Bob is connected to server 7. How does it reach him?
More topics
- Estimation 21 cards
- Networking 16 cards
- API design 17 cards
- Caching 21 cards
- Databases 22 cards
- Replication 15 cards
- Sharding 18 cards
- Consistency 19 cards
- Queues 18 cards
- Streaming 18 cards
- Availability 14 cards
- Resilience 16 cards
- Storage 14 cards
- Data structures 16 cards
- Security 17 cards
- Observability 18 cards
- Coordination 16 cards