MySQL replication lag caused by concurrency and large transactions

explainanalyze.com15 min read

This article investigates the actual causes of replication lag in MySQL, demonstrating through practical tests that replica delays are typically driven by write concurrency, large transactions, unindexed tables, and background query load rather than network or disk bottlenecks. The author finds that replicas must re-apply row changes independently, making transaction batch size, secondary index overhead, and metadata locks critical factors in performance. Open article →