AWS Elastic Load Balancing (ALB vs. NLB)
Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones.
Load Balancer Types
AWS offers three types of load balancers: Application Load Balancer (ALB) operates at Layer 7, Network Load Balancer (NLB) operates at Layer 4, and Classic Load Balancer (CLB) is the legacy option. ALB is best for HTTP/HTTPS traffic, while NLB is best for TCP/UDP traffic.
ALB Features
Application Load Balancer (ALB) supports content-based routing, host-based routing, path-based routing, and query string routing. ALB can route requests to different target groups based on the content of the request.
NLB Features
Network Load Balancer (NLB) operates at Layer 4 and can handle millions of requests per second with ultra-low latency. NLB is ideal for TCP/UDP traffic and can preserve the source IP address of the client.
