SpinTheMic
Pro

Interview practice question

Scaling a WebSocket server

System Design · Scalability · Intermediate

Your live-notification service holds 2 million WebSocket connections on 10 servers. Some servers crash under load. How do you scale it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Measure connections and memory per server.
  • Add servers; cap connections per node.
  • Use a pub/sub layer to route messages.
  • Clients reconnect with backoff and jitter.
  • Rebalance on scale-out.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics