System Design Basics
Design Twitter FeedHardMultiple Choice
4/10
Fan-out / Pull

Description

You're designing the home timeline for a Twitter-like social network. A user follows hundreds of accounts, and you need to assemble their feed showing the most recent posts from all followed accounts. User A follows 500 accounts. When they open the app, how should their feed be generated?

Requirements

01Consider that some users (celebrities) have millions of followers
02The feed must load in under 200ms for a good user experience
03Think about write amplification vs read amplification trade-offs

Select Your Answer