Try
↑ ↓ move↵ openesc close

Interview prep / News feed

Mid · News feed · System design interview question

What is the celebrity problem and how does a hybrid feed solve it?

Sketch your own answer first, then compare it with the one below.

A strong answer

A push post costs one insert per follower. An account with millions of followers floods the writers, and posts behind it in the queue are delayed.

A hybrid pushes accounts below a follower threshold and does not push accounts above it. At read time the service reads the reader's inbox, pulls the latest posts of the celebrities the reader follows and merges by time.

Writes are bounded by the threshold. Reads are bounded by the number of celebrities followed. The threshold sets the balance.

Sources

Learn it by running it

The design a news feed lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

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