Skip to main content
System Design LabZHIMA / SYSTEMS IN MOTION

Data / 06

Does a replica always have the latest data?

Update one resource from v1 to v2 and compare reads from the primary and replica. Adjust replication lag and wait time to see when stale reads end.

16 MIN
Primary commit
t = 0 s
Replica apply
t = 4 s
Read time
t = 0 s
WALKTHROUGH · TEACHING MODEL
Preparing the 3D walkthrough
WriteReplicationFresh returnStale return
Results at the same read time
4s
0s
WALKTHROUGH1 / 4

Course contents