Design a Load Balancer
medium 45 minSpread a shop's 100,000 requests a second over many servers.
Where it shows up
The same pattern appears across everyday software.
A shop on sale day
Traffic triples within minutes. The balancer spreads it, starts new servers gently and refuses the excess instead of drowning the rest.
Rolling deployments
Each server is drained, replaced and warmed up. Shoppers notice nothing.
Canary releases
A rule sends 1% of requests to the new version and the rest to the old one.
Fail open on purpose
AWS documents that an Application Load Balancer routes to all targets when every registered target is unhealthy.
A panic threshold
Envoy stops trusting health status when too few hosts are healthy. Its documented default is 50%.
Layer 4 on ordinary machines
Google's Maglev paper describes balancers that share one address and agree on the server for each connection by hashing.