Try
↑ ↓ move↵ openesc close

Interview prep / News feed

Junior · News feed · System design interview question

What does a push feed cost per post?

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

A strong answer

One write for each follower of the author. An account with 200 followers costs 200 inserts and an account with 10 million followers costs 10 million.

The average can look fine while single posts are huge. A good answer names the tail, not only the mean.

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