Interview Prep/Networking/Load Balancing, Proxies & CDN

When do you choose an ALB and when an NLB in AWS?

BeginnerScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → Different products for different protocols and needs.

What I'd do →

  1. ALB for HTTP/HTTPS, path or host routing, gRPC, WebSockets, authentication, WAF integration
  2. NLB for TCP, UDP or TLS passthrough, static or Elastic IPs per AZ, millions of requests per second, ultra low latency
  3. Use NLB in front of an ALB if you need static IPs for an HTTP app
  4. Check with aws elbv2 describe-load-balancers

Why → ALB works at layer 7 with rich routing; NLB works at layer 4 with performance and IP guarantees.

Interview tip → Mention PrivateLink requires an NLB or GWLB, which is a common reason to pick NLB.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN