PrepCity

Primary-replica replication

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 8 pages · about 5 min

Primary-replica replication

The primary commits, streams its write-ahead log to a standby, and the standby replays it; until replay, a read there can be one version behind.

Words you’ll learn

  • API
  • Primary
  • Write-ahead log
  • LSN
  • Asynchronous
  • Disk
  • Read replica (standby)
  • Row
  • Commit
  • Read-your-writes

Page by page