← Quiz: Design a Chat App: all 10 questions
Quiz: Design a Chat App · Question 9 of 10
How do chat servers know which server Ravi's WebSocket is connected to?
How do chat servers know which server Ravi's WebSocket is connected to?
- A.A connection registry, often in Redis, maps each online user to their chat server
- B.They broadcast every message to all servers and users
- C.Ravi's phone number contains the server name
- D.The load balancer stores all messages
Answer & explanation
Correct answer: A connection registry, often in Redis, maps each online user to their chat server
The registry lets server A forward the message straight to server B.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Chat App quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →