Whole systems · Intermediate · 11 min

Design a News Feed

Compare computing a timeline on read with preparing entries when posts arrive.

STEP 1 / 12
Define the feed experience — isometric concept diagramA feed is a result contract, not just a list of posts. Components: 1. Feed reader. Representative clients, not a literal user count; 2. Feed service. Logical component or processing boundary. Connections: 1. Feed reader to Feed service: Define the feed experience; 2. Feed service to Feed reader: Reply: Feed service. Illustrations are conceptual, not deployed capacity or user counts.Feed reader → Feed service: Define the feed experience1Feed service → Feed reader: Reply: Feed service2Feed reader: representative traffic illustration; figure count is not a workload measurement.1Feed readerRepresentative clients, not aliteral user countFeed service: Logical component or processing boundary2Feed serviceLogical component or processingboundary
1Feed reader2Feed service
  1. 1Feed reader → Feed serviceRequestDefine the feed experience
  2. 2Feed service → Feed readerReplyReply: Feed service

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Feed reader + Feed service highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Read-time computation shifts work toward serving.
  • Write-time preparation shifts work toward publication.
  • A hybrid needs one coherent visible feed contract.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

CQRS & materialized views ↗

Publish–Subscribe ↗

Further reading

Microsoft · Materialized view ↗