Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. One post, a million timelines
  2. 2. Requirements, numbers, API and data model
  3. 3. Push, pull and hybrid in the lab
  4. 4. The celebrity problem
  5. 5. The hybrid and its threshold
  6. 6. Feed storage and pagination
  7. 7. The news feed in review

Topic 7

The news feed in review

3 min read

Predict first

Why does a push feed struggle with a celebrity account?

Predict first

What does a hybrid feed do at read time?

Predict first

Why use a cursor, not a page number, for a feed?

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

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms