Design ISP-Embedded Edge Caches for YouTube Video Delivery
Last updated: November 29, 2026
Quick Overview
Design a network of cache servers placed inside internet service providers' networks (like Google Global Cache) that serve most YouTube video bytes locally, including what content to place on each node and how users are steered to them.
0
0
0 solved
Design a network of cache servers placed inside internet service providers' networks (like Google Global Cache) that serve most YouTube video bytes locally, including what content to place on each node and how users are steered to them.
YouTube's bandwidth bill and latency depend on serving bytes from inside ISP networks, and this question tests deep CDN reasoning beyond a generic CDN answer. The interviewer probes cache fill strategy, popularity prediction, user-to-node mapping, and graceful behavior when a node fills or fails.
What the Interviewer Expects
- Explain the tiered hierarchy: ISP edge nodes, Google edge PoPs, origin
- Steer clients to a nearby healthy node via DNS or a URL-signing redirector
- Decide fill and eviction policies for long-tail video
- Use proactive prefetch for predicted popular content during off-peak hours
- Track per-node capacity and fail over without overloading the ISP uplink
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 would you handle a viral video that is not yet cached anywhere?
- How do you serve a very long tail of rarely watched videos?
- What metrics define success for an edge node?
- How would you handle live streams differently from on-demand video?
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
- Most video bytes served from within the user's ISP; good startup latency and few rebuffers.
- Each node has limited disk (tens to hundreds of TB) and the ISP has limited uplink to Google.
- Catalog:...
High-Level Design
- Edge node cluster in ISP: servers with SSD and HDD, serving HTTPS range requests for video segments.
- Google edge PoP: larger caches at peering points, the next tier on miss.
- **Origin sto...