Welcome to the Elastic Load Balancing (ELB) lesson. As you scale your applications horizontally across multiple EC2 instances, you need a way to distribute incoming user traffic evenly among them to prevent any single server from becoming overwhelmed.
Learning about ELB is crucial because it ensures high availability and fault tolerance for your applications. Without a load balancer, if a specific server fails, the users connected to it will experience downtime. An ELB automatically detects unhealthy instances and immediately reroutes traffic only to healthy ones.
In this tutorial, you will learn:
Imagine a popular restaurant with a single host seating guests. If the line gets too long, the host becomes a bottleneck. If you add three more hosts (Horizontal Scaling), you now need a manager at the front door directing arriving guests to the next available host. That manager acts as the Load Balancer.
In AWS, Elastic Load Balancing automatically distributes your incoming application traffic across multiple targets, such as EC2 instances, containers, and IP addresses, spread across one or more Availability Zones.
AWS offers different types of load balancers, each suited for specific architectural use cases:
/images URL traffic to one set of specialized servers and /video to another).Which type of AWS Load Balancer is best suited for routing standard HTTP/HTTPS web traffic based on the URL path?