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

Method for guaranteeing data final consistency through system based on micro-service framework

A micro-service and consistency technology, applied in the field of micro-service development, can solve problems such as poor system scalability, storage components do not support the XA protocol, and large impact on database performance, achieving a universal effect

Inactive Publication Date: 2018-03-30
G CLOUD TECH
View PDF1 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the case of high concurrency and involving many business modules, it will have a greater impact on the performance of the database;
[0011] 2. The second stage is an anti-scalability mode. The larger the business scale, the more modules are involved, the greater the limitations, and the worse the scalability of the system;
[0012] 3. In distributed applications with complex technologies, many storage components do not support the XA protocol

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
  • Method for guaranteeing data final consistency through system based on micro-service framework
  • Method for guaranteeing data final consistency through system based on micro-service framework
  • Method for guaranteeing data final consistency through system based on micro-service framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] See shown in 1, basic flow process of the present invention is:

[0047] Step 1: The upstream application sends a message to be confirmed to the reliable message system, if the reliable message system receives the message, go to step 2, otherwise go to step 6;

[0048] Step 2: The reliable message system saves the message to be confirmed and returns it. If the upstream application receives the confirmation message, go to step 3; otherwise, go to step 6;

[0049] Step 3: The upstream application executes the local business. If the execution is successful, proceed to step 4; otherwise, roll back the local transaction and proceed to step 6;

[0050] Step 4: The upstream application notifies the reliable message system to confirm that the business has been executed and sends a message. If the reliable message system receives the message, perform step 5. Otherwise, the reliable message system queries the upstream application for the status of the confirmation message. If the...

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 micro-service development, in particular to a method for guaranteeing the data final consistency through a system based on a micro-service framework. Through the combination of a method using a message queue and the determination and retransmission mechanism of messages, final consistency can be achieved after automatic or manual compensation; modules related to the final data consistency include an upstream application for executing service and sending MQ messages, a reliable message service and message assembly for coordinating with the transmission of downstream messages and ensuring the consistency of upstream data and downstream data, and a downstream application for monitoring the MQ messages and executing service. The problems that traditional two-stage protocol submitting performance is poor and a processing chain is long are solved.

Description

technical field [0001] The present invention relates to the technical field of microservice development, in particular to a method for ensuring the final consistency of data in a system based on microservice architecture. Background technique [0002] With the promotion of microservice architecture, more and more enterprises adopt microservice architecture to build their own business platforms. While the microservice architecture brings many benefits to business development, such as single responsibility, independent development and deployment, function reuse and system fault tolerance, etc.; The dependencies among them are more complex; thus making it difficult to guarantee data consistency. At present, under the microservice architecture, the two-phase commit protocol is generally used to ensure the strong consistency of data. The two-phase commit protocol is a distributed transaction model. This model mainly uses two-phase commit to ensure the integrity of distributed tr...

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/54G06F17/30
CPCG06F9/542G06F9/546G06F16/2365
Inventor 莫展鹏季统凯
Owner G CLOUD TECH
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