Concept
Replication lag
Replication lag is the delay between a change being confirmed on the primary database and that change appearing on a replica. During the delay the replica answers with slightly old data. It is normally milliseconds and grows under heavy writes, long transactions or a slow network.
Where you'll see it
Related concepts
Sources: PostgreSQL documentation: high availability, load balancing and replication ↗ · Consistency tradeoffs in modern distributed database system design (PACELC) ↗ · GitHub: October 21 post-incident analysis ↗ · Report a problem
The definition is in our own words; the sources are those of the lesson Replication lag.