AWS FAQ: Elastic Load Balancer
9. What is Elastic Load Balancing (ELB)?
Elastic Load Balancing (ELB) distributes incoming application or network traffic across multiple targets to improve fault tolerance and scalability.
πΊοΈ Step-by-Step Instructions:
- Create a target group with EC2 instances.
- Create a load balancer (Application, Network, or Gateway).
- Define routing rules and health checks.
π₯ Example Input:
Type: Application Load Balancer
Protocol: HTTP
Port: 80
π Expected Output:
Balanced and monitored traffic across registered targets.
β CLI ELB Example:
aws elbv2 create-load-balancer --name my-alb --subnets subnet-abc subnet-def --security-groups sg-123456
π Detailed Explanation:
- High Availability: Automatically reroutes traffic to healthy targets.
- Security: Integrates with WAF and SSL.
- Types: ALB (HTTP/HTTPS), NLB (TCP/UDP), GLB.
π οΈ Use Cases:
- Load balancing traffic to web servers.
- Routing based on URL patterns.
- High-throughput network routing.
