Skip to main content
InterviewHubPRO
Section Overview
Q40

Question 40 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

80%
MySQL & InnoDB (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Global Transaction Identifiers (GTID) in MySQL.

senior LevelDatabases & SQLMySQL

In Simple Words: Older MySQL replication required specifying binary log file names and integer offsets (binlog.000004:10423). GTID assigns a unique cluster-wide identifier to every committed transaction (UUID:Transaction_ID):

  • Replicas auto-negotiate replication position using CHANGE REPLICATION SOURCE TO SOURCE_AUTO_POSITION = 1;.
  • Dramatically simplifies automated failover and promoting a replica to new Primary without calculating log byte offsets.