Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Short-Video Sharing Platform

Design durable short-video upload and processing, ranked feed generation, and low-latency global playback.

Problem statement

For this exercise, assume creators upload short videos and viewers receive a personalized infinite feed. An accepted upload must survive failures, be transcoded before playback, and be delivered globally with low startup latency. Feed ranking uses view and engagement signals.

Compare push, pull, and hybrid feed generation under skewed creator popularity, choose partition boundaries, and state where strong or eventual consistency is acceptable. Design the metadata, APIs, upload and processing flow, ranking/feed path, playback delivery, failure recovery, and observability.

Messaging, advertising, moderation workflow, deletion, and creator payouts are out of scope.

What to build

  1. A creator can resume an interrupted upload and receive one stable video identity plus processing status.
  2. Accepted media is transcoded into playable renditions before it becomes feed eligible.
  3. A viewer can page through a ranked personalized feed without obvious duplicates within one feed session.
  4. A viewer can start an eligible video through globally distributed adaptive playback and report bounded engagement events.

At scale

  • For this exercise, assume 50 million daily active viewers, 5 million uploads per day, a 60-second maximum source video, and a 200 MB maximum upload.
  • Peak feed reads reach 500,000 requests per second and peak playback-manifest reads reach 1,000,000 per second; feed metadata p95 should remain below 200 ms excluding media bytes.
  • An accepted upload must not be lost. Processing may take up to five minutes at p95, and a failed stage must be retryable without publishing conflicting renditions.
  • A small set of creators has tens of millions of followers. Ranking features may lag by up to one minute, while playback eligibility must reflect the current authoritative video state.