Design a Global CDN With Edge Caching
Problem
Design a global CDN that caches and serves content from edge locations close to users.
Requirements
Functional:
- Cache static/dynamic content at edge PoPs
- Cache invalidation/purge
- Origin shielding on miss
- Honor cache-control headers
Non-functional:
- Millions of requests/sec globally
- Low latency, high cache-hit ratio
- DDoS-resilient
Discussion points
- Edge PoP architecture and anycast routing
- Cache hierarchy (edge -> regional -> origin shield)
- Cache key design and invalidation
- Request coalescing to protect origin
- DDoS mitigation and rate limiting
added …