Wrong Room
A chat backend runs three identical WebSocket nodes behind a load balancer, each holding an in-process map of user id to socket. Users on the same node see each other's messages instantly, but a message from a user on node 1 never reaches a recipient connected to node 3. What is the fix?
Sign in to answer questions and track your progress
Sign In