In this lesson · topic 7 of 7
Topic 7
The news feed in review
3 min read
Predict first
Predict first
Predict first
Take away
- A feed can be built on write, by push, or on read, by pull.
- Push cost is the author’s follower count. The average holds steady as skew grows, and the tail grows.
- Pull moves the cost to reads, and a read fetches from every followed account.
- A hybrid pushes ordinary accounts and pulls celebrities. It bounds both sides, and the threshold slides along the trade-off.
- Store ids, not posts, in a capped inbox that can be rebuilt. Page with a cursor of time and id.
- Let the feed be late. Do not let it skip or repeat.
Sources
- Adam Silberstein, Jeff Terrace, Brian F. Cooper, Raghu Ramakrishnan, Feeding Frenzy: selectively materializing users’ event feeds, ACM SIGMOD, 2010.
- Jeffrey Dean, Luiz André Barroso, The Tail at Scale, Communications of the ACM, 2013.