Design a Global Content Delivery Network for Videos
Last updated: March 3, 2025
Quick Overview
Design CDN architecture for multi-region video delivery: PoP placement, cache eviction, origin shielding, and cost versus latency trade-offs.
ByteDance
March 3, 20255
12
4,091 solved
Design CDN architecture for multi-region video delivery: PoP placement, cache eviction, origin shielding, and cost versus latency trade-offs.
Infrastructure-focused question testing deep understanding of content delivery at TikTok's global scale.
What the Interviewer Expects
- Design PoP placement strategy based on user density
- Implement intelligent cache eviction policies
- Address origin shielding and request collapsing
- Optimize cost versus latency trade-offs
- Handle cache invalidation for content policy violations
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 measure CDN effectiveness?
- What is your strategy for emerging markets with poor connectivity?
- How do you handle content takedowns across all PoPs?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Architecture
Multi-tier CDN: edge PoPs (closest to users, highest cache hit rate for popular content), regional PoPs (aggregation layer, stores medium-popularity c...
Cache Strategy
Use LRU with frequency boosting: popular videos stay cached longer. Pre-warm edge caches for videos trending in specific regions. Implement request co...