Skip to content
Replication Internals: Decoding the MySQL Binary Log Part 9: XID_EVENT — Transaction Commit
← Back to blogMySQL

Replication Internals: Decoding the MySQL Binary Log Part 9: XID_EVENT — Transaction Commit

In this ninth post of our series, we decode the XID_EVENT — the smallest event in the binary log, and the one that marks every transactional commit. Introduction Every DML transaction we've decoded so far ends the same way: with an XID_EVENT (event type 16, 0x10). At only 31 bytes on the wire, it carries a single piece of information — an 8-byte transaction identifier — but it does some of the heaviest lifting in MySQL replication. The XID_EVENT is what allows replication to be crash-safe wit

Marcelo Altmann

Marcelo Altmann

2026-04-29 · 12 min read

Want to see Readyset in action?

Book a demo and see how Readyset can accelerate your database.