ALB cho Layer-7 HTTP routing; NLB cho Layer-4 high-perf TCP/UDP; GWLB cho virtual network appliances.
Application Load Balancer (ALB) hoạt động ở Layer 7 (HTTP/HTTPS), hỗ trợ content-based routing (theo host header, path, query string, HTTP method, headers), WebSocket, HTTP/2, gRPC; tích hợp Cognito authentication, WAF, Lambda target; phù hợp cho web application, microservices, REST API.
Network Load Balancer (NLB) hoạt động ở Layer 4 (TCP/UDP/TLS), cực kỳ high performance (hàng triệu RPS, latency microseconds), static IP hoặc Elastic IP per AZ — quan trọng khi client cần IP cố định (whitelist firewall), preserve source IP; phù hợp cho gaming, IoT, financial trading, TCP-based protocol.
Gateway Load Balancer (GWLB) dùng cho deploy, scale và manage third-party virtual appliances (firewalls, IDS/IPS, deep packet inspection) — traffic đi qua appliance trước khi đến destination. Cross-zone load balancing: ALB bật mặc định (miễn phí), NLB tắt mặc định (tốn phí nếu bật). Sticky sessions: ALB dùng cookie, NLB dùng 5-tuple hash. Health check: ALB check HTTP status code, NLB check TCP/HTTP. Pricing: ALB tính LCU (Load Balancer Capacity Unit), NLB tính NLCU.