Tag

Two-Phase Commit

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
May 12, 2025 · Databases

Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions

This article explains the sequential write process of Undo Log, Redo Log, and Binlog during MySQL transaction execution and commit phases, describes the involved caches, two‑phase commit rationale, and outlines key configuration parameters for each log type.

MySQLTransactionTwo-Phase Commit
0 likes · 10 min read
Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions
Lobster Programming
Lobster Programming
Apr 23, 2025 · Backend Development

How Seata’s AT Mode Implements Two-Phase Commit for Distributed Transactions

This article explains Seata’s AT transaction mode, its reliance on the classic two‑phase commit protocol, the roles of TC, TM, and RM, and how snapshot‑based SQL interception ensures consistency and rollback in microservice architectures.

Backend DevelopmentMicroservicesTwo-Phase Commit
0 likes · 6 min read
How Seata’s AT Mode Implements Two-Phase Commit for Distributed Transactions
Cognitive Technology Team
Cognitive Technology Team
Apr 12, 2025 · Backend Development

Implementation Principles of RocketMQ Distributed Transaction Messages

The article explains how RocketMQ implements distributed transaction messages using a two‑phase commit model to ensure data consistency across micro‑service subsystems, detailing the workflow from half‑message production, broker handling, local transaction execution, commit/rollback decisions, and periodic status checks.

Backend DevelopmentMessage QueueTwo-Phase Commit
0 likes · 7 min read
Implementation Principles of RocketMQ Distributed Transaction Messages
Lobster Programming
Lobster Programming
Apr 10, 2025 · Databases

Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination

MySQL employs a two‑phase commit to synchronize InnoDB’s redo log with the server’s binlog, ensuring atomicity during transaction commits and preventing data inconsistencies during crash recovery or replication, while also introducing lock contention, extra I/O, and potential blocking.

MySQLTransactionTwo-Phase Commit
0 likes · 5 min read
Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 24, 2024 · Databases

Summary of the MySQL Transaction Module Series

This article reviews the 14-part series on MySQL's transaction module, covering initialization, transaction types, two‑phase commit, binlog handling, savepoints, and full rollback, and provides links to each detailed post, including discussions on BEGIN statements, read‑only transactions, and the internal mechanisms of InnoDB.

InnoDBMySQLSavepoint
0 likes · 5 min read
Summary of the MySQL Transaction Module Series
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 28, 2024 · Databases

Two‑Phase Commit: The Prepare Phase in MySQL 8.0 InnoDB and Binlog

This article explains how MySQL 8.0 implements the two‑phase commit protocol, detailing when it is used, the responsibilities of the prepare stage for both the binlog and InnoDB storage engines, and the five key actions InnoDB performs during preparation.

InnoDBMySQLTransaction
0 likes · 7 min read
Two‑Phase Commit: The Prepare Phase in MySQL 8.0 InnoDB and Binlog
政采云技术
政采云技术
Sep 5, 2023 · Cloud Computing

Seata Distributed Transaction Framework: Architecture and Implementation

This article provides a comprehensive overview of Seata, a distributed transaction framework that ensures data consistency across microservices through four transaction modes: AT, XA, TCC, and Saga, each with distinct characteristics and use cases.

AT ModeMicroservicesSaga mode
0 likes · 11 min read
Seata Distributed Transaction Framework: Architecture and Implementation
Aikesheng Open Source Community
Aikesheng Open Source Community
May 31, 2023 · Databases

Deep Dive into MySQL 8.0.33 Two‑Phase Commit: Source‑Code Analysis

This article provides a detailed source‑code walkthrough of MySQL 8.0.33’s two‑phase commit process, explaining the Prepare and Commit stages, internal structures such as binlog queues, GTID generation, redo‑log flushing, sync handling, and the interactions between InnoDB and the binary log.

GTIDInnoDBMySQL
0 likes · 18 min read
Deep Dive into MySQL 8.0.33 Two‑Phase Commit: Source‑Code Analysis
政采云技术
政采云技术
Mar 2, 2023 · Fundamentals

Two‑Phase Commit in Lucene: Mechanism, Implementation, and Rollback

This article explains the two‑phase commit protocol, describes how Lucene implements it through a dedicated interface, details the preparation, commit, segment handling, deletion policies, and rollback procedures, and provides code snippets illustrating the core logic.

IndexingLuceneRollback
0 likes · 13 min read
Two‑Phase Commit in Lucene: Mechanism, Implementation, and Rollback
政采云技术
政采云技术
Mar 2, 2023 · Databases

Understanding Two-Phase Commit and Its Implementation in Lucene

This article explains the two-phase commit protocol for distributed transactions, details its generic workflow, and describes how Apache Lucene implements the protocol through its TwoPhaseCommit interface, including preparation, flushing, commit, segment handling, deletion policies, and rollback mechanisms with illustrative code examples.

