Design: Content Delivery Network (CDN)
Design the CDN architecture focusing on caching, content distribution, and request routing. Exclude detailed origin server design and content creation.
Functional Requirements
FR1: Deliver static content (images, videos, scripts) to users globally with low latency
FR2: Handle high traffic spikes efficiently
FR3: Reduce load on origin servers
FR4: Provide high availability and fault tolerance
FR5: Support cache invalidation and content updates
FR6: Secure content delivery with HTTPS
Non-Functional Requirements
NFR1: Serve content with p99 latency under 100ms globally
NFR2: Support at least 1 million concurrent users
NFR3: Achieve 99.9% uptime annually
NFR4: Cache consistency delay should be under 5 minutes for updates