Database · Medium
How do you detect and deal with replication lag?
DatabaseDistributed SystemsStaffPerformance
Answer preview
Replication lag is the delay between a write committing on the leader and becoming visible on a replica. It is the root cause of most "I saved it but it disappeared" bugs, and it grows non-linearly under write bursts, long-running queries on the replica, and single-threaded apply…