Posts tagged “fan-out”

  1. How do you build a news feed: fan-out on write or on read?

    Fan-out on write precomputes each follower's timeline, so reads are instant, but one post from an account with millions of followers means millions of writes. Fan-out on read is cheap to write and expensive to read. Large feeds use both: push for most accounts, pull for the very popular ones.

    · 6 min read · System Design