Cloud & DevOps

What is Load Balancer?

Quick answer

A system that distributes incoming network traffic across multiple servers so no single server is overwhelmed.

Load Balancer, explained

When a website receives more traffic than one server can handle, a load balancer sits in front of a group of servers and spreads requests among them. If one server fails health checks, the load balancer stops sending it traffic, improving availability.

Load balancers use different strategies, such as round robin, which cycles through servers in order, least connections, which picks the least busy server, or routing based on the user's location or request path. They can operate at the network level or the application level, where they can read HTTP details and terminate TLS encryption. Cloud providers offer managed load balancers, and open-source tools like NGINX and HAProxy are widely used for this role.

Related terms

Guides that mention Load Balancer