Azure Load Balancing and Content Delivery: Load Balancer, Application Gateway, Front Door and Traffic Manager
Why Load Balance?
- Spread users across several servers so none is overloaded
- Send traffic only to healthy servers (health probes)
- Keep the app running when a server fails
Four Services
| Service | Layer | Scope | What it does |
|---|---|---|---|
| Load Balancer | 4 (TCP/UDP) | Regional | Fast distribution of network traffic by IP and port. Public or internal |
| Application Gateway | 7 (HTTP/S) | Regional | Smart web load balancer: routes by URL path or host, SSL termination, optional WAF |
| Front Door | 7 (HTTP/S) | Global | Fast, secure entry for web apps worldwide with caching and failover between regions |
| Traffic Manager | DNS | Global | Directs users to the best endpoint using DNS (by performance, priority, geography) |
Layers in Simple Words
- Layer 4: looks only at IP and port, very fast
- Layer 7: understands web requests such as URL and headers, so it can route
/imagesto one pool and/apito another
Choosing
| Need | Pick |
|---|---|
| Spread VM traffic inside a region, any protocol | Load Balancer |
| Web app in one region with URL routing and WAF | Application Gateway |
| Web app across regions with speed and failover | Front Door |
| DNS-based routing of any internet service across regions | Traffic Manager |
Content Delivery
A content delivery network stores copies of images, videos and files at edge locations near users so pages load faster. In Azure this is offered with Front Door.
Practice
- Which service routes by URL path?
- Which two are global?
- What is a health probe?
Conclusion
Load Balancer works at layer 4 within a region, Application Gateway at layer 7 within a region, Front Door and Traffic Manager across regions. Choose by layer and scope.
Quick Summary: why; four services; layers; choosing; CDN.

