Load balancing began with buying a bigger server and grew into layers of DNS, proxies, cloud services and per-request choices made inside every client. Each stage fixed the previous one's blind spot and created a new one.
1993–1994
Stage 1
One server, then a bigger one
The problem
Early websites ran on a single machine. As the web grew, popular sites received more requests than one server could answer, and pages slowed down or failed to load.
What came before fell short because
With only one machine, the only fix for overload is a faster machine. Each upgrade needs planning and downtime, and the site is still down whenever that one machine fails.
What changed
Teams scaled vertically by moving the web server to a faster, more powerful computer. The National Center for Supercomputing Applications (NCSA) did this in late 1993, when requests to its web server exceeded what the machine could handle.
Benefits
Nothing about the software, the site's address or its links had to change, so a bigger machine was the quickest and simplest fix.
New problems it created
Growth caught up again. NCSA's new machine fell behind as weekly requests passed one million, and the site still depended on a single machine. The team concluded that the only long-term answer was to spread the load across several servers.
Where you see it today
Scaling up is still a sensible first step for many small services. The load-balancing lesson's overload experiment starts from exactly this situation, with one server receiving far more traffic than it can handle.
A busy site needed several servers to answer under one name, without users picking a server and without breaking existing links.
What came before fell short because
Splitting the documents across machines with different host names would have broken links and meant constant shuffling of files, as the NCSA team noted when it rejected that option.
What changed
NCSA ran a cluster of identically configured servers that shared one set of documents through a distributed file system. Its DNS server rotated through their addresses, handing a different one to each new lookup of the site's name (round-robin DNS). RFC 1794 (1995) described a DNS server that went further and reordered the addresses by measured server load.
Benefits
Capacity grew by adding a server to the pool, nothing changed for users, and the site no longer depended on a single machine.
Late 1990s
Stage 3
Hardware load balancers
The problem
Sites needed each connection sent to a server that was alive and not overloaded, and a failed server removed straight away, which DNS could not do.
What came before fell short because
DNS answers are cached for minutes or longer and DNS sees neither load nor failures, so it cannot react to what is happening inside the cluster.
What changed
Vendors built dedicated devices, often called web switches, that sit in the traffic path. Clients see one virtual IP address, and the device picks a server for each new connection. Layer-4 switches such as Cisco LocalDirector, F5 BIG-IP and Foundry ServerIron rewrote packet addresses; layer-7 switches read the HTTP request itself and could route by URL or cookie. The open-source Linux Virtual Server project showed the same layer-4 forwarding in software.
Benefits
Decisions now happened per connection, using current information about the servers. Failed servers could be skipped quickly, and the whole cluster appeared to clients as a single address.
2001–2004
Stage 4
Software proxies: HAProxy and NGINX
The problem
Many teams wanted load balancing without buying appliances, and the busiest sites needed to hold many thousands of client connections open at once.
What came before fell short because
Appliances were costly and closed. Web servers that used one process or thread per connection struggled with large numbers of simultaneous connections.
What changed
Open-source reverse proxies turned an ordinary server into a load balancer. The HAProxy project released version 1.0 in December 2001 and added health checks and cookie insertion in version 1.1 in 2002. NGINX, first written in 2002 and released as open source in 2004, was built to handle 10,000 simultaneous connections with an event-driven design; reverse proxying with load balancing was added later.
Benefits
Load balancing became cheap and available to any team. It ran on the same kind of hardware as everything else, and its configuration lived in text files that could be reviewed and versioned like code.
2000s
Stage 5
Health checks, sticky sessions and TLS offload
The problem
Spreading requests was not enough. Balancers kept sending users to servers that had crashed or hung, logged-in users lost their session when they landed on another server, and encrypting every connection used a lot of each server's CPU.
What came before fell short because
A balancer that only counts connections cannot tell a healthy server from one that returns errors, and applications kept session data in the memory of whichever server handled the login.
What changed
Balancers gained three standard features. Active health checks probe each server, for example by requesting a known URL, and remove it from the pool after repeated failures; passive checks watch real responses for errors. Session persistence (sticky sessions) sends a user back to the same server, using a cookie the balancer inserts or a hash of the client's IP address. TLS termination (SSL offload) decrypts traffic at the balancer, so the servers behind it receive plain HTTP.
Benefits
2009
Stage 6
Cloud load balancers and auto-scaling groups
The problem
Web traffic rises and falls through the day and spikes without warning. Teams moving to rented cloud servers wanted the balancer to follow their fleet automatically as it grew and shrank.
What came before fell short because
Self-run balancers and appliances were sized ahead of time and reconfigured by hand whenever servers were added or removed, so capacity was either wasted or short.
What changed
In May 2009 Amazon Web Services launched Elastic Load Balancing, a load balancer run by the provider, on the same day as Auto Scaling, which grows and shrinks a group of servers with demand, and CloudWatch monitoring. The balancer runs as nodes in several availability zones behind one DNS name, sends traffic only to targets that pass health checks, and scales itself as traffic changes.
Benefits
A team could have a redundant, health-checking balancer in minutes, pay for it by the hour, and let the server pool follow demand without manual changes.
2000s–2010s
Stage 7
Global load balancing: GSLB, anycast and CDNs
The problem
Services with users around the world needed to send each user to a nearby, healthy data center, and to keep working when a whole site went offline.
What came before fell short because
A load balancer inside one data center cannot help users on another continent or survive that data center failing, and plain DNS round robin ignores both location and health.
What changed
Global server load balancing (GSLB) answers DNS queries differently depending on where the query comes from and which sites are healthy. Anycast announces the same IP address from many locations, so internet routing delivers each packet to a nearby site; DNS root server operators use it widely, and RFC 4786 (2006) wrote down how to operate such services. CDNs combined these techniques to steer users to nearby edge servers.
Benefits
2016–2017
Stage 8
Service meshes and client-side balancing
The problem
Systems split into many microservices make dozens of internal calls for each user request, and every call needs balancing, timeouts, retries and health tracking.
What came before fell short because
Sending every internal call through a central balancer adds a hop and a bottleneck. gRPC sends many calls over one long-lived HTTP/2 connection, so a balancer that only chooses a backend per connection sends all of a client's calls to the same server.
What changed
Two related approaches spread. In client-side balancing, each caller learns the list of backends and picks one for every call, an option gRPC supports alongside proxies. In a service mesh, a small proxy runs next to every service and does this on its behalf. Envoy, built at Lyft and released as open source in September 2016, became a common choice for that proxy and joined the Cloud Native Computing Foundation in 2017.
Benefits
1997–2010s
Stage 9
Consistent hashing and the power of two choices
The problem
At large scale, balancers must choose a server in microseconds without a complete, up-to-date view of every server's load, and some traffic must keep landing on the same server so its cache or connection stays useful.
What came before fell short because
Always picking the least-loaded server needs fresh load data from every server, which is expensive to collect at high request rates. Routing by "hash of the key modulo the number of servers" moves almost every key whenever a server is added or removed.
What changed
Two research results became everyday tools. Consistent hashing, from a 1997 MIT paper on web caching, places servers and keys on a ring so that adding or removing a server moves only a small share of the keys. The power of two choices, analyzed in a 2001 paper, showed that sampling two servers at random and using the less busy one gives exponentially better results than one random choice, while a third choice adds only a constant-factor gain.
Benefits
New problems it created
DNS knows nothing about load or health. Resolvers and browsers cache an answer for the record's time-to-live (TTL), so traffic splits unevenly and keeps flowing to a dead server until those caches expire. Very short TTLs were ignored by some resolvers and could turn the DNS server itself into a bottleneck.
Where you see it today
Returning several addresses for one name is still common, usually as a first, coarse layer in front of real load balancers. The DNS and load-balancing lessons show why cached answers make this approach slow to react.
The device became a capacity ceiling and a single point of failure of its own, so sites bought them in pairs. Appliances were expensive, had to be sized in advance, and new features meant waiting for the vendor.
Where you see it today
Dedicated appliances are still sold and used, but large operators replaced many of them with software on ordinary servers. Google's Maglev, a software network load balancer whose capacity grows by adding machines, has carried Google's traffic since 2008.
Teams now operated the balancer themselves. They had to size it, patch it, make it redundant, and keep its list of servers in step with a fleet that kept changing.
Where you see it today
HAProxy and NGINX remain among the most widely used load balancers and reverse proxies. The round-robin and IP-hash options in the load-balancing lesson's algorithms experiment are two of NGINX's standard methods.
Most server failures were hidden from users automatically, existing applications could scale without rewriting their session handling, and expensive encryption moved to a few machines that held the certificates in one place.
New problems it created
Each feature has a trade-off. A shallow health check keeps a broken server in the pool, while one that tests a shared dependency can remove every server at once. Sticky sessions spread load unevenly and still lose sessions when a server dies. Traffic behind a TLS-terminating balancer travels unencrypted unless it is encrypted again.
Where you see it today
Every modern load balancer offers all three. The load-balancing lesson's "a server dies" experiment shows health checks removing a failed server after three missed probes, and its costs section explains why a shared session store beats sticky sessions.
The balancer became a black box with the provider's limits and pricing. Auto-scaling reacts after load has already risen, and new servers need time to boot and pass health checks, so a sudden spike can arrive before the extra capacity does. Clients still find the balancer's nodes through DNS, with a 60-second TTL.
Where you see it today
Every major cloud offers managed layer-4 and layer-7 load balancers connected to auto-scaling groups. The load-balancing lesson's failure experiment lets you set an auto-scaling target and watch latency while a replacement server boots.
Users reach a closer site with lower latency, and when one region fails, traffic can move to the others.
New problems it created
DNS-based steering sees the user's resolver, not the user, and is slowed by cached answers. Anycast leaves the choice of site to internet routing, which knows nothing about server load, and the nearest site by routing is not always the fastest.
Where you see it today
Large services stack these layers. DNS or anycast picks a region, a network load balancer in that region spreads packets across machines, and application load balancers spread individual requests. Google's SRE book describes such a frontend stack.
Balancing decisions are made per request, close to the caller, without a central hop, and features such as retries, timeouts and circuit breaking come from one place instead of being rewritten in every codebase.
New problems it created
Every service now runs next to an extra proxy, which adds latency, memory and moving parts. Clients must track backend health and load correctly, and client libraries must be maintained for each language. Debugging one request means following it through many proxies.
Where you see it today
Envoy-based meshes and gRPC's built-in client-side balancing are common choices for traffic between microservices. The evolution section of the load-balancing lesson describes this move of the decision into the caller.
Balancers get close to the best possible spread from very little information, and hash-based routing keeps caches and connections stable while the pool changes.
New problems it created
Consistent hashing still overloads the server that owns a very hot key, and both techniques make it harder to predict exactly where a given request will go.
Where you see it today
Widely used proxies such as Envoy offer least-request balancing based on two random choices and consistent-hash routing. The IP-hash step in the load-balancing lesson's algorithms experiment shows the problem consistent hashing solves; remove a server and count how many users move.