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

Null rollback control method and device, computer equipment and storage medium

A control method and idling technology, which are applied in the directions of calculation, generation of response errors, and error detection of redundant data in operations, which can solve the problems of fixed number of idling loops and difficult business scenarios.

Pending Publication Date: 2022-03-18
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the current empty rollback control method has a relatively fixed limit on the number of empty rollback cycles, and it is difficult to adapt well to different business scenarios

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
  • Null rollback control method and device, computer equipment and storage medium
  • Null rollback control method and device, computer equipment and storage medium
  • Null rollback control method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] see figure 1 , figure 1 It is a schematic flowchart of an empty rollback control method disclosed in an embodiment of the present invention. Such as figure 1 As shown, the control method of the empty rollback may include the following operations:

[0037] 101. Detect whether an empty rollback request of a target module is received, where the target module refers to a business module in a predetermined microservice software architecture.

[0038] In the above step 101, multiple business modules are usually set in the entire microservice software architecture, and different business modules are used to implement different business processes. For example, the create order business module is used to implement the business process of creating an order. When an exception occurs in the business process of creating an order, the create order business module can trigger an empty rollback request, and the payment business module is used to implement the business process of pay...

Embodiment 2

[0088] see figure 2 , figure 2 It is a schematic structural diagram of an empty rollback control device disclosed in an embodiment of the present invention. Such as figure 2 As shown, the controls for the empty rollback can include:

[0089] A detection module 201, configured to detect whether an empty rollback request of a target module is received, wherein the target module refers to a business module in a predetermined microservice software architecture;

[0090] An acquisition module 202, configured to acquire a target empty rollback threshold corresponding to the target module from a preset empty rollback threshold set when the empty rollback request is detected;

[0091] An execution module 203, configured to execute the empty rollback operation of the target module, and detect whether the empty rollback operation of the target module is executed successfully;

[0092] A stop module 204, configured to stop the execution of the empty rollback operation of the targe...

Embodiment 3

[0096] see image 3 , image 3 It is a structural schematic diagram of a computer device disclosed in an embodiment of the present invention. Such as image 3 As shown, the computer equipment may include:

[0097] A memory 301 storing executable program codes;

[0098] A processor 302 connected to the memory 301;

[0099] The processor 302 invokes the executable program code stored in the memory 301 to execute the steps in the method for controlling empty rollback disclosed in Embodiment 1 of the present invention.

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 the technical field of computer business process optimization, and discloses a null rollback control method, which comprises the following steps: detecting whether a null rollback request of a target module is received or not; when the null rollback request is detected, obtaining a target null rollback threshold value corresponding to the target module; executing a null rollback operation of the target module, and detecting whether the null rollback operation is successfully executed; when the null rollback operation is executed successfully, stopping the execution of the null rollback operation; when the null rollback operation is not successfully executed, recording the number of times of the null rollback operation which is tried to be executed, and judging whether the number of times is greater than a target null rollback threshold value or not; when it is judged that the number of times is larger than the target null rollback threshold value, execution of the null rollback operation is stopped; and when judging that the number of times is not greater than the target null rollback threshold, continuing to execute the null rollback operation. Therefore, different null rollback cycle times can be set for different target modules, so that the null rollback operation can flexibly adapt to different application scenes.

Description

technical field [0001] The present invention relates to the technical field of computer business process optimization, in particular to a control method, device, computer equipment and storage medium for empty rollback. Background technique [0002] At present, the microservice software architecture has been widely used in the computer field. Nowadays, the commonly used microservice software architectures include atomikos, tcc-transaction, ByteTcc, Alipay GTS, etc., and empty rollback mechanisms are set in these frameworks. Specifically, the empty rollback mechanism is a mechanism for dealing with errors in business processes. When an error occurs in the business process and the business process cannot be completed smoothly, the business process is usually partly in progress, and part of the data in the system has been deleted. Modification, by performing an empty rollback operation, the data in the system can be restored to a state where the business process has not yet bee...

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): G06F11/14
CPCG06F11/1446
Inventor 刘继武
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN