EdgeBlast is building a CDN service. Customers configure their domain to route through EdgeBlast, which caches and serves their static content from edge servers worldwide. Features:
- Edge caching - cache static assets (images, JS, CSS, videos) at 50 edge locations worldwide. Cache hit ratio target: > 95%.•Cache invalidation - customers can purge specific URLs or entire path prefixes. Purge must propagate to all edges within 30 seconds.•Origin shielding - when an edge server has a cache miss, don't all hit the customer's origin. Route misses through a shield layer (a few regional caches) to coalesce requests.•HTTP/2 & HTTP/3 - support modern protocols for multiplexing and reduced latency.•Analytics - per-domain dashboards showing bandwidth usage, cache hit ratio, latency by edge, and top requested URLs.•DDoS protection - basic L7 DDoS mitigation: detect anomalous traffic patterns and drop malicious requests at the edge.•Custom rules - customers add headers, enable CORS, set redirect rules, and configure access control via a rules engine.
Serve 1 billion requests per day across all customers with 100 TB of cached content.
Design a CDN with edge caching, cache invalidation, origin shielding, and real-time purge support. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> DNS -> CDN Edge -> Load Balancer -> API Service -> Primary SQL DB -> Read Model DB -> Redis Cache