Distributed transaction processing method and device and storage medium

A distributed transaction and processing method technology, applied in the field of distributed transaction processing methods, equipment and storage media, can solve the problems of cumbersome processing procedures, affecting the efficiency of transaction execution, and insufficient simplification.

Pending Publication Date: 2021-05-25
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF0 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on the transaction model of Saga theory, for any sub-transaction, after the execution of the sub-transaction fails, it needs to perform a rollback operation on the sub-transaction. This kind of processing flow is cumbersome and not simplified enough, which affects the execution efficiency of the transaction.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0080] In a stand-alone scenario, the transactional consistency of data can usually be guaranteed by a relational database. Relational databases introduce the concept of transactions to ensure transaction consistency. A transaction includes transaction IDs, related calculations in the business system, and SQL for data modification. When the execution...

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 embodiment of the invention provides a distributed transaction processing method and device and a storage medium. In some embodiments of the invention, the method comprises the steps of receiving a distributed transaction starting request sent by a transaction request end by distributed transaction processing equipment; according to the starting request, obtaining an execution sequence of a plurality of pre-configured sub-processes; according to the execution sequence of the plurality of sub-processes, executing the plurality of sub-processes in sequence; adding a condition for judging whether a retry is met after execution of a target sub-process fails, executing retry operation on the target sub-process under the condition of meeting the retry condition, adding a condition for judging whether a rollback condition is met or not after execution of the sub-process fails, and executing retry operation on the target sub-process under the condition of meeting the rollback condition, reversely executing the rollback operation of all the executed sub-processes from the target sub-process, so that the probability of successful execution of the distributed transaction is increased, the probability of data inconsistency caused by instability of the distributed system is reduced, the self-healing capability of the distributed system in a fault scene is improved, and the execution efficiency of the transaction is improved.

Description

technical field [0001] The present application relates to technologies in the field of distributed computing, and in particular to a distributed transaction processing method, device and storage medium. Background technique [0002] In the distributed system architecture, the entire business process is jointly completed by multiple business nodes providing multiple services, and a business logic often needs to operate data on multiple services. In order to ensure the data consistency of multiple services, it is usually necessary to introduce a distributed transaction mechanism for processing. Each transaction includes different business operations on multiple nodes, and the execution results of the transaction can only succeed or fail. [0003] At present, based on the transaction model of Saga theory, a long transaction T that executes multiple steps is split into multiple sub-transactions: t1, t2, ..., tm-1, tm, tm+1, ..., tn; at the same time, define the rollback logic o...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46G06F9/54G06F11/14G06F16/27G06F16/28
CPCG06F9/465G06F9/466G06F9/547G06F11/1438G06F2209/544G06F16/27G06F16/283
Inventor 李进
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products