← Questions

Load balancer with worker states, a priority queue and autoscaling

0
Scale AICodingLast asked Dec 2025

In a time-boxed backend round, write a small load balancer in Python. Workers move through states (for example starting, idle, busy, draining), requests go to workers through a priority queue, and the pool scales up and down with load. Write complete, running code.

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