Loading lesson…
Level 1 · Apprentice0 XP
Show each user the latest posts from people they follow, fast.
Step 1 / 6
ProblemUsers follow others and open a home feed of recent posts. 200 million daily users, most only read. A feed must load in under 300 ms.
← → step
Before this: Design a URL shortener
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write the design of a feed for 200M daily users in one page: data model, fan-out strategy with a celebrity threshold, feed storage, ranking and paging. Estimate the Redis memory for 200M feeds of 500 ids. Finish with a rough monthly cost estimate in one line.