Compare CloudFront and Global Accelerator for a global application. When do you use each?
AdvancedScenarioLoad Balancing, Proxies & CDN
Answer
Situation read → One is a caching CDN, the other is an anycast network onto the AWS backbone.
What I'd do →
- CloudFront caches HTTP content at the edge and terminates TLS near users, good for static and cacheable APIs
- Global Accelerator gives two static anycast IPs and routes TCP/UDP over the AWS backbone to the closest healthy regional endpoint, with no caching
- Use GA for non-HTTP protocols, gaming, static IPs and fast regional failover
- Both can be combined for different paths
- Verify with
aws globalaccelerator list-accelerators
Why → CDN reduces work; accelerator reduces path length and failover time.
Interview tip → Say you decide by cacheability and protocol.
More on Load Balancing, Proxies & CDN
What is the difference between a Layer 4 and a Layer 7 load balancer?BeginnerWhen do you choose an ALB and when an NLB in AWS?BeginnerForward proxy versus reverse proxy: what is the difference?BeginnerHow do health checks work on a load balancer and what makes a good one?BeginnerWhat are sticky sessions and why would you avoid them?BeginnerWhat does a CDN do and when does it help?Beginner