Skip to content
BENIBIX Learn

Load Balancer

Infrastructure🌐 NetworkingNetwork Devices

Also known as Load Balancing, Server Load Balancer

A box that hands out web traffic to many servers. Users see one address.

Think of it like

It is like a host at a busy cafe. She sends each new group to the waiter with the fewest tables.

Example

Lucy's shop runs on three servers behind a load balancer. One server crashes at lunch, and the balancer sends its traffic to the other two.

Why it matters

It is how a site grows past one server, and how it stays up when one breaks.

Definition

A load balancer spreads incoming requests across a group of servers. Users reach one address, and the balancer picks a server for each request. It can take turns, or pick the server with the least work. It runs health checks and stops sending traffic to a server that fails. So you can add a server, or lose one, and users do not notice.
The load balancer is on the right. Many users come in at one address, and the work is shared across servers.

Common mistake

Running one load balancer with nothing ready to take its place. If it fails, the whole site goes down with it.

Key takeaways

  1. 1
    Spread the work. Requests go across many servers.
  2. 2
    Skip the sick. Health checks remove broken servers.
  3. 3
    One way in. Users see a single address.

Compare

Learn it properly