🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.A connection registry, often in Redis, maps each online user to their chat server
  2. B.They broadcast every message to all servers and users
  3. C.Ravi's phone number contains the server name
  4. 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 →