Load balancing is the practice of distributing incoming network traffic across several servers or services so no single one is overloaded, and traffic keeps flowing if one of them fails.

Definition
A load balancer sits in front of a group of servers and acts as the single entry point for clients. Each incoming request or connection is forwarded to one of the healthy servers behind it. Spreading the work this way lets an application handle more traffic than one machine could, and it means a failed server can be taken out of rotation without users noticing.
Load balancers can be hardware appliances, software such as NGINX, HAProxy or Envoy, or managed services from cloud providers. They operate at different layers. A layer 4 load balancer routes based on network information such as IP addresses and ports. A layer 7 load balancer understands HTTP and can route by URL path, host name, headers or cookies, and often handles TLS encryption as well.

How it works
The load balancer keeps a list of backend targets and regularly sends health checks to each, such as a request to a status endpoint. Targets that fail are marked unhealthy and receive no traffic until they recover. When a new request arrives, the load balancer picks a healthy target using an algorithm and forwards the request, then passes the response back to the client.
Common algorithms include round robin, which takes turns; least connections, which favors the least busy server; weighted variants that send more traffic to larger servers; and hashing, which sends the same client to the same server. Some applications use session affinity, or sticky sessions, to keep a user on one server, although stateless designs that store sessions centrally scale more cleanly.
Load balancing also happens at larger scales. Global or DNS-based load balancing directs users to the nearest or healthiest region, and inside container platforms, service meshes and internal load balancers distribute calls between services. Combined with auto-scaling, the load balancer automatically includes new servers as they are added and drains connections from servers being removed.
Keep learning
Put it into practice
Cloud architecture, migration and modernization on AWS and Azure, planned for reliability, security and controlled cost.
Explore serviceCI/CD pipelines, infrastructure as code, observability and automation that make releases frequent, safe and routine.
Explore serviceInfrastructure, cloud and application support run under clear SLAs, with 24/7 monitoring and a team that knows your environment.
Explore serviceFAQ
A reverse proxy sits in front of servers and forwards client requests to them, often adding caching, compression or TLS. A load balancer is a reverse proxy whose main job is spreading traffic across several servers. Many tools, such as NGINX and HAProxy, can do both, so the terms often overlap in practice.
Not for spreading traffic, but some teams still use one because it handles TLS certificates, gives a stable address, and makes it easy to add a second server or do a blue-green deployment later. If high availability matters, you need at least two servers behind a redundant load balancer.
Round robin works well when servers are identical and requests are similar in cost. Least connections suits requests with uneven duration, such as long-lived connections. Hash-based routing helps when a client should keep reaching the same server, for example for caching. Most managed load balancers choose a sensible default.
Talk to a solution architect about where it fits in your roadmap.
