Back to problems

Jupyter / WebSocket Load Balancer

Algorithm · Stripe · Medium

Requirements Implement the following function: capacities is an array of maximum active-connection counts, where each position identifies a server by its zero-based index. commands is an ordered list of command records: ("CONNECT", connectionId, objectId) attempts to place a new connection. ("DISCONNECT", connectionId) removes an active connection. ("SHUTDOWN", serverIndex) temporarily removes a server and redistributes its connections. Return the log generated by successful…

Checking your access…