Load Balancer

→ Application Load Balancer

Balances HTTP and HTTPS traffic

→ Network Load Balancer

Load balancing TCP Connection

→ Classic Load Balancer

Legacy Elastic Load Balancer. Uses X-forwarded and sticky Sessions.

Throws 504 when there is an error

X-Forwarded-for Header

User IP address can be taken from this header instead of load balancer IP address

Sticky Sessions for Load Balancer

Bind user session to particular EC2 instance.

It could be configured for both ALB and Classic load balancer.

Cross Zone Load Balancing

Load Balancer configured to send traffic to other availability zone

Path Pattern Load Balancing

Balancing based on URL paths

Auto Scaling

→ Groups

→ Configuration Templates

→ Scaling Options

Maintain at current levels

Scale Manually

Scale based ono Schedule

Scale based on demand

Predictive scaling