Try
↑ ↓ move↵ openesc close

Interview prep / News feed

Mid · News feed · System design interview question

Estimate the write load of a push feed with 10 million daily users, one post a day each and 200 follows on average.

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

A strong answer

About 10 million posts a day is about 115 posts a second. Each makes 200 inserts, so about 23,000 inserts a second on average.

Reads are higher. If each user opens the feed ten times a day, that is about 1,200 reads a second. The average write load is fine. The celebrity case is what needs a design.

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