Introduction to Load Balancing on AWS

What is Load Balancing?

Load balancing is the process of distributing incoming network traffic across multiple backend EC2 instances or servers. This helps ensure no single instance is overwhelmed, improving performance and availability.

How Load Balancing Works

Why Use a Load Balancer?

  1. Single Point of Access – Users only need to connect to the load balancer, simplifying access to applications.
  2. High Availability & Fault Tolerance – Automatically reroutes traffic if an instance becomes unhealthy.
  3. SSL Termination – Handles HTTPS encryption and decryption.
  4. Sticky Sessions – Can enforce session stickiness using cookies.
  5. Public vs. Private Traffic Separation – Can differentiate between internal and external traffic.
  6. AWS Managed Service – AWS handles maintenance, scaling, and availability of the ELB.

Types of AWS Load Balancers

AWS offers four types of managed load balancers:

1. Classic Load Balancer (CLB)