Free preview

What YouTube Is, and the Scale

In one line: the write path and the read path are completely different systems, and almost everything in this chapter follows from that.

The shape of the problem

A creator uploads a video once. It is then streamed by anywhere from three people to a billion.

That ratio decides the architecture. Lesson 2 puts numbers on it — roughly 480 Gbps of upload against 12 Tbps of streaming, a 25x gap — and the gap dictates three things.

The upload path can be slow. Transcoding takes minutes and nobody minds, because the uploader is not waiting to watch it.

The read path must be fast and everywhere. That is why CDNs, ISP caching, and IXP placement occupy three whole lessons.

Storage is written once and read constantly, which is the write-once-read-many profile object storage is built for.

The one-line version worth carrying into every media design: optimize the read path, and let the write path take its time.

Why it grew

FactorDetail
SimplicityThe interface is intuitive yet powerful
Rich contentFree hosting attracts a vast community of creators
Continuous improvementRelentless optimization for scale; Google's 2007 acquisition added credibility and resources
Creator incomeThe partnership program lets creators monetize viral content

Most of the catalogue by count is almost none of it by views. That split is what justifies every placement decision later in the chapter — you cache the hot set and accept slower delivery for the tail, because the latency of a video nobody watches does not matter.

The numbers

YouTube launched in 2005 and serves over 2.5 billion monthly active users. It trails only Netflix in streaming volume, and roughly 694,000 hours of video are streamed per minute.

That number is worth converting into something intuitive. 694,000 hours per minute is about 11,570 hours per second — meaning at any given instant, the collective viewing on YouTube is roughly 1.3 years of video per second.

Two things follow.

First, this is the read side of the asymmetry, and it dwarfs the write side. Lesson 2 assumes 500 hours uploaded per minute against 694,000 streamed, a ratio of about 1,400 to 1 in hours — steeper than the bandwidth ratio, because streamed hours are compressed and uploads are raw.

Second, no single facility serves this. It is only possible because content is replicated to the edge and most viewing never touches YouTube's core, which is what Lesson 10 is about.

In an interview, quoting a number like this and immediately drawing the conclusion — "so most viewing must be served from caches near users, not from origin" — is worth far more than the number alone.

How the chapter proceeds

Lesson groupCovers
Requirements and estimationFunctional and non-functional requirements, and resource estimation for storage, bandwidth, and servers
DesignThe upload mechanism, high-level architecture, API, database schema, and search
EvaluationHow the design meets its requirements and handles future scaling
Reality is more complicatedPer-shot encoding, edge placement through ISPs and IXPs, and adaptive bitrate streaming

Note the structure. The first three groups produce a design that would pass a whiteboard interview. The fourth is where the design gets honest — the optimizations that only make sense once you have measured where the cost is.

That split is itself instructive. A clean architecture diagram is necessary but not sufficient. After you have drawn the boxes, the strongest thing you can add is "and here is where this gets more complicated in practice."

Key takeaway

Upload once, stream unboundedly — an asymmetry of roughly 25x in bandwidth and 1,400x in hours, which means the read path gets all the engineering and the write path is allowed to be slow. Free hosting makes upload volume unbounded by economics, producing a long tail that is most of the catalogue and almost none of the views. And 694,000 hours streamed per minute is only servable from the edge.

Interview signal by level

LevelWhat a strong answer sounds like
L4"Users upload videos and other users watch them, so we need storage and streaming."
L5Leads with the asymmetry: "reads massively outnumber writes, so the design should optimize streaming and let upload processing be asynchronous."
Staff+Quantifies and draws the consequences: "roughly 25x more streaming bandwidth than upload, and 1,400x more hours streamed than uploaded — so most viewing can't touch origin at all, which forces CDN and ISP-level placement rather than making it an optimization. And free hosting means upload volume has no price signal, so we carry a long tail that's most of the catalogue by count and almost none by views — that's what justifies splitting origin storage by popularity and investing in duplicate detection."

Next: what the system must do, and how big it has to be.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue