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

A 4K upload finishes encoding 20 minutes after the user shared the link—viewers hit 404 segments until manifests update. Trending page loads must not scan every view event in real time. Upload pipeline, CDN playback, and view counting are separate scaling problems the interview expects you to separate.

Design a user-generated video platform with upload, transcoding, search, playback, and view statistics. UGC implies spiky uploads and long-tail storage; playback reuses CDN + adaptive streaming patterns.

You should support chunked upload, async encode, catalog metadata, search, smooth playback, and scalable view counts. Be ready to separate write (upload) from read (play) from aggregate (views) paths.

Constraints

Functional

Upload video, transcode, store metadata, search, stream playback, view/like counts, comments hook

Non-functional

< 3 s playback start p95, durable uploads, 99.9% availability, approximate view counts OK

Scale

2B users, 500 hours uploaded/min, billions of views/day, petabyte storage

Stages ahead

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

Log in to start practicing

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