Fan-out on write
Pushing each new post to every follower's feed as soon as it's published.
Example
With 500 followers, 1 tweet is 500 writes.
Test yourself: Fan-out on write
Designing Twitter
A regular user with 300 followers posts. Which model fits?
300 writes are cheap, and in exchange each follower finds the tweet already in their feed when they open the app. For a celebrity with 50 million, pull fits better.
0/1
â–¶ Play