Skill 3.4.4
Selecting the appropriate load balancing strategy
Key Concepts
Application Load Balancer (Layer 7): HTTP, HTTPS, HTTP/2, gRPC and WebSockets; routes by host, path, headers, query strings and source IP; targets EC2, IPs, containers and Lambda; integrates with WAF and authenticates users with Cognito or OIDC; sticky sessions; TLS termination with ACM and SNI for many certificates.
Network Load Balancer (Layer 4): TCP, UDP and TLS with millions of requests per second and ultra-low latency; one static IP per AZ (or Elastic IPs); preserves client source IP; supports PrivateLink endpoint services. Gateway Load Balancer (Layer 3): deploys and scales third-party firewalls and inspection appliances transparently using GENEVE.
Cross-zone load balancing spreads traffic evenly across all targets (on by default for ALB, off by default for NLB). Deregistration delay lets in-flight requests finish. For global load balancing, combine Route 53 or Global Accelerator with Regional load balancers.