Design the For You feed of a short-video app. Every time a user swipes, the next video should be one they are likely to watch to the end, chosen from hundreds of millions of videos, and the feed should react to what they just watched within minutes.
Functional:
- Serve a personalized, endless feed of short videos, a few at a time, as the user swipes.
- Learn from what the user does: watch time, replays, likes, shares, follows, and quick skips.
- Show new videos from new creators, not only what is already popular.
- Never show a video the user has already seen in the last 30 days, or one that was removed.
Non-functional:
- The next page of videos is ready within 200 ms at p99, so swiping never stalls.
- A strong signal (watching three cooking videos in a row) changes the feed within 5 minutes.
- Model updates roll out safely: a worse model can be caught and rolled back before it reaches everyone.
- 1 billion monthly users, 400 million daily; 150,000 feed requests per second at peak.
- 500 million videos available to recommend, 30 million new uploads a day.
- 50 billion interaction events a day.
Video upload and transcoding, ads, and content moderation.
Accepted 0/1
Acceptance 0%
Loading editor...
Submit your design to grade it.
- The components and connections this prompt needs
- Structure: an entry point, data stores, async work, and failure handling
- The concepts you explain on the board or in Notes, in your own words
To pass, score 65 or more with every required component but one, and name at least half the concepts, or all of them if a component is missing.