Design Global Edge Cache Invalidation for a CloudFront-Style CDN
Last updated: November 29, 2026
Quick Overview
Design how a CDN with hundreds of edge locations accepts invalidation requests from customers and guarantees that matching objects stop being served everywhere within a bounded time.
Amazon
November 29, 20260
0
0 solved
Design how a CDN with hundreds of edge locations accepts invalidation requests from customers and guarantees that matching objects stop being served everywhere within a bounded time.
Asked for AWS edge and networking teams, where invalidation is a customer-facing API with a published completion time. The interviewer is looking for a control plane versus data plane split, how you track completion across many POPs, and how wildcard paths are handled cheaply.
What the Interviewer Expects
- Define the API: path list and wildcards, invalidation ID, status polling
- Separate control plane propagation from data plane cache lookups
- Track per-POP acknowledgement and report completion
- Make wildcard invalidation cheap without scanning every cache
- Handle POPs that are offline or partitioned during propagation
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you support wildcard invalidation like /images/* without scanning disk?
- How would you bound the cost if a customer issues 100,000 invalidations a day?
- What does a POP do when it rejoins after being partitioned for an hour?
- How does versioned object naming compare to invalidation?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: CreateInvalidation(distribution, paths[]) returns an ID; GetInvalidation(id) returns InProgress or Completed. Paths can be exact or end in *. Non-functional: complete globall...
High-Level Design
- An Invalidation API writes the request to a durable store and a per-distribution ordered log.
- A propagation service fans the request out to every regional edge cache and POP over a persi...