Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Active Publication Date: 2018-03-13
ALIBABA GRP HLDG LTD
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0024] The present invention provides a method, device and system for distributed transaction processing to solve the problem of high overhead in establishing and maintaining shadow tables

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed transaction processing method, device and system
  • Distributed transaction processing method, device and system
  • Distributed transaction processing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a distributed transaction processing method, device and system. The method comprises the following steps of: receiving a branch request of a target transaction sent by a reception terminal, wherein the branch request comprises information of a modification item of the target transaction; judging whether the modification item is occupied or not; and if the judging result is negative, forming a mapping relationship between a first global transaction log and the modification item, wherein the first global transaction log is a global transaction log of the target transaction. According to the method, device and system, the operation of establishing a shadow table in a database corresponding to a resource manager can be avoided and the expenditure of the shadow table is maintained.

Description

technical field [0001] The present invention relates to Internet technology, in particular to a distributed transaction processing method, device and system. Background technique [0002] The so-called transaction is an operation unit in the database. In this operation unit, all operations either succeed or fail, and the execution result is irreversible. Transactions have four basic characteristics: atomicity, consistency, isolation, and persistence , also referred to as ACID characteristics of transactions. With the development of the Internet and the changing needs of users, the application of distributed transaction systems is becoming more and more extensive. [0003] A distributed transaction system usually includes the roles of client, resource manager, and transaction coordinator, which are located on different nodes of the distributed system. Among them, the transaction coordinator is responsible for coordinating all related processing processes from the beginning ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/46G06F17/30
CPCG06F9/466G06F16/2358G06F16/2365
Inventor 姜宇
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products