A distributed transaction processing method based on distributed message middleware

A technology of message middleware and distributed transaction, which is applied in the field of distributed transaction processing to achieve the effect of reducing development cost and ensuring consistency

Active Publication Date: 2019-06-25
武汉慧联无限科技有限公司
View PDF11 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] An object of the present invention is to provide a distributed transaction processing method based on distributed message middleware, integrate the advantages of the XA scheme and the TCC scheme, and combine the efficient and reliable characteristics of the message middleware to solve the problem of transaction consistency in multiple scenarios

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
  • A distributed transaction processing method based on distributed message middleware
  • A distributed transaction processing method based on distributed message middleware

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

[0026] It should be noted that the experimental methods described in the following embodiments, unless otherwise specified, are conventional methods, and the reagents and materials, if not otherwise specified, can be obtained from commercial sources; in the description of the present invention, The terms "landscape", "portrait", "top", "bottom", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", The orientation or positional relationship indicated by "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the referred device or element must have Certain orientations, co...

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 discloses a distributed transaction processing method based on distributed message middleware, and the method comprises the following steps: 1, a business module is started, a business processing scheme is judged to be XA or TCC through the business module, a transaction ID is generated through a judgment result, and registered in a transaction tree and the message middleware; Step 2, the service module executes the service code, informs a transaction module of an execution result, correspondingly records the execution result into a transaction tree according to the transaction ID, and synchronously informs the message middleware; And step 3, the message middleware pushes a plurality of transaction execution results to an asynchronous message module, and the asynchronous message module inquires each node execution result in the transaction tree, compares whether the execution results are consistent with the execution results pushed by the message middleware, and judges whether submitting or rollback is needed. According to the method, the advantages of the XA scheme and the TCC scheme are fused, and the efficient and reliable characteristics of the message middlewareare combined, so that the problem of transaction consistency in multiple scenes is solved.

Description

technical field [0001] The present invention relates to the field of computer technology. More specifically, the present invention relates to a distributed transaction processing method based on distributed message middleware. Background technique [0002] At present, many systems in the fields of cloud computing, big data, and the Internet adopt a distributed architecture. Business operations involving the entire link are often completed by multiple services and database instances. Therefore, in business scenarios with high consistency requirements, distributed transactions become the key point. There are currently three mainstream distributed transaction solutions, XA scheme, compensation scheme (TCC scheme) and message consistency scheme. [0003] The XA solution is mainly used to solve the transaction problem of the distributed transaction library. This solution has a standardized interface, has a low threshold for use, and can achieve strong data consistency. Howeve...

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/54
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