Concept explanation
Scaling a backend is not only adding servers. Traffic has to be distributed in a way that respects capacity, health, and active work.
Route simulated traffic across backend servers using round robin, weighted round robin, least connections, and random strategies.
practice/load-balancer-challenge Stability score Play, get feedback, save local progress, and optionally submit a leaderboard score.
Scaling a backend is not only adding servers. Traffic has to be distributed in a way that respects capacity, health, and active work.
Use the controls below. Feedback appears immediately, and final scores are stored locally.
Top 10 submitted scores. No account required.
Loading leaderboard...
Finish the game to load your latest local score.
Load balancers distribute traffic across multiple backend instances. The best strategy depends on request cost, server capacity, health, and whether user sessions need stickiness.
Round robin is simple, weighted routing handles different capacity, and least connections reacts to uneven active work.
Short answers for how this game fits backend interview and study practice.
Random routing is simple and can work surprisingly well at scale, but it can be unstable in small simulations or uneven server pools.
Sticky sessions route a user back to the same backend instance, which can help session state but may create uneven load.