Skip to content

Load Balancer Algorithm

Medium — good to knowNetworking

ELI5 — The Vibe Check

Load balancer algorithms decide which server gets the next request. Round robin takes turns. Least connections picks the least busy server. Weighted lets you send more traffic to beefier servers. It's the traffic cop at the server intersection.

Real Talk

The strategy a load balancer uses to distribute incoming requests across backend servers. Common algorithms include: Round Robin (sequential rotation), Weighted Round Robin (proportional distribution), Least Connections (least active), IP Hash (client affinity), Random, and Least Response Time.

When You'll Hear This

"We switched from round robin to least connections because some requests take 10x longer than others." / "Use IP hash for session affinity when you can't externalize session state."

Made with passive-aggressive love by manoga.digital. Powered by Claude.