Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

YouTube System Design

Visual Problem Diagram

YouTube System Design architecture diagram

Scenario

You finish uploading a 4K video and share the link, expecting a friend to press play and start within a few seconds from a copy near them, in a size that fits their connection. The painful failure is that friend getting missing pieces for 20 minutes, because encoding was still running and the list of pieces had not been updated.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

A person uploads a video and adds a title and a description. Someone searches and finds it. They press play and it starts. The view count goes up. They can leave a like. They can leave a comment.

You need to explain how the upload is saved in pieces and encoded into several sizes after it finishes. You need to explain how play uses the list of those pieces from a copy near the viewer. You need to explain how the view count rises without every play hitting the same counter. You need to explain how search finds the video from its title and description. Comments and ads can stay thin.

Constraints

Functional

Upload a video and turn it into playable sizes. Store the title and description. Search for a video. Stream it for playback. Count views and likes. Comments can sit beside the video.

Non-functional

Most plays start in under 3 seconds, so people do not abandon the video. A finished upload is kept, so it is not lost. The service stays up about 99.9% of the time. View counts can be a little behind the true number, which is acceptable.

Scale

About 2 billion users. About 500 hours of video are uploaded every minute. Billions of views happen each day. Storage grows into the petabytes. Playback is the rate that dominates.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing