Design a worldwide CDN that caches static and lightly dynamic content at the edge, terminates TLS, and shields origins. Support instant purges, signed URLs, and per-customer analytics.
Functional requirements
- Edge caching with configurable TTLs, vary rules, and cache keys
- Global purge by URL, tag, or prefix with propagation status
- TLS certificate provisioning and HTTP/2 or HTTP/3 termination
- Origin shield and request collapsing to protect backends
- Per-property analytics: hits, misses, bytes, status codes
Non-functional requirements
- High global cache hit ratio via tiered caches
- Low time-to-first-byte from the nearest healthy POP
- Stale-if-error or similar behavior when origin is unhealthy
- Absorb volumetric attacks with edge rate limits and scrubbing