IndexingJavaLucene
0 likes · 12 min read
Understanding Two-Phase Commit and Its Implementation in Lucene
Sanyou's Java Diary
Sanyou's Java Diary
Oct 27, 2022 · Backend Development

Seata Distributed Transactions Explained: Compensation, 2PC, AT, TCC, XA, Saga

This article introduces Seata's approach to distributed transactions, covering the concept of reverse compensation, core components (TC, TM, RM), the two‑phase commit protocol, and detailed walkthroughs of Seata's AT, TCC, XA, and Saga modes with practical examples and diagrams.

AT ModeSagaTwo-Phase Commit
0 likes · 14 min read
Seata Distributed Transactions Explained: Compensation, 2PC, AT, TCC, XA, Saga
Big Data Technology Architecture
Big Data Technology Architecture
Aug 13, 2022 · Big Data

Apache Doris at Xiaomi: Architecture Evolution, Performance Optimizations, and Production Practices

This article details Xiaomi's three‑year journey of adopting Apache Doris across dozens of internal services, describing the transition from a Spark‑SQL‑based Lambda architecture to a unified MPP database, performance benchmarks, data ingestion pipelines, compaction tuning, two‑phase commit, single‑replica writes, monitoring, and community contributions.

Apache DorisCompactionData Warehouse
0 likes · 19 min read
Apache Doris at Xiaomi: Architecture Evolution, Performance Optimizations, and Production Practices
Architect's Guide
Architect's Guide
Jul 30, 2022 · Databases

Understanding Distributed Transactions, Consistency Models, Sharding, and Commit Protocols

This article explains the fundamentals of distributed transactions, including ACID properties, consistency models, sharding strategies, and the two‑phase, three‑phase, and TCC protocols, while discussing CAP and BASE theories and the challenges of implementing reliable distributed databases.

ACIDBASECAP
0 likes · 23 min read
Understanding Distributed Transactions, Consistency Models, Sharding, and Commit Protocols
IT Architects Alliance
IT Architects Alliance
Apr 22, 2022 · Databases

Understanding Distributed Transactions, Consistency Models, Sharding, and Commit Protocols

This article explains the fundamentals of distributed transactions, the ACID properties, various consistency models, database sharding strategies, and the two‑phase, three‑phase, and TCC commit protocols, while also discussing CAP, BASE, and practical challenges in large‑scale systems.

ACIDCAPSharding
0 likes · 22 min read
Understanding Distributed Transactions, Consistency Models, Sharding, and Commit Protocols
Architecture Digest
Architecture Digest
Apr 7, 2022 · Databases

Understanding Distributed Transactions, Consistency Models, and Commit Protocols

This article explains the fundamentals of distributed transactions, covering ACID properties, consistency models, sharding strategies, CAP and BASE theories, and compares two‑phase, three‑phase, and TCC commit protocols to illustrate how modern systems maintain data integrity across multiple nodes.

ACIDShardingTwo-Phase Commit
0 likes · 21 min read
Understanding Distributed Transactions, Consistency Models, and Commit Protocols
DataFunSummit
DataFunSummit
Nov 22, 2021 · Databases

Rigid Transactions: Two-Phase Commit (2PC) and Three-Phase Commit (3PC) Explained

This article explains rigid (strong consistency) distributed transactions, detailing the XA protocol and the classic two‑phase commit (2PC) and three‑phase commit (3PC) mechanisms, their workflows, advantages, limitations, and practical considerations for database systems.

Two-Phase CommitXA protocoldatabase consistency
0 likes · 15 min read
Rigid Transactions: Two-Phase Commit (2PC) and Three-Phase Commit (3PC) Explained
IT Architects Alliance
IT Architects Alliance
Nov 11, 2021 · Backend Development

Understanding Distributed Transaction Protocols: XA, Two‑Phase Commit, LCN, and TCC

This article explains the evolution from local to distributed transactions, detailing the XA protocol, the two‑phase commit process, the LCN framework, the TCC model, and the design of business compensation mechanisms for reliable microservice systems.

LCNTransaction ManagementTwo-Phase Commit
0 likes · 12 min read
Understanding Distributed Transaction Protocols: XA, Two‑Phase Commit, LCN, and TCC
Wukong Talks Architecture
Wukong Talks Architecture
Sep 26, 2021 · Databases

Understanding MySQL Redo Log and Binlog: Architecture, Mechanisms, and Two‑Phase Commit

This article explains MySQL's two essential logs—redo log and binlog—by describing the database's layered architecture, the write‑ahead logging mechanism, persistence strategies, crash‑safe guarantees, and how a two‑phase commit ensures consistency between them.

MySQLTransactionTwo-Phase Commit
0 likes · 12 min read
Understanding MySQL Redo Log and Binlog: Architecture, Mechanisms, and Two‑Phase Commit