HomeNetworks & Graph TheoryLoad Balancer Policy Simulator

⚖️ Load Balancer Policy Simulator

Interactive 3D server farm where routing incoming requests via round robin, least connections or power-of-two-choices shows how each policy affects queue length and latency.

Networks & Graph Theory3DModerate60 FPS
load-balancer-policies-lab ↗ Open standalone

Requests stream in from a client node, get routed across a bank of backend servers, wait in a visible queue, and get processed — showing exactly how round robin, least connections and power-of-two-choices spread the load differently.

🔬 What It Demonstrates

Round robin ignores current load and can pile requests onto a slow server; least connections always targets the shortest queue; power-of-two-choices gets nearly the same balance by sampling just two servers at random.

🎮 How to Use

Pick a routing policy, raise the request rate or server count, and toggle uneven server speeds to see queues build up unevenly. Watch the per-server connection counts and average latency respond live.

💡 Did You Know?

Real load balancers such as NGINX, HAProxy and cloud application load balancers all ship variants of these exact three policies, because full global knowledge of every server's load is expensive to keep up to date at scale.

⚙ Under the hood

Interactive 3D server farm where routing incoming requests via round robin, least connections or power-of-two-choices shows how each policy affects queue length and latency.

load-balancinground-robindistributed-systemsrequest-routingserver-clusterslatencynetworks

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)