Architect a content distribution network (CDN) that delivers web content and services to users based on their geographic location, the origin of the content, and the content delivery server. The network should optimize for speed, reliability, and security, effectively handling peak traffic loads and protecting against cyber threats. Key components include a distributed network of edge servers, caching strategies, load balancing, and robust security measures. The CDN must ensure fast content delivery, reduce bandwidth costs, and improve user experience across global locations.
Suggested time: 45 minutes
Loading the workspace...
When a user in Tokyo loads a webpage hosted in Virginia, the speed of light alone adds 150ms of round-trip latency. A CDN eliminates that penalty by serving cached content from a nearby edge server, turning a 200ms origin fetch into a sub-10ms cache hit. Designing a global CDN means designing the caching and routing infrastructure that makes the internet feel fast.
Design a Global Content Distribution Network: editorial solution
Community solutions for Design a Global Content Distribution Network
The building blocks this design relies on, each explained in its own lesson.
Design a Server Architecture for Serving Geospatial Images (medium)
Design a Code Deployment System (medium)
Design a Web Cache (medium)
Design an API Rate Limiter (medium)
Design a Domain Name System (advanced)
Company guides that list this problem among their sample questions.