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

Distributed type transaction management method and system

A technology of distributed transactions and management methods, applied in the field of distributed management and distributed management systems, can solve problems such as the inability to establish associations between global transactions and sub-transactions, affect the efficiency of transaction processing, and single processing methods, and achieve simple maintenance ideas , Reduce human operations, improve the effect of data correctness and reliability

Active Publication Date: 2017-03-15
广州快塑电子科技有限公司
View PDF4 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, due to the complexity of transactions in a distributed transaction system, there may be many situations
The existing technology only regards the failure to establish a relationship between the global transaction and the sub-transaction as an abnormal situation, and the processing method is single, and the rollback operation is performed directly
In this way, it is impossible to make the most reasonable processing for specific transactions, which affects the efficiency of transaction processing

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 type transaction management method and system
  • Distributed type transaction management method and system
  • Distributed type transaction management method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to solve the defect in the prior art that there is a single method for handling abnormal situations, the present invention provides a distributed transaction management method and system, which will be specifically described through the following embodiments.

[0043] see figure 1 , which is a flowchart of the steps of the distributed transaction management method of the present invention. The invention provides a distributed transaction management method, comprising the following steps:

[0044] S1: Define a global transaction, and define other transactions called in the global transaction as subtransactions.

[0045] S2: Establish a global transaction table to record the status of the global transaction and sub-transactions; when calling the global transaction, record in the global transaction table; when calling the sub-transaction in the global transaction, generate in the global transaction table subtransaction records.

[0046] Specifically, in this st...

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 relates to a distributed type transaction management method which comprises the following steps: defining an overall transaction and defining other transactions called in the overall transaction as sub-transactions; establishing an overall transaction table used for recording the states of the overall transaction and the sub-transactions; when calling the overall transaction, recording in the overall transaction table; when calling the sub-transactions in the overall transaction, generating the sub-transaction records in the overall transaction table; defining an overall transaction manager used for scanning the overall transaction table and making judgement; if the state of the overall transaction is failed and a successful sub-transaction process exists under the overall transaction, rolling back the successful sub-transaction; if the state of the overall transaction is successful and a failed sub-transaction process exists under the overall transaction, calling for the sub-transaction again; and if the state of the overall transaction is unknown, rolling back the successful sub-transactions. Meanwhile, the invention also provides a distributed type transaction management system for realizing the method.

Description

technical field [0001] The invention relates to the computer field, in particular to a distributed management method; the invention also relates to a distributed management system for realizing the method. Background technique [0002] In today's popular distributed systems and microservice architecture systems, a request is usually not completed by a single method in a service, but a function is completed by multiple systems, multiple services, and multiple databases. [0003] Such a request involves interface calls between multiple sub-service systems, and different database operations in different services are in different transactions. If all processes are completed normally and correctly, there will be no exceptions, but if a certain subsystem sub-service throws an exception when an error occurs, how to deal with the services that have been completed before and the services that have not yet been performed, and how to ensure that there is no exception When the service ...

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): G06F17/30
CPCG06F16/122
Inventor 王在祥唐流刘育弘郭坚晖
Owner 广州快塑电子科技有限公司
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