SpinTheMic
Pro

Interview practice question

Draining nodes disconnects WebSocket clients

Cloud & DevOps · Kubernetes · Experienced

Your service holds long-lived WebSocket connections, and every node drain or deployment disconnects thousands of users at once. How do you handle this?

What a strong answer covers

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

  • Longer termination grace period.
  • Graceful drain: stop new connections, close gradually.
  • Clients reconnect with jitter/backoff.
  • PDBs and slower rollouts.
  • Connection-aware load balancing.
Practise this topic

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

See all topics