HorizontalScalability

What is a Load Balancer?

Distributing traffic among many available servers in your application.
Written by
Raphael Cleto
Raphael Cleto

A Load Balancer (LB) allows traffic distribution among many available web servers. The client connects to a public IP, makes the request and the Load Balancer will redirect it to an available web server using a private IP.

HORIZONTAL SCALABILITY

Advantage

Tradeoff: Increased complexity

SINGLE POINT OF FAILURES

Note: Load balancer became a single point of failure itself. To avoid this problem you can also setup multiple load balancers.

TRAFFIC ROUTING STRATEGIES

There are many algorithms for routing traffic with Load Balancers. The two primary approaches are Dynamic Load Balancing and Static Load Balancing.

DYNAMIC LOAD BALANCING

Load Balancer examines the current state of servers and then distributes traffic.

Algorithms

STATIC LOAD BALANCING

Load Balancer follows fixed rules independent of the current server state.

Algorithms