AWS - Elastic Load balancing

2021-02-21

In AWS, Elastic Load Balancing is used to automatically distribute incoming traffic across multiple targets like AWS EC2 instances, containers, or Lambda functions. Elastic Load Balancing guarantees a monthly availability of at least 99.99%.

AWS offers four types of Load balancers that are all highly available, scalable and provide for robust security.

Classic Load Balancer (CLB)

In AWS world anything classic means older version. They provide load balancing across multiple AWS EC2 instances.

Some of the things to note about Classic Load Balancers are:

Application Load Balancer (ALB)

Application Load Balancer is used for load balancing HTTP and HTTPS traffic. This is the AWS recommended load balancer to use when wanting to load balance or route traffic based on the content of the request.

Things to remember about Application Load Balancers are:

Internal ALB

Internal ALB cannot be reached from internet. It will get a private IP Address and a private DNS Name.

External ALB

External ALB can be reached from internet and it has a public IP Address and a public DNS Name.

ALB can route traffic based on the content of the request

Types of content based routing include:

Network Load Balancer (NLB)

Network Load Balancers operate at connection level (Layer 4) and are ideal for TCP and UDP traffic. Network Load Balancers can handle millions of requests per second with ultra low latency.

Things to remember about Network Load Balancer

Gateway Load Balancer (GWLB)

Gateway Load Balancer makes it easy to deploy, scale and manage third party virtual appliances. It helps distribute traffic across multiple virtual appliances, while scaling them up and down based on demand.