Realtime · Multiple choice

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?

hard Queues

Options

Why

Each server records which users it holds (e.g. in Redis), or subscribes to a channel per connected user. Broadcasting works for a handful of servers but multiplies traffic by the server count.

Review this in your daily deck All cards in Realtime