CDN - How Content Delivery Networks Work, Edge Caching
Imagine streaming a live cricket match from India to millions of viewers worldwide without buffering delays or server crashes.
Explain how Content Delivery Networks (CDNs) work, focusing on the role of edge caching and how it reduces latency for end users.
Edge servers and origin serversCaching and Time-To-Live (TTL)Geo-routing and latency optimization- What happens if two edge servers have inconsistent cached versions due to TTL differences?
- How does CDN handle cache misses when the origin server is temporarily unreachable?
- What if a user is located in a region with no nearby edge servers?
Interviewer doubts your understanding of CDN scale and latency optimization
✅ Emphasize the global distribution of edge servers and geo-routing
Interviewer questions your grasp of TTL and cache invalidation
✅ Explain TTL, cache expiry, and purging mechanisms that balance freshness and performance
Interviewer suspects you don't understand CDN fault tolerance
✅ Discuss fallback to origin, error handling, and retry strategies
Interviewer thinks you lack clarity on CDN components
✅ Clarify that DNS and load balancing are part of CDN routing but CDN includes caching and edge servers
