Distributed transaction processing method

A distributed transaction and transaction processing technology, applied in the field of distributed transaction processing, can solve the problems of transaction inconsistency and large business volume of the saas platform, and achieve the effect of fast processing speed, ensuring consistency, and ensuring transaction processing.

Active Publication Date: 2017-06-20
博笃善道网络科技有限责任公司
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the large business volume of the saas platform, the underlying services need to be deployed on multiple servers separately, but since multiple servers do not communicate with each other, transaction inconsistency problems will arise

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
  • Distributed transaction processing method
  • Distributed transaction processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 The shown distributed transaction processing system includes several transaction processing nodes and message queues 130, only the transaction processing node 110 and the transaction processing node 120 are shown in the figure, and the functions of the system are described in detail by taking both as examples. Wherein, the transaction processing node 110 is configured with an application server 111 , a database 112 and a transaction processing server 113 , and the transaction processing node 120 is configured with a transaction receiver 121 , a local database 122 and a transaction processing server 113 . Configurations of the remaining transaction processing nodes are the same as those of the transaction processing node 120, so details are not repeated here.

[0034] After receiving the transaction start request, the application server 111 in the transaction processing node 110 divides the transaction corresponding to the transaction start request into several ...

Embodiment 2

[0044] A kind of distributed transaction processing system based on embodiment 1, its difference with embodiment 1 is: after the transaction processing server 213 in the transaction processing node 210 successfully executes the corresponding sub-transaction, it sends a confirmation message to the message queue 230; After receiving the confirmation message, the message queue 230 pushes the sub-transaction to the transaction processing node 220 . When the transaction processing server 213 fails to execute the corresponding sub-transaction, it sends a cancel message to the message queue 230; after the message queue receives the cancel message 230, it does not push the sub-transaction to the transaction processing node 220.

[0045] In addition, in order to prevent the transaction processing server 213 from sending confirmation messages or cancellation messages to the message queue 230 normally, causing the message queue 230 to suspend sub-transactions for a long time, the system a...

Embodiment 3

[0047] A kind of distributed transaction processing system based on embodiment 1 or embodiment 2, its difference with embodiment 1 is: in this system, transaction processing node 320 adds transaction state table 324, and this transaction state table 324 is configured to use To store the processing record of each sub-transaction; Specifically, after the transaction processing server 323 in the transaction processing node 320 has processed the corresponding sub-transaction, write the sub-transaction into the transaction state table 324, thereby in the transaction state table 324 Generate corresponding history records in . In this way, when the transaction receiving server 321 receives a subtransaction from the message queue 330, it will query the transaction status table 324, and if the same subtransaction already exists, then the received subtransaction will not be written into the local database (but also sent to the message Queue 330 returns a success identifier); if it does ...

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. The distributed transaction processing method comprises the following steps: receiving a transaction starting request by one transaction processing node in a plurality of transaction processing nodes, and dividing a transaction corresponding to the transaction starting request into a plurality of secondary transactions; executing one predetermined secondary transaction by one transaction processing node and writing the other secondary transactions into a local database; issuing the secondary transactions in the local database to a message queue; pushing the secondary transactions to the other transaction processing nodes by the message queue, so as to write the corresponding secondary transactions into the local database of the other transaction processing nodes; after receiving a success identifier from the other transaction processing nodes, deleting the corresponding secondary transactions from the queue; obtaining the other transaction processing nodes from respective local databases and executing the corresponding secondary transactions; and after executing, deleting the corresponding secondary transactions from the local databases. By adopting the distributed transaction processing method, the transactions can be rapidly processed and the consistency of the transactions can be guaranteed.

Description

technical field [0001] The present invention relates to data processing technology, more particularly, it relates to distributed transaction processing method. Background technique [0002] The SaaS platform is a platform for operating SaaS software. The SaaS provider builds all the network infrastructure, software and hardware operation platforms required for informatization for enterprises, and is responsible for all the early implementation and later maintenance and other services. Enterprises do not need to purchase software and hardware, build computer rooms, and recruit IT personnel. The information system can be used through the Internet. SaaS is a software layout model whose application is designed for network delivery, which is convenient for users to host, deploy and access through the Internet. [0003] In view of the large business volume of the saas platform, the underlying services need to be deployed on multiple servers separately, but since multiple servers...

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