Distributed transaction processing method and system based on message queue

A distributed transaction and message queue technology, applied in the distributed transaction processing method and system field based on message queue, can solve the problem of data consistency, do not support relational database, increase the complexity of business system development, etc. Achieve the effect of simplifying the development process and ensuring data consistency

Inactive Publication Date: 2020-05-15
易票联支付有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, traditional MQ does not support transactions based on relational databases, which leads to consistency problems between MQ and business system data, and also increases the complexity of business system development

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 system based on message queue
  • Distributed transaction processing method and system based on message queue
  • Distributed transaction processing method and system based on message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0060] In the description of the present invention, several means one or more, and multiple means more than two, and greater than, less than, exceeding, etc. are understood as not including the original number. If the description of the first, second, third, etc. is only for the purpose of distinguishing the technical features, it cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the indicated The sequence of technical features. ...

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 and system based on a message queue. The method comprises the steps: numbering sent messages in sequence; writing the sent messagesand the sequence number thereof into a sending log; sending the messages to a server, enabling the server to obtain the sequence number of the messages and compare the sequence number with a sequencenumber stored in a first database, determining the missing starting sequence number and ending sequence number when the two sequence numbers are not continuous, and sending the messages to a message queue when the two sequence numbers are continuous; acquiring missing data from the sending log according to the starting sequence number and the ending sequence number, and sending the missing data tothe server. According to the invention, the sending log and the sequence number stored in the first database which is a non-relational database are utilized to ensure that the message is successfullysent, so the data consistency of the message queue and the service system is ensured, and the development process of the service system is also simplified. The method can be widely applied to the technical field of computers.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a message queue-based distributed transaction processing method and system. Background technique [0002] With the continuous development of the Internet and computer technology, distributed systems are widely used due to their high scalability, high availability, high reliability and high efficiency. With the increasing complexity of IT (Information Technology, information technology) systems, in order to solve the performance and data problems of distributed systems, it is more and more important to build business systems through event sources. MQ (messagequeue, message queue) has The advantages of decoupling and asynchrony are also used on a large scale in event sources. [0003] However, traditional MQ does not support transactions based on relational databases, which leads to consistency problems between MQ and business system data, and also increases the complexity of bu...

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