AlgoViz

Load balancing with unequal work

medium 7 min

Routing algorithms choose a target at a particular granularity.

Where it shows up

The same pattern appears across everyday software.

  • Equal request counts, unequal queues

    A service mixes long exports with short reads. Backends get roughly equal numbers of requests but one develops a long queue. Inspect active work and service time by class. A long-lived multiplexed connection can carry many simultaneous requests, making connection count a poor proxy. Choose an observable signal aligned with actual occupancy.

  • Verifying the intervention

    Isolate exports or route by outstanding work. Compare the maximum queue and tail delay. If outstanding work is balanced, compare host-specific CPU limits, data locality and dependency waits.