AWS Solutions Architect Handbook SAA-C03, from zero Bipin Singh
Networking

Elastic Load Balancing

2 min readChapter 14 of 48By Bipin Singh

Elastic Load Balancing distributes incoming traffic across targets in multiple AZs, checks their health, and lets you scale horizontally. Load balancers appear in most availability and scalability questions.

The three load balancers

Application Load Balancer (ALB) Network Load Balancer (NLB) Gateway Load Balancer (GWLB)
OSI layer 7 (HTTP, HTTPS, gRPC, WebSocket) 4 (TCP, UDP, TLS) 3 (IP packets, GENEVE)
Routing Path, host, header, query string, method, source IP Port/protocol To a fleet of virtual appliances
Targets Instances, IPs, Lambda functions, containers Instances, IPs, ALBs Appliance instances/IPs
Static IP No (use Global Accelerator in front if needed) Yes — one per AZ; can use Elastic IPs —
Performance High Extreme (millions of requests/second, ultra-low latency) —
Client IP In X-Forwarded-For header Preserved Preserved
Extras Authentication (Cognito/OIDC), redirects, fixed responses, WAF integration TLS termination, PrivateLink services, long-lived connections Third-party firewalls, IDS/IPS, deep packet inspection
Key idea

HTTP routing rules or Lambda targets → ALB. Static IPs, extreme performance, non-HTTP protocols (TCP/UDP) or PrivateLink → NLB. Inline third-party security appliances → GWLB.

Core concepts

ALB routing examples

https://example.com/api/*      → target group: api-service
https://example.com/images/*   → target group: image-service
https://admin.example.com/*    → target group: admin (with Cognito authentication)
http://*                       → redirect to HTTPS

One ALB can front many microservices — cheaper and simpler than one load balancer per service.

Internal vs internet-facing

Classic Load Balancer

The previous generation. You may see it in legacy questions; new designs use ALB or NLB.

Exam patterns

Bipin Singh
Written by Bipin Singh

Senior Full-Stack Engineer · AI & AWS. I design and run production systems on AWS — serverless, data and AI.

Work with me