SpinTheMic
Pro

Explain it in 60 seconds

Draining long-lived connections during deploys

System Design · APIs and Communication · Experienced

How do you deploy new versions of a service that holds hundreds of thousands of WebSocket connections without disrupting users?

What a strong answer covers

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

  • Stop accepting new connections on old instances.
  • Gradually close existing connections.
  • Clients reconnect with backoff and jitter.
  • Resume state with last event ID.
  • Spread drain over minutes.
Practise this topic

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

See all topics