← Questions

Sticky load balancer for long-lived connections

0
StripeCodingLast asked Feb 2026

Simulate a load balancer that routes long-lived WebSocket connections to several Jupyter servers. Process a sequence of requests such as CONNECT, DISCONNECT and SHUTDOWN: place each new connection on a server, keep a user's connections sticky to the server they are on, free capacity on disconnect, and handle the connections of a server that shuts down. The task has five parts, each adding a rule, in 60 minutes.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding