System Design · Senior · Question 8 of 75

How does fan-out on write differ from fan-out on read in a social feed?

Explanation

Precomputed feeds make reads fast, but a celebrity's post with millions of followers generates millions of writes. Assembling on read is cheap to write but slow to read. Usually it's a hybrid: fan-out on write for regular authors, merge-in at read time for celebrities.

Further reading

Problem with a question

System Design · Senior · question 8

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz