Elastic Load Balancing (ELB)
Single entry point that spreads traffic across healthy instances in several AZs.
How it works
Elastic Load Balancing distributes traffic to registered targets, such as EC2 instances, containers, or IP addresses, depending on the load balancer type. ELB uses health checks to assess targets and normally routes traffic to healthy ones. You can deploy across multiple Availability Zones for resilience, but routing behavior depends on the configuration and load balancer type.
When to use it
In front of an Auto Scaling group so that instances stay private and failures are hidden.
Real-world example
A news website receives a surge of visits during a live event. An Application Load Balancer distributes requests across targets in multiple Availability Zones and normally avoids targets that fail health checks, subject to configuration and fail-open behavior.
Key facts
- Normally routes to healthy targets; behavior can vary when all targets are unhealthy.
- Route 53 uses an Alias record to point to it.
- In a 3-tier app it sits in the public subnet and allows HTTP/HTTPS from 0.0.0.0/0.
Common pitfall
Hardcoding load balancer IP addresses can break clients when addresses change. Use the DNS name or a Route 53 alias where appropriate; some Network Load Balancer configurations support static IP addresses.
Often confused with
Elastic IP, which is a fixed address for one instance.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Keywords you will see in SAA-C03 questions
- health checks
- single DNS name
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.