MariaDB Replication Dirty Secrets / AMA
summary
MariaDB replication records transactions in the binary log in commit order so applying them sequentially reproduces master state; that lets MariaDB use Group Commit and an in-order parallel application that starts many transactions concurrently but enforces master commit order at commit time. Benchmarks show good scaling if hundreds to thousands of worker threads are available, but corner cases exist (e.g., delete/insert/delete interleavings that silently skip a delete and later cause duplicate key errors). GTID uses a single position per domain with a GTID domain model for multisource flexibility, shifting some correctness burden to operators.
AI-written summary · about
