Swiftorial Logo
Home
Swift Lessons
AI Tools
Learn More
Career
Resources

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:

  1. Create a target group with EC2 instances.
  2. Create a load balancer (Application, Network, or Gateway).
  3. 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.