Course contentsShow
← System Design
Lesson 113 of 1,9193. Load BalancingFree lesson

Cloud Load Balancers (AWS ELB/ALB)

Understand AWS Elastic and Application Load Balancers, their managed nature, and integration with cloud infrastructure.

Cloud Load Balancers (AWS ELB/ALB)

What you'll learn: How AWS provides managed load balancing through ELB and ALB, eliminating the operational overhead of running your own load balancers.

The Managed Advantage

Instead of installing and maintaining software like NGINX or HAProxy on your own servers, cloud providers offer managed load balancers as a service. AWS provides two popular options: Elastic Load Balancer (ELB) and Application Load Balancer (ALB).

Think of it like choosing between building your own house versus renting an apartment where maintenance is included—AWS handles the servers, patches, scaling, and high availability for you.

AWS ELB (Classic Load Balancer)

ELB is AWS's original load balancer, supporting both Layer 4 (TCP/UDP) and basic Layer 7 (HTTP/HTTPS) routing. It distributes traffic across EC2 instances in a single region. While functional, it's considered legacy technology compared to newer options.

AWS ALB (Application Load Balancer)

ALB is a modern Layer 7 load balancer with advanced features:

  • Path-based routing: Route /api/* to one set of servers, /images/* to another
  • Host-based routing: Different domains routed to different backends
  • Built-in health checks: Automated monitoring of target health
  • Auto-scaling integration: Automatically adjusts to your EC2 Auto Scaling groups

Cloud Infrastructure Integration

Both ELB and ALB integrate deeply with AWS services—security groups, VPCs, CloudWatch metrics, and SSL certificate management through ACM. You configure them through AWS Console or APIs, and AWS handles the underlying infrastructure, scaling capacity automatically as your traffic grows.

Key Takeaway: AWS ELB and ALB are fully managed load balancers that eliminate operational overhead while providing native integration with cloud infrastructure, allowing you to focus on your application instead of load balancer maintenance.