ALB vs NLB: start with protocols and routing
ALB supports application-level HTTP/HTTPS routing; NLB serves transport-layer load-balancing requirements. Choose using protocols, routing, connections and addressing needs rather than asking which service is simply “faster”.
A decision table
| Need | Evaluate |
|---|---|
| HTTP routing by host or path | Application Load Balancer |
| TCP/UDP or transport-specific requirements | Network Load Balancer and the appropriate listener |
| Static addressing per AZ | NLB addressing capabilities |
| AWS WAF integration for a web application | ALB integration capabilities |
An API and a TCP service
A website that routes /images to image workers and /api to API workers can evaluate ALB listener rules. A custom TCP service requiring static IPs should evaluate NLB. Both still require target groups, health checks and an appropriate multi-AZ design.
- Health checks should reflect readiness; an endpoint returning 200 while dependencies fail can mislead routing.
- Cross-zone behavior, timeouts and protocol capabilities depend on current features and configuration.
- Load balancing does not automatically add database failover or make a stateful application stateless.
Reading a scenario question
Identify the protocol first, then routing, addressing and security integration requirements. “Distribute traffic” alone is not enough to choose. Practice naming one requirement that changes your choice from ALB to NLB and another that changes it back.
References
Use AWS documentation to check current features and limits. Cloud Quest is an independent learning project and does not guarantee exam outcomes.