LESSON 01 · Product boundary

Define the feed promise

Agree on who can publish, who may read, and how fresh the timeline must feel.

SYSTEM VIEW

The feed path

Diagram view
Feed reads—
Inbox writes—
One big post—

Watch a feed take shape as a separate list per reader, then size the reads, the writes and one large author’s fanout.

  1. The Author publishes a post with an image, and the Post store keeps it. The Reader asks the Feed service for a home timeline and gets their own list from Inboxes, newest first. A feed is a personalized view, not one shared list.

    Order
    newest first
    Follows
    a few thousand max
    Separate designs
    search, ads, stories, recs

    What changed

    • Post with an image stored
    • The Reader’s own list
    • Newest first
  2. Before sizing, ask: do follows need approval, can posts be private, and what does a block or mute mean? State a freshness goal, peak rates, active readers, media size and scroll depth. A small forum with one shared list needs none of this machinery.

    Visibility
    approval, private, block
    Freshness
    a stated goal
    Load
    peaks, media, scroll

    What changed

    • Visibility rules to settle
    • Freshness goal to state
    • Rates, media, scroll depth
  3. Size the reads. 8 million daily readers each load the feed 12 times a day: 96 million loads, about 1,100 a second on average (96 million ÷ 86,400 seconds). Each load asks the Feed service for that reader’s own list.

    Daily readers
    8 million
    Loads each
    12 a day
    Average
    1,100/s

    What changed

    • One Reader becomes 8 million
    • 96 million loads a day
    • About 1,100 reads/s
  4. Now the writes. 2 million posts a day, each reaching 200 followers on average, make 400 million timeline writes: about 4,630 a second. Fanout workers add each post to its followers’ inboxes.

    Posts a day
    2 million
    Followers
    200 on average
    Writes
    400 million a day

    What changed

    • One Author becomes many Authors
    • 400 million writes a day
    • About 4,630 writes/s
  5. Skew matters. One Large author with 5 million followers turns a single post into 5 million writes: roughly 8 minutes of work at 10,000 writes a second. This distribution work is called fanout.

    Followers
    5 million
    Writes
    5 million
    At 10,000/s
    roughly 8 min

    What changed

    • Authors → one Large author
    • 1 post, 5 million writes
    • Roughly 8 minutes of fanout
  6. Three operations stay apart: the Post store accepts the post durably, fanout makes it eligible later, and the Feed service renders pages on request. Answer after the durable post (201 at once) or after every inbox (about 8 minutes); the product must state the delay.

    1 · Publish
    durable post
    2 · Distribute
    eligible later
    3 · Read
    page on request

    What changed

    • Post stored durably
    • Fanout later, reads on request
    • Answer: durable post or every inbox
    Publish answers after

Space plays · ← → step · Home resets

THE IDEA

How it works

A feed is a personalized view of posts, not a single shared list. For this design, people publish text with optional images or video, follow other accounts, and read a home timeline on mobile or web. Assume a reverse chronological (newest first) release with at most a few thousand follows per account. Search, ads, stories, and recommendations can be separate designs.

Ask whether follows require approval, whether posts can be private, and what a block or mute means. State a freshness goal for ordinary posts, the peak publish and refresh rates, active readership, expected media size, and how far people scroll. A small forum with one shared list needs none of the machinery that follows, which exists because each reader’s view differs.

Example numbers show why skew matters. With 8 million daily readers loading the feed 12 times a day, reads average about 1,100 per second (96 million ÷ 86,400). If 2 million daily posts reach 200 followers on average, that is 400 million timeline writes, about 4,630 per second. One author with 5 million followers adds 5 million writes from a single post, roughly 8 minutes of work at 10,000 writes per second. This distribution work is called fanout.

Keep three operations distinct: accepting a post durably, making it eligible in followers’ feeds, and rendering a feed page. A successful publish response need not mean every follower has already received an entry; the product must say what delay is acceptable.

DECISION POINT

The brief says “show friends’ posts instantly.” Which promises need precise definitions before sizing a design?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Define audience and visibility before choosing fanout.
  • Separate durable publishing, feed eligibility, and page rendering.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 3
RecallQUESTION 01

Which operation should “publish succeeded” guarantee first?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 3 checkpoints answered correctly to complete this lesson.