CloudFront vs ALB
Global CDN with edge caching versus regional application load balancer for web traffic.
Overview
What is being compared
Both sit in front of web traffic on AWS, at different scopes. CloudFront is a global content delivery network that caches responses at edge locations, cutting latency for users far from the origin and offloading origin traffic. ALB distributes traffic to backend targets within one region. The table sets the two side by side.
- Scope — Global, 400+ edge locations — One region
- Caching — Yes, by Cache-Control headers and cache policies — None
- Code at the edge — Lambda@Edge, CloudFront Functions — None
- AWS WAF and Shield — Blocks traffic before it reaches the origin — Protects only after traffic reaches your VPC
- Workloads called out — Static assets, cacheable API responses — gRPC, WebSocket, internal microservice routing
- Best for — Global users, static delivery, edge protection — Regional or internal APIs, content not worth caching
Sign up free to read the full topic
More Comparisons topics
Start free on Cariara · Coding problems · System design studio