Skip to content
Engineering

Load Balancer

Definition

A load balancer is a device or software that distributes incoming network traffic across multiple servers to improve responsiveness, reliability, and scalability. It acts as a single entry point for clients to access multiple servers behind it.

Diagram

A load balancer with one failed serverUsers send requests to one address, the load balancer. It spreads them across four servers. Server 3 has failed its health check, so it gets no traffic, and the other three take a third each until it recovers.usersLoad balancerone addressServer 133% of trafficServer 233% of trafficServer 3failed health checkServer 433% of traffic×
The load balancer checks each server every few seconds and routes around failures, so users don’t notice one going down. It also makes adding capacity easy: put another server behind it. The load balancer itself must not become the single point of failure, so it usually runs in pairs.

Worked example