ALB vs NLB vs GWLB vs Classic: when to use which?
BeginnerConceptEC2, Auto Scaling and Load Balancing
Answer
ALB (layer 7): HTTP/HTTPS/gRPC, path/host/header routing, WebSockets, OIDC auth, WAF. NLB (layer 4): TCP/UDP/TLS, millions of requests per second, static or Elastic IPs per AZ, preserves source IP. GWLB (layer 3): transparent appliance insertion. Classic: legacy, EC2-Classic-era, migrate away.
Default to ALB for web apps and microservices, NLB for non-HTTP protocols, PrivateLink fronting, and extreme throughput.