Does YouTube Use the Same System Design as JioHotstar?
Same building blocks, very different problem: why a surprise MrBeast live stream is a different challenge from a scheduled World Cup final.
In simple words
In my last post, I asked: JioHotstar’s system design is a masterpiece, but does YouTube use the same one?
Most of you said No. Some said Yes.
My answer after digging in: no, not exactly. They use the same building blocks: CDNs, small video chunks, adaptive bitrate. But the problem they’re solving has a completely different shape.
Here’s the example that made it click for me:
- JioHotstar knows the T20 schedule. Everyone knows when the first ball will be bowled, so the team scales up before the crowd arrives.
- YouTube gets no warning. Imagine MrBeast suddenly decides to go live. Millions of people rush in, and nobody knew it was coming, not even YouTube. Now imagine thousands of creators going live at the same moment.
So how does YouTube cope? My short answer: JioHotstar prepares for one giant wave. YouTube lives in an ocean that never calms down, so it keeps huge capacity running all the time and makes sure no single wave can sink the ship.
Same idea, two shapes: JioHotstar can see its wave coming; YouTube never knows where the next one will pop up. (Illustration, not real data.)
What I understood
Two very different traffic shapes
| JioHotstar | YouTube | |
|---|---|---|
| What’s being watched | A small number of big live events, plus a library of shows and movies | More than 500 hours of new video uploaded every minute, plus creators going live any time |
| Traffic shape | Huge waves at known times | A massive baseline all day, with surprise waves on top |
| Biggest single live stream | 72.5M concurrent (T20 World Cup final, 2026) | Record set by an NFL game in Sept 2025 (no peak published; 19.7M average audience). Before that, ISRO’s Chandrayaan-3 landing, ~8M (2023) |
| Where it runs | AWS (Kubernetes on EKS), several CDNs, and servers inside telecom networks | Google’s own data centres, global network, and cache servers inside ISPs |
| Scaling strategy | Pre-warm before the match, scale in steps tied to viewer numbers | Always-on shared capacity, plus overload protection |
| Who uploads video | A few professionally produced feeds | Everyone: every creator is a broadcaster |
| Recommendations | Can be switched off during peaks to protect the stream | At the core of the product |
Two things jumped out at me:
- JioHotstar’s biggest live stream is much bigger than YouTube’s. 72.5 million people on one stream is a different league.
- But YouTube’s everyday traffic is enormous. In 2017, YouTube said people watched 1 billion hours of video every day. If you divide that by 24 hours, that’s roughly 42 million people watching at any moment, on an average day. That’s my own rough math from a 2017 number, and it’s probably higher now. Those people are spread across millions of different videos.
So JioHotstar’s challenge is one stream, gigantic audience, known time. YouTube’s challenge is millions of streams and videos, constant audience, unknown timing.
The building blocks are the same
Everything I learned in the JioHotstar post still applies:
- Video is cut into small chunks of a few seconds each.
- Each chunk is encoded at several quality levels, and your player switches between them based on your connection (adaptive bitrate).
- Chunks are cached close to viewers, so most traffic never reaches the main servers.
The difference is in how much of the stack each company owns:
- Google Global Cache: Google places its own cache servers inside internet providers’ networks. The ISP supplies rack space and power, and popular content (mostly video) is served from right there. That’s the same idea as JioHotstar putting servers inside telecom networks, but Google has been doing it worldwide for years.
- Google’s network: when Google opened up YouTube’s delivery infrastructure to customers in 2022 (as Media CDN), it said that infrastructure serves YouTube to over 2 billion users, across more than 200 countries and territories and 1,300+ cities.
- Custom chips for video: YouTube built its own transcoding chip, the Video Coding Unit (VCU). YouTube says it is up to 20–33x more compute-efficient than its previous setup.
So how does YouTube survive a surprise MrBeast live stream?
YouTube hasn’t published a “here’s what happens when a big creator goes live” document. This is my understanding, pieced together from what Google has shared and how CDNs work in general.
1. Getting the stream in is cheap: it’s one stream per creator. When a creator goes live, their software sends one video feed to YouTube (over protocols like RTMP, RTMPS, HLS or DASH). YouTube converts that one feed into several quality levels. The cost of this step doesn’t grow with the number of viewers. MrBeast’s stream costs about the same to bring in and convert whether 10 people watch or 10 million.
That also answers the “thousands of creators” question. Thousands of creators means thousands of independent conversion jobs. They don’t depend on each other, so they spread across machines easily. The VCU chips exist exactly to make this conversion cheaper.
One stream comes in and gets converted once. After that, the caches near viewers do the heavy lifting.
2. Sending it out is a “same chunk, many viewers” problem, which CDNs are great at. Every viewer of a live stream asks for the same few-second chunks. That’s the best case for a cache: the first request for a chunk fetches it, and everyone after that gets the copy that’s already nearby. CDNs can also merge many simultaneous requests for the same new chunk into a few trips back to the main servers. Google’s own Cloud CDN documents this as request coalescing.
Request coalescing: many viewers, one trip to the origin. This is how CDNs work in general; YouTube’s exact setup isn’t public.
So a hugely popular live stream is, in a way, easier to cache than a million different videos each watched by a few people.
3. The crowd is mostly already inside. This is the insight that clicked for me. When MrBeast goes live, a large part of that crowd is already on YouTube, watching something else. They switch videos. YouTube’s capacity is sized for tens of millions of people watching all the time, so a surprise stream largely moves viewers around inside a system that’s already running hot, rather than pulling in a crowd from nowhere. (This is my own reasoning, not something YouTube has published.)
The crowd changes rooms more than it appears from nowhere. (My own reasoning, shown as an illustration.)
4. The hard part is everything around the video. The video itself is cacheable. What isn’t cacheable is everything interactive: live chat, likes, view counts and notifications to millions of subscribers. Every one of those is a write, and writes are much harder to scale than reads.
Two real examples of how hard counting is at YouTube’s scale:
- In 2014, Gangnam Style passed 2,147,483,647 views, the largest number a 32-bit integer can hold. YouTube had to upgrade its view counter to 64-bit.
- After the 2025 NFL game, YouTube first reported 17.3M viewers, then corrected it to 19.7M. An internal issue meant some real views hadn’t been counted.
One view past the limit, a 32-bit counter wraps around to a negative number. YouTube moved to 64 bits.
5. When it’s too much: protect the core, shed the rest. Google’s SRE book describes how its services handle overload:
- Label each request by importance. Less important requests get dropped first when a service is overloaded.
- Shed load instead of crashing. Reject the extra work early instead of falling over completely.
- Degrade gracefully. Return a slightly less complete answer instead of an error.
The idea in one picture: when load climbs, the least important work goes first. (An illustration, not YouTube’s internal setup.)
That’s the same “the video must play” idea as JioHotstar. The difference is that JioHotstar applies it to a known event, while Google applies it all the time, everywhere.
6. And sometimes YouTube does get a warning. Creators can schedule a live stream or a Premiere in advance. That creates a watch page early, and viewers can tap “Notify me”. So a big announced event isn’t a total surprise. And when YouTube had a truly huge planned event (the NFL game), it was planned months ahead, just like a cricket final.
Latency: a choice, not a fixed number
YouTube lets creators choose how much delay they want:
| Latency mode | Best for | Trade-off |
|---|---|---|
| Normal | Streams with no audience interaction | Highest quality, least buffering |
| Low | Some audience interaction | In between |
| Ultra-low | Talking live with your audience (most viewers under 5 seconds) | More chance of buffering |
I liked this because it shows a trade-off as a product feature: less delay means less buffer, which means more risk of stalling.
And the database?
In the JioHotstar post, the answer was ScyllaDB for “Continue Watching”. YouTube built its own: Vitess, created at YouTube around 2010 when MySQL couldn’t keep up. It sits between the app and MySQL and spreads the data across many MySQL databases (sharding). Vitess is now open source and a graduated CNCF project, used by many companies outside YouTube.
Could it be better?
These are questions I’d ask, from the outside:
- Counting is still hard. The NFL undercount shows that even YouTube can get its numbers wrong for a short while at peak. For a platform where view counts mean money for creators, that matters.
- Low delay versus smooth playback. Ultra-low latency is great for chatting with viewers, but YouTube itself warns it can mean more buffering. There’s no setting that gives you both.
- The weakest link is often the creator. A live stream is only as stable as the creator’s own internet connection. That’s one part of the pipeline no amount of Google infrastructure controls.
- Owning everything only works at Google’s scale. Custom chips, a global network and caches inside ISPs are powerful, but very few companies can build them. JioHotstar’s mix of cloud, several CDNs and telecom partners is the more realistic path for most of us.
How I’d apply it
Most of us aren’t YouTube or JioHotstar, but the lessons carry over:
-
Know your traffic shape first.
- Predictable spikes (sales, launches, scheduled events): pre-scale like JioHotstar.
- Unpredictable spikes (viral posts, surprise traffic): keep headroom and build overload protection.
- Many systems have both.
-
Separate “per-creator” work from “per-viewer” work. Uploading and converting goes into a queue with workers. Serving goes through a cache or CDN. They scale for different reasons, so don’t put them in the same service.
-
Make identical content cheap to serve. If many people request the same thing, cache it at the edge and merge duplicate requests to your origin.
-
Don’t write to the database on every click. Count views and likes in memory or in a fast store, and flush them in batches:
Every view → INCR counter in Redis (fast, in memory) Every 10 sec → flush the totals to the main database -
Decide what gets dropped first. Label requests by importance (playback > chat > recommendations > analytics), so your system knows what to shed when it’s overloaded.
What I learned
- Same building blocks, different design. CDNs, chunks and adaptive bitrate are everywhere. What changes the design is the shape of the traffic.
- Known waves vs. a constant ocean. JioHotstar prepares for the first ball. YouTube keeps enough capacity running for tens of millions of viewers every minute of every day.
- Fan-out is the easy part. Sending the same video to millions is very cacheable. The hard parts are variety (millions of different videos) and interaction (chat, likes, counts).
- When you can’t predict, protect. Without warning, you can’t pre-scale, so you keep headroom, shed less important work and degrade gracefully.
- Counting at scale is surprisingly hard. One video broke a 32-bit counter, and a record NFL stream was briefly undercounted.
Sources
- YouTube Blog: Reimagining video infrastructure (VCU, 500+ hours/minute), Apr 2021
- YouTube Blog: You know what’s cool? A billion hours, Feb 2017
- YouTube Blog: A record-breaking debut for the NFL on YouTube, Sept 2025
- Business Today: YouTube CEO on ISRO’s 8M+ concurrent viewers, Sept 2023
- Google: Introduction to Google Global Cache
- Google Cloud Blog: Introducing Media CDN, Apr 2022
- Google Cloud CDN overview (cache fill)
- YouTube Live ingestion protocols (Google Developers)
- YouTube Help: Understand live streaming latency
- Google SRE Book: Handling Overload
- Vitess: History
- Google Research: Deep Neural Networks for YouTube Recommendations (2016)
- TechCrunch: Gangnam Style broke YouTube’s view counter, Dec 2014
- My previous post: How JioHotstar streamed the T20 World Cup final to 72.5M people