Chinese | English | Definition |
Transaction | transaction | A series of operations performed as a single logical unit of work. These operations are either all executed or none are executed. |
Distributed transaction | distributed transaction | A transaction where the initiator, resources, resource manager, and transaction coordinator are on different nodes in a distributed system. |
Branch transaction | action | A distributed transaction can include multiple local database transactions. In a distributed transaction framework, an action can be an SQL statement that runs on a sharded database or a call to a custom service. |
Initiator | initiator | The initiator starts a distributed transaction. It calls the services of participants to include them in the transaction. The initiator also decides whether to commit or roll back the entire transaction. A distributed transaction has only one initiator. |
Participant | participant | A participant provides action services. When an initiator calls a participant, the participant joins the distributed transaction and becomes an action within it. A distributed transaction can have multiple participants. |
Transaction manager | transaction manager | An independent service that coordinates distributed transactions. It creates activity and action records. Based on the state of the distributed transaction, it calls the commit or rollback methods of the participants. |
Activity record | activity record | Also known as an Activity record, this is the main entity of a distributed transaction. Its core data includes the transaction ID (TX_ID) and state (STATE). This record is saved to the database when the transaction starts. The state of this record determines the state of the entire distributed transaction. |
Branch Transaction Record | action record | Also known as an Action record, it identifies an action. It records information about the participant that provides the action, including the participant's unique ID. The transaction manager uses this information to commit or roll back the participant's action. |