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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com