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

Distributed transaction processing method

A distributed transaction and processing method technology, applied in the field of distributed transaction processing, can solve problems such as increased locking time of related resources, increased critical resource access conflicts, affecting system throughput and scalability, etc., to reduce requirements and reduce costs , the effect of improving execution efficiency

Inactive Publication Date: 2017-02-08
INSPUR SOFTWARE CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the transaction duration increases, the transaction's locking time on related resources also increases accordingly, thereby increasing access conflicts to critical resources, which in turn affects system throughput and scalability

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The content of the present invention is described in more detail below:

[0017] The distributed transaction processing method of the present invention specifically includes:

[0018] Step 1: Split the distributed transaction into multiple sub-transactions so that the sub-transactions have local transaction characteristics

[0019] Step 2: Execute the first sub-transaction and send the second sub-transaction to the message middleware, and an independent message processing unit executes the transaction operation to ensure that the first sub-transaction is a local transaction.

[0020] Step 3: The message middleware pushes the message to other nodes to trigger other nodes to execute local transactions.

[0021] Step 4: Receive the message and execute the local transaction. Before executing the local transaction, write the message into the local message application state table, and then execute the local transaction. If the execution is successful, notify the message midd...

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 belongs to the technical field of transaction processing. The method comprises the following steps of: splitting a distributed transaction into a plurality of sub-transactions; ensuring that the first sub-transaction is a local transaction; before the second sub-transaction is executed, publishing a message to message-oriented middleware; pushing the message to another node which participates in the transaction by the message-oriented middleware to ensure that the node executes the local transaction; and if the node fails to execute the local transaction, sending a message for executing the local transaction by the message-oriented middleware until the node successfully execute the local transaction, so as to achieve the final consistence of the data. In order to eliminate repeated messages, a message application state table is locally created to record the message execution condition, so that repeated execution is avoided and the idempotence of the operation is ensured.

Description

technical field [0001] The invention relates to the technical field of transaction processing, in particular to a distributed transaction processing method. Background technique [0002] When implementing business system development based on the distributed service framework, one is to merge business functions to avoid using distributed transactions, and the other is to use two-stage commit. Merge business functions to avoid distributed transactions, resulting in enhanced coupling between business modules, which is not easy to expand and maintain, while the use of two-stage commit requires the database to support distributed transactions, and the ACID characteristics of the database will damage the availability, performance and scalability of the system sex at the price. Only when each database instance participating in the distributed transaction operates successfully, the distributed transaction can succeed. As long as one database instance fails to operate, the entire tr...

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/46G06F17/30
CPCG06F9/466G06F16/27
Inventor 玄德
Owner INSPUR SOFTWARE CO LTD
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