Data & storage · Intermediate · 10 min

Replication

Separate durable copies, read scaling and the freshness a user observes.

STEP 1 / 11
Start with one data owner — isometric concept diagramSeparate availability needs from read capacity needs. Components: 1. Application. Logical component or processing boundary; 2. Write leader. Durable or explicitly scoped state. Connections: 1. Application to Write leader: Start with one data owner; 2. Write leader to Application: Reply: Write leader. Illustrations are conceptual, not deployed capacity or user counts.Application → Write leader: Start with one data owner1Write leader → Application: Reply: Write leader2Application: Logical component or processing boundary1ApplicationLogical component or processingboundaryWrite leader: Durable or explicitly scoped state2Write leaderDurable or explicitly scoped state
1Application2Write leader
  1. 1Application → Write leaderRequestStart with one data owner
  2. 2Write leader → ApplicationReplyReply: Write leader

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

2 components visible · Application + Write leader highlighted

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

You’ll learn

  • Trace leader writes and asynchronous replication.
  • Explain a stale read after a successful write.
  • Discuss read routing and failover separately.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

CQRS & materialized views ↗

Further reading

PostgreSQL · Warm standby and replication ↗