Distributed transaction processing method, device and system
A distributed transaction and transaction technology, applied in the Internet field, can solve the problem of high overhead in establishing and maintaining shadow tables, and achieve the effect of small overhead, avoiding overhead, and avoiding modification conflicts.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] This embodiment provides a distributed transaction processing method for processing distributed transactions. The execution subject of this embodiment is a device for distributed transaction processing, and the device for distributed transaction processing may be set in a transaction coordinator.
[0079] Such as figure 1 Shown is a schematic flowchart of the method for distributed transaction processing according to this embodiment. The method includes:
[0080] Step 101, receiving a branch request of a target transaction sent by a terminal, where the branch request includes modification items of the target transaction.
[0081] The target transaction may be any transaction, and specifically may include multiple branch transactions. When the user wants to complete the target transaction, he may first send a creation request of the target transaction to the device for distributed transaction processing through the terminal. The creation requests the means for distribu...
Embodiment 2
[0091] This embodiment provides a further supplementary description of the distributed transaction processing method in the foregoing embodiments.
[0092] Such as figure 2 Shown is a schematic flowchart of the method for distributed transaction processing according to this embodiment. The method includes:
[0093] Step 110, receiving the creation request of the target transaction sent by the terminal, and generating the first global transaction log of the target transaction according to the creation request, and performing step 111.
[0094] The target transaction may be any transaction, and specifically may include multiple branch transactions. When the user wants to complete the target transaction, he may first send a creation request of the target transaction to the device for distributed transaction processing through the terminal. The creation requests the means for distributed transaction processing to create a first global transaction log of the target transaction....
Embodiment 3
[0117] This embodiment specifically illustrates the methods of the preceding embodiments.
[0118] Suppose there are two distributed transactions Tx1 and Tx2. Tx1 and Tx2 respectively represent the execution terminals of the transfer operation. The transfer operation corresponding to Tx1 is to transfer 200 yuan from account A to account B, and deduct the handling fee of 2 yuan. The corresponding transfer operation of Tx2 is to transfer 100 yuan from account B to account C. . Tx1 has 3 branch transactions, namely account A is reduced by 200 yuan, account B is increased by 200 yuan, and account A is reduced by 3 yuan. Tx1 needs to modify a row of records whose primary key is 1 in the DB_A table Table_A in the database corresponding to the resource manager ( Account A minus 200 yuan), the database DB_B table Table_B corresponding to the resource manager has a row record whose primary key is 2 (account B plus 200 yuan), and the resource manager corresponding database DB_A table T...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com