Planet-Scale Edge CDN Surrogate-Key Purge & Origin Shield Mesh
Design a Fastly / Akamai-scale global cache invalidation and tiered Origin Shield control plane capable of purging surrogate cache-tags across 300+ edge POPs in < 150 ms while collapsing post-purge cold-miss herds so customer origins never melt down.
Functional Requirements
- FR-1POST /v1/zones/{zone_id}/purge-tags — Assigns monotonic purge generation to surrogate_tag and fans out invalidation gossip tree to all POPs.
- FR-2GET /v1/edge/{zone_id}/fetch — Serves edge/shield cached object if generation > tag_watermarks, coalescing cold misses via tiered Origin Shield.
- FR-3PUT /v1/zones/{zone_id}/shield-policy — Updates stale-while-revalidate / stale-if-error rules and origin concurrency caps.
- FR-4Breaking-news mass tag purges at 260k+ RPS must propagate globally without triggering an origin thundering herd or breaching p99 <= 45 ms.
Workload Profile
Consistency Model
Monotonic per-zone surrogate-tag generation numbers ensuring a purged POP/shield never overwrites cache with an older in-flight origin response.
Relevant practice for
Sign in and either achieve AC or complete 3 official submissions on this question to inspect community diagrams and writeups.
Click Submit in the top bar to evaluate against all 7 judge cases and save each run here.
Click an item in Inventory above, or press B to add a component, double-click to name, C to connect.
Write under ### Architecture for Diagram to take that up directly