Design a content delivery network (CDN) for serving static assets (images, CSS, JavaScript) globally with low latency. The CDN should cache content at edge locations close to users. When content is not in the edge cache, it should fetch from origin servers. The system must support cache invalidation and handle cache misses efficiently.
Functional requirements
- Serve static content from edge locations worldwide
- Cache content with configurable TTL
- Handle cache misses by fetching from origin servers
- Support cache invalidation and purging
Non-functional requirements
- Edge latency < 50ms for cache hits
- Cache hit rate > 85%
- Globally available and fault tolerant
- Scalable to handle traffic spikes