Interview Prep/Networking/Load Balancing, Proxies & CDN

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 →

  1. CloudFront caches HTTP content at the edge and terminates TLS near users, good for static and cacheable APIs
  2. Global Accelerator gives two static anycast IPs and routes TCP/UDP over the AWS backbone to the closest healthy regional endpoint, with no caching
  3. Use GA for non-HTTP protocols, gaming, static IPs and fast regional failover
  4. Both can be combined for different paths
  5. 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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN