Unlock instant, AI-driven research and patent intelligence for your innovation.

Transaction control method, system, device and storage medium for data consistency

A control method and consistency technology, applied in database distribution/replication, redundancy in operation, data error detection, transaction processing, etc. The effect of protecting data consistency and reducing acquisition costs

Active Publication Date: 2022-07-26
江苏运满满信息科技有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The first solution has the disadvantages of high learning cost, high use cost, and complicated configuration due to the need to manually configure the state diagram.
The second solution has the inability to statically perceive the entire process of the saga transaction, and cannot rely on the entire process of the transaction to achieve forward recovery operations; there are also problems such as that the method corresponding to the saga branch transaction is upgraded, and historical data cannot be restored.

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
  • Transaction control method, system, device and storage medium for data consistency
  • Transaction control method, system, device and storage medium for data consistency
  • Transaction control method, system, device and storage medium for data consistency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repeated descriptions will be omitted.

[0060] like figure 1 As shown, the embodiment of the present invention discloses a transaction control method for data consistency, which is used to realize the data consistency of distributed system applications, and the method includes the following steps:

[0061] S10, generating a bytecode file of a distributed system application. Specifically, before the distributed system application is started and executed, a JVM (J...

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 present invention provides a transaction control method, system, device and storage medium for data consistency. The method includes the steps of: generating a bytecode file for distributed system applications; scanning the bytecode file to obtain a master file Transaction annotation and branch transaction annotation; based on the main transaction annotation and the branch transaction annotation, generate a global transaction flow chart; execute the distributed system application to generate a saga transaction log; based on the asynchronous thread, scan the saga transaction log, Obtain the failure log node; match the failure log node in the global transaction flow chart to obtain the recovery strategy contained in the branch transaction annotation corresponding to the failure log node; based on the recovery strategy, the failure log node and the global transaction flow chart to restore the distributed system application; the present application implements data consistency protection for complex distributed system applications.

Description

technical field [0001] The invention relates to the technical field of data consistency protection under distributed systems, in particular to a data consistency transaction control method, system, device and storage medium. Background technique [0002] For distributed systems, many data consistency issues can arise. For example, (1) it is necessary to realize the deduction of system A and the addition of system B at the same time; but in fact, there is no data consistency problem caused by the successful execution of systems A and B at the same time; (2) if the intermediate steps fail in a long-process business, But the whole process cannot be recovered. [0003] In a distributed system, any operation on data may involve multiple systems, such as cache database Redis, distributed database Hbase, message queue, etc. Traditional transaction control methods cannot provide data consistency protection in complex distributed systems. In addition, the traditional transaction c...

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 Patents(China)
IPC IPC(8): G06F9/46G06F11/14G06F16/23G06F16/27
CPCG06F9/466G06F16/27G06F16/2308G06F16/2365G06F11/1471
Inventor 王树鹏高杨
Owner 江苏运满满信息科技有限公司