Replication lag
The delay between the master storing a write and the slaves receiving it. Meanwhile, a slave can show old data.
Example
You change your profile photo and reload a second later: if the slave has 2 seconds of lag, you still see the old photo.
Test yourself: Replication lag
Replication
A user changes their name and, on reload, sees the old one for 2 seconds. What causes it?
The change is on the master, but the read went to a slave that hasn't received it yet. After 2 seconds it arrives and the new name shows.
0/1
â–¶ Play