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

Distributed transaction processing method and device

A distributed transaction and processing method technology, applied in the field of distributed transaction processing methods and devices, can solve the problems of transaction branches affecting the global submission of transactions, and achieve the effect of ensuring the success rate

Active Publication Date: 2016-10-05
TAOBAO CHINA SOFTWARE
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The main purpose of this application is to provide a distributed transaction processing method and device to solve the problem existing in the prior art in distributed transactions that the execution of unimportant transaction branches affects the global submission of transactions due to the fact that the transaction branch levels are all equal. questions, among them:

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 and device
  • Distributed transaction processing method and device
  • Distributed transaction processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The main idea of ​​this application is to configure retryable transaction branches (transaction branches that do not require immediate success) and non-retryable transaction branches (transaction branches that require immediate success) in distributed transactions, so that according to whether the transaction branch can Retry performs corresponding processing on each branch. For the transaction branch that can be retried, it does not execute immediately, but directly reports the successful execution result of the branch to the server. For the transaction branch that cannot be retried, it reports the execution result to the server after execution. The execution result of the branch, so as to quickly enter the global transaction commit or rollback phase, and execute the transaction branch that can be retried in the global commit or rollback phase, and solve the problem of unimportance due to the equality of different transaction branch levels in distributed transactions Th...

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 and a distributed transaction processing device. The distributed transaction processing method comprises the following steps: judging whether implementation of event branches of a distributed event can be retried or not, and processing each event branch according to a judgment result; after all event branches of the distributed event are processed, implementing submission or feedback of the distributed event. According to the technical scheme of the invention, event branches which can be retried and event branches which cannot be retried can be deployed for the distributed event, branches which can be retried are not immediately implemented, but an implementation result that the branches are successfully implemented is directly submitted to a server, so that overall submission or feedback procedures of the event can be relatively rapidly implemented, branches which can be retried are implemented in an event submission procedure, and submission of the distributed event is asynchronously progressed, thus ensuring the success rate of the event, and having no influence on the final consistence of the event.

Description

technical field [0001] The present application relates to the field of distributed transaction processing, and in particular to a distributed transaction processing method and device. Background technique [0002] A transaction is an inseparable unit of work. A distributed transaction usually includes multiple local transactions. Each local transaction is either executed or not executed. For example, suppose operation 1 on database A and operation 2 on database B 1. Operation 3 on database C is a distributed transaction. In traditional distributed transaction processing, only when all three operations are successfully executed, can this distributed transaction succeed. However, in many actual businesses, the key levels of the three operations are not the same, some require immediate success, that is, the call has already succeeded when it returns, and some only require final success. [0003] Existing solutions to the problem of distributed transactions include: XA two-phas...

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
Inventor 姜宇
Owner TAOBAO CHINA SOFTWARE
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