HardDesign: Chat System (WhatsApp/Slack)
What is the 'session affinity' or 'sticky session' problem with WebSocket servers?
— Tests your understanding of this concept.
Answer Options
AUsers can only connect to one server forever
BStandard load balancers route WebSocket upgrades incorrectly
CWebSocket connections are stateful — user must stay connected to same server
DWebSocket requires more CPU than HTTP
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 22+ more Design: Chat System (WhatsApp/Slack) questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the Design: Chat System (WhatsApp/Slack) topic (System Design Cases).
More Design: Chat System (WhatsApp/Slack) Questions
Why is WebSocket preferred over HTTP for a chat application?
HardAlice is connected to Chat Server 1. Bob is connected to Chat Server 2. Alice sends Bob a message. How is it delivered?
HardWhy is Cassandra chosen for message storage over PostgreSQL?
HardA chat server crashes while 50,000 users are connected. What happens to their messages and connections?
HardWhat does 'delivered' status mean vs 'read' status in WhatsApp?
Hard