Choose the unit of routing first
How ALB and NLB traffic-handling behavior determines listener and target-group designs for containerized and high-throughput applications. · advanced
An Application Load Balancer (ALB) makes HTTP request-routing decisions. An HTTPS listener terminates TLS, then evaluates rules in priority order, using the first matching rule or the default action. Host, path, header, and other request conditions can select target groups. A path condition selects a destination; it does not, by itself, remove the matched path prefix.
A Network Load Balancer (NLB) selects a target for a transport flow, not for each HTTP request. An established TCP connection stays associated with its selected target; scaling out does not redistribute that connection. NLB provides static addresses per enabled Availability Zone, but does not inspect HTTP paths. A TCP listener can pass encrypted traffic through; a TLS listener terminates TLS.
The listener defines the client-facing protocol and port. The target group defines the backend protocol, target type, and health checks. Treat these as separate choices: an ALB HTTPS listener can forward HTTP to containers, while NLB TLS termination still does not create HTTP routing rules.
| Behavior | ALB | NLB |
|---|---|---|
| Routing unit | HTTP request | Transport flow |
| Application selection | Host/path/header rules | No HTTP conditions |
| TLS handling | HTTPS termination | TCP pass-through or TLS termination |
| Addressing | DNS-based endpoint | Static addresses per zone |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.