Distributed transaction processing method based on Saga mode

A technology of distributed transactions and processing methods, applied in the field of distributed transaction processing, can solve problems such as troublesome application processes, and achieve the effects of high flexibility, high performance, and high throughput

Inactive Publication Date: 2020-05-29
江苏艾佳家居用品有限公司
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The applicable scenarios of each scheme are different, and the application process is more troublesome

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 based on Saga mode
  • Distributed transaction processing method based on Saga mode
  • Distributed transaction processing method based on Saga mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0025] The present invention has designed a kind of distributed transaction processing method based on Saga mode, such as figure 1 As shown, the terminal combines the local database, the local event queue, and the engine server, and the terminal executes the following steps A to G based on its state machine engine to implement scheduling processing for the target business.

[0026] Step A. Load the target business on the terminal, analyze the target business, and convert the parsed target business into a corresponding Json file through the dsl state definition language for storage, and then enter step B.

[0027] Step B. Based on its state machine engine, the terminal sends an opening transaction command corresponding to the target business to the engine server for the Json file corresponding to the target business, and ...

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 transaction processing method based on a Saga mode. The method is based on a lock-free Saga mode. Compensation operation is carried out on the affairs through aself-defined compensation process; consequently, final consistency is achieved, wherein a state machine engine and a simple dsl state definition language are designed, custom business process arrangement and business circulation state recording are realized, the state machine engine can customize compensation service, and when an exception occurs, the state machine engine calls the compensation service to perform rollback or retry operation, so that data consistency is ensured. In application, the method is high in performance, submitted to a local database in one stage and free of a global lock; high throughput is achieved, and transaction participants drive asynchronous execution based on events; the method has high flexibility, based on a state machine engine and a simple state definition language, the service orchestration capability can be provided, and the compensation service can be used for roll-back or retry.

Description

technical field [0001] The invention relates to a distributed transaction processing method based on a Saga mode, and belongs to the technical field of distributed transaction data consistency under a microservice architecture. Background technique [0002] The current microservice architecture has been widely used in the industry, advocating the abstraction of complex single applications into several simple-function, low-coupling services, which can reduce development difficulty, enhance scalability, and facilitate agile development, but at the same time It also brought many difficulties. For example, the inter-system communication and fault handling measures are more complicated, the test deployment monitoring is more difficult, and the distributed transaction problem of service calls is more prominent. For so many problems, the industry has also proposed many solutions, such as: two Phase submission, TCC scheme, eventual consistency scheme based on message middleware, et...

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/46G06F8/30
CPCG06F8/31G06F9/466
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