Global Distribution: Getting Bytes Close to Viewers

Why / The Problem

Video is enormous relative to typical web content, and view volume for popular videos is enormous relative to typical web traffic. If every playback request hit origin storage directly, a video crossing into "viral" territory (millions of concurrent viewers) would need to be read from the same backing storage millions of times per second — no storage system survives that read concurrency, and even if it could, the network path from a handful of origin data centers to viewers scattered globally would be both slow and expensive.

How It Works

Requests pass through progressively closer-to-the-user cache tiers — the closer a tier is to the viewer, the more likely a request is already answerable there without going any further back:

Tiered caching — the request path from viewer to origin
Tiered caching — the request path from viewer to origin

Google Global Cache (GGC) is the distinguishing piece: Google-supplied caching servers physically racked inside an ISP's own network — Google provides the hardware, the ISP provides power, rack space, and an uplink into their own backbone. The ISP avoids paying transit costs to fetch popular content repeatedly over expensive upstream links; Google gets content served from a point topologically extremely close to the end user, and the bulk of view traffic for popular content never leaves the ISP's own network. Reported figures (from ISP case studies, not an official Google SLA) put 70–90% of cacheable YouTube/Google traffic as servable directly from GGC nodes.

Why a viral video specifically doesn't overwhelm this system

The mechanism is popularity-proportional replication, at every tier:

Cache stampede protectionRequest coalescing — when a segment isn't yet cached and multiple concurrent requests arrive, exactly one is forwarded upstream; others wait and share that result. N concurrent misses never become N origin fetches.
Popularity-weighted residencyA high-frequency segment is kept resident at far more cache nodes, for far longer, than a rarely-requested one — "hot" and "cold" objects are treated differently by design.
Regional shield tierMany GGC boxes missing on the same newly-popular segment at once hit a shared regional tier first, which itself fetches from origin only once.

The Invariants

  • Guarantees: The durable, authoritative copy always exists on Colossus (see Origin storage) regardless of cache-tier behavior — caches are a performance/cost layer on top of a durable store, never the source of truth.
  • Does not guarantee: That a brand-new (never-before-requested) segment is fast on its first request anywhere in the world — a genuinely cold object must traverse the full hierarchy back to origin at least once before any cache tier can serve it. This is why a video's first moments after crossing into virality can look different (higher tail latency) than its steady-state viral traffic once caches have caught up.