โ† Back to All Questions
Hard~55 minStreaming & Video

Design TikTok - Short Video Platform

ByteDanceMetaYouTubeSnapNetflix

๐Ÿ“ Problem Description

Design a short video platform like TikTok. Users can record/upload videos, scroll through personalized "For You" feed, like, comment, and share. Focus on video processing, recommendation algorithm, and low-latency delivery.

๐Ÿ‘ค Use Cases

1.
Creator wants to uploads video so that video processed and published
2.
User wants to scrolls For You page so that sees personalized video feed
3.
User wants to likes or comments so that engagement recorded
4.
Algorithm wants to analyzes engagement so that adjusts recommendations

โœ… Functional Requirements

  • โ€ขRecord and upload short videos (15s-3min)
  • โ€ขVideo editing (filters, music, effects)
  • โ€ขPersonalized "For You" feed
  • โ€ขFollowing feed
  • โ€ขLike, comment, share, save
  • โ€ขDuets and stitches
  • โ€ขTrending hashtags and sounds

โšก Non-Functional Requirements

  • โ€ขVideo upload complete < 30 seconds
  • โ€ขInstant video playback (< 500ms)
  • โ€ขSupport 1B monthly users
  • โ€ข100M concurrent users
  • โ€ข99.9% availability

โš ๏ธ Constraints & Assumptions

  • โ€ขVideos must be transcoded to multiple qualities
  • โ€ขML-heavy recommendation engine
  • โ€ขGlobal content moderation required

๐Ÿ“Š Capacity Estimation

๐Ÿ‘ฅ Users
1B MAU, 100M DAU
๐Ÿ’พ Storage
500PB (videos)
โšก QPS
Uploads: 100K/sec, Views: 10M/sec
๐ŸŒ Bandwidth
100Pbps peak
๐Ÿ“ Assumptions
  • โ€ข 1B monthly active users
  • โ€ข 100M daily active users
  • โ€ข Average 1 hour watch time per day
  • โ€ข 5M videos uploaded per day

๐Ÿ’ก Key Concepts

CRITICAL
ML Recommendation
Multi-stage ranking: candidate generation โ†’ scoring โ†’ diversity โ†’ serving.
CRITICAL
Video Transcoding
Transcode to multiple bitrates (240p-1080p) for adaptive streaming.
HIGH
Real-time Feedback
Watch time, likes instantly feed back to ranking model.
HIGH
Content Moderation
ML + human review pipeline before videos go live.

๐Ÿ’ก Interview Tips

  • ๐Ÿ’กStart with the recommendation algorithm
  • ๐Ÿ’กDiscuss the For You page personalization
  • ๐Ÿ’กEmphasize the content moderation pipeline
  • ๐Ÿ’กBe prepared to discuss video processing
  • ๐Ÿ’กKnow the difference from YouTube (short-form)
  • ๐Ÿ’กUnderstand the creator economy features