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.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Onsite
System Design
Hard

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
tiered caching
request steering
popularity prediction
cache admission
adaptive bitrate segments
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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...

Submit Your Answer
Markdown supported