Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

How do you handle long-lived connections (WebSockets, SSE, gRPC streams) during deploys?

AdvancedProductionLoad Balancing, Proxies & nginx in Production
Answer

Increase idle timeouts, send heartbeat pings so intermediaries do not drop idle flows, drain gracefully by sending a close frame or GOAWAY and letting clients reconnect with jitter to avoid a thundering herd, and use deregistration delay longer than typical session length where tolerable.

Plan capacity for reconnect storms; a deploy that disconnects 200,000 clients at once is an incident.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production