HubSpot logoHubSpot
System Design·60 minFree preview

Design Netflix

Design a Netflix-style video platform. The interviewer supplies three core features, most often some mix of browse by genre / search, stream video at multiple qualities, save watch progress across devices, recommendations, or upload. Follow-ups focus on schema design, caching (what to do when the cache miss rate is high), and rubric questions such as SQL vs NoSQL. Back-of-envelope metrics are often not required.

SWE
streaming
cdn
caching
schema-design
database
recommendation
storage
Frequency
Medium
Last asked
2026-04-25
Stage
onsite-system-design · phone-screen

Problem

Design a Netflix-style video streaming service. The interviewer usually pastes the functional requirements directly instead of asking you to gather them, then you go straight into the design on a shared whiteboard (no code). The requirement set rotates between loops, but it is always about three features drawn from:

  • Browse videos by genre / category, or search for videos (including keyword search).
  • Play / stream a video, including serving different video qualities (adaptive to device and network).
  • Save playback progress (last watched timestamp per user per video) so a user can resume on a different device.
  • A recommendation system, plus top-k trending.
  • Upload videos.

Sample combinations:

  • Browse by genre + play + save progress across devices.
  • Stream at different qualities + recommendations + save progress.
  • Search + stream + upload.

One intern loop did not require analyzing metrics or capacity numbers; the goal was to make the three given features work end to end.

Variants

YouTube-style platform

Some loops frame the same prompt as a YouTube-like platform (upload, watch, search, thumbnails, auth). Prepare the upload and transcoding path in addition to playback.

  • Upload: stream the raw file to object storage under a video_id, insert a metadata row (uploaded), publish video.uploaded. A transcoding worker sets processing, produces HLS/DASH renditions plus keyframe thumbnails, writes the CDN URLs, sets ready, and publishes video.ready, which triggers search indexing.
  • Metadata row carries status (uploaded | processing | ready | failed), thumbnail_url, manifest_url; search lives in a separate index with a denormalized copy.

Hints

Pitfalls

  • The interviewer follows a scoring rubric and asks stock questions along the way, e.g. the difference between SQL and NoSQL and when you would pick each. Have crisp answers ready.
  • Interviewers dig into whatever you sound unsure about. Candidates who crammed system design for a week did fine on the core features but struggled once follow-ups left familiar territory.
  • One candidate's feedback was that the final diagram was over-sized for the requirements; walk back through the whole design at the end and trim anything the three features do not need.
  • Technical rounds are often shadowed by a second interviewer.
  • Do not compute trending on the request path or write progress every second.

Talking Points

  • Split metadata and media planes explicitly; they scale differently.
  • Precompute trending and recommendations so reads are lookups.
  • Quantify heartbeat write load and why sharded KV handles it.
  • Explain the ABR loop: the client compares segment download time with duration and buffer drain; the server only serves segments.
  • Derive egress as users x session length x bitrate.
  • Walk the uploaded -> processing -> ready lifecycle and per-service failure behavior.

Follow-ups

Schema for videos, users, and watch progress?
How do you use caching here, and what do you do if the cache miss rate is high?
SQL vs NoSQL: which do you choose for each store, and why?
How do you serve different video qualities to different clients?

Preparation

  • Sketch the playback path end to end for multiple qualities.
  • Write out a schema covering videos, genres, users, and watch progress, and justify SQL vs NoSQL for each store.
  • Prepare a short answer on fixing a high cache miss rate.
  • Redo the egress and heartbeat arithmetic and write the keyset query.
  • Rehearse a 2-minute end-of-interview recap of your diagram that removes unnecessary components.
Was this article helpful?

Comments

Sign in to join the discussion
Loading...