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 problems such as difficulty in ensuring consistency, inapplicability to microservice architecture, data inconsistency, etc.

Pending Publication Date: 2020-06-09
神州数码融信软件有限公司
View PDF9 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, MySQL has partially supported the XA protocol since 5.0, but in certain scenarios, there is a risk of data inconsistency in MySQL's XA transaction processing
[0016] 3) Most of the current XA-based distributed solutions rely on heavyweight application servers (Tuxedo/WebLogic/WebSphere, etc.), which are not suitable fo

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

[0052] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0053] The invention provides a distributed transaction processing mechanism by simulating the database at the application layer, which can ensure the transaction consistency of the distributed system under the condition of maintaining no intrusion to the business and only requiring the database to support local transactions.

[0054] The distributed transaction processing method provided by the present invention involves three stages: global transaction execution, global transaction submission, and global transaction rollback. Each stage further involves three entity devices, the global transaction server, the transaction branch server and the global transaction man...

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 device. The method comprises the steps of requesting a global transaction manager to record global transaction information of a transaction, and obtaining a global transaction unique identifier returned by the global transaction manager; executing all transaction branch operations in the global transaction; if any transaction branch of the global transaction fails to be executed, requesting a global transaction manager to roll back the global transaction; and if the local transactions corresponding to the transaction branches of the global transaction are submitted successfully, requesting the global transaction manager to submit the global transaction. According to the distributed transaction processing method and device provided by the invention, the transaction consistency of the distributed system can be ensured under the condition of keeping no invasion to the business and only needing the database to support the local transaction.

Description

technical field [0001] The present invention relates to the technical field of distributed systems, in particular to a distributed transaction processing method and device. Background technique [0002] With the gradual use of distributed technology in bank transaction systems, it is inevitable that a transaction needs to span multiple databases or multiple subsystems (microservices) and guarantee transactions. Since these resources are completely independent physically, it becomes very complicated to ensure the atomicity, consistency, isolation, and persistence control of distributed transactions. [0003] For example, suppose there is a transaction where A transfers 200 yuan to B. The general process is as follows: [0004] 1) Transaction starts [0005] 2) Call the transfer service, A transfers 200 yuan; [0006] 3) Call the transfer-in service, and B transfers 200 yuan; [0007] 4) End of transaction [0008] In a distributed system, transfer-in and transfer-out ser...

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): G06F16/27G06F16/2455G06F16/23G06F16/21
CPCG06F16/27G06F16/24554G06F16/23G06F16/217
Inventor 范凯杰薛春雨
Owner 神州数码融信软件有限公司
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