Databases · interactive
Read replicas and replication lag
Writes go to the primary; reads are spread across replicas that copy its log a moment later. Ada renames herself and the page reloads straight away. Does she see her new name?
primary
takes the write at 0 ms
name = "Ada Lovelace"
replica 1
lags 800 ms
name = "Ada"
replica 2
lags 300 ms
name = "Ada"
profile page, read at 200 ms · served by replica 1 in 3 ms
Hello, Ada
Replica 1 hasn't applied the write yet: the user sees their old name.
Route reads to
Step 2 of 4 · read left to right
In production
Tools and technologies
Managed databases make replicas one click; lag is still yours.
Not tied to one language — use these names when you search docs or design a system.