Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data consistency method and device for multi-transaction system

A consistency and transaction technology, which is applied in the direction of multi-program device, transaction processing, database update, etc., to achieve the effect of ensuring data consistency

Pending Publication Date: 2021-02-09
食亨(上海)科技服务有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The present invention proposes a solution to the data consistency problem in SaaS under microservice deployment

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
  • Data consistency method and device for multi-transaction system
  • Data consistency method and device for multi-transaction system
  • Data consistency method and device for multi-transaction system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] figure 1 A flow chart of a data consistency method for a multi-transaction system according to an embodiment of the present invention is disclosed, and the embodiment is used in a synchronization mode. refer to figure 1 As shown, the data consistency method of the multi-transaction system is used to realize data consistency in a synchronous mode among multiple transaction modules, including the following steps:

[0044] The first transaction module initiates the process, creates a corresponding global transaction on the consistency platform, and executes the local transaction.

[0045] After the first transaction module executes the local transaction, it calls the next transaction module, and reports the executed data of the local transaction to the consistency platform, and the consistency platform updates the data of the corresponding global transaction.

[0046] Each transaction module executes the local transaction in turn, calls the next transaction module, and r...

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 provides a data consistency method of a multi-transaction system, which comprises the following steps that: for a synchronization mode, each transaction module sequentially executes a local transaction, calls a next transaction module and reports the data after the execution of the local transaction to a consistency platform, and the consistency platform updates the data of a corresponding global transaction; and if any transaction module fails to execute the local transaction, the consistency platform is notified to cancel the corresponding global transaction and each previous transaction module of the global transaction is notified to synchronously cancel the corresponding local transaction. For an asynchronous mode, the transaction module sends a confirmation message to the consistency platform and executes a local transaction, the consistency platform sends a message to the message queue, the consistency platform monitors the state of the message queue, and if the message queue fails, the message queue is adjusted or the message is sent in a retry mode. The invention further provides a data consistency device of the multi-transaction system, and the invention is suitable for a synchronous mode or an asynchronous mode.

Description

technical field [0001] The present invention relates to the technical field of software, and more specifically, to the technical field of SaaS deployed in a microservice manner. Background technique [0002] Software as a Service (Software as a Service, SaaS) is becoming a new development direction of the software industry, especially in mobile applications, SaaS has been widely used. In online local life services, SaaS is becoming the mainstream configuration. For example, in the food delivery business scenario, SaaS deployed in the form of microservices is often used. For local life scenarios such as food delivery business, a business process involves multiple transactions, such as placing an order, locking inventory, locking coupons, generating orders, calling delivery, initiating payment, printing documents, etc. These transactions are completed by independent transaction modules. Each transaction module works simultaneously or sequentially according to a certain busin...

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
IPC IPC(8): G06F9/46G06F16/23G06F16/2457
CPCG06F9/466G06F16/2365G06F16/24578
Inventor 王泰舟
Owner 食亨(上海)科技服务有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More