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

A highly consistent microservice architecture and its data update method

A data update and micro-service technology, applied in structured data retrieval, database design/maintenance, and special data processing applications, etc., can solve problems such as data errors, high development costs, and slow business service responses, reducing submission events and Save data time, reduce communication pressure, reduce communication time effect

Active Publication Date: 2022-04-29
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention solves the problem that in the prior art, in the process of operating a piece of data, each microservice may generate data errors during processing, and the cost of rollback is very huge, which in turn leads to software errors and causes heavy losses. At the same time, the existing The solution generated at least two additional network communication overheads, the separate query interface makes the development cost huge, the business service response is slow when the network is congested, and the problem that the microservice communication pressure is concentrated in the event service provides an optimized high-speed Consistent Microservice Architecture and Its Data Update Method

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
  • A highly consistent microservice architecture and its data update method
  • A highly consistent microservice architecture and its data update method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in further detail below in conjunction with the examples, but the protection scope of the present invention is not limited thereto.

[0027] The invention relates to a method for updating data of a highly consistent microservice architecture, and the method includes the following steps.

[0028] Step 1: Receive any data modification business; trigger any business module S i ,in, i from 1 to n an integer of .

[0029] Step 2: S i Take out the existing data for calculation, modify the data, and send the calculation result and the next business module S j Notify the data service module, where, j from 1 to n an integer of , and i≠j .

[0030] In the present invention, after each modification of the business module, the cache will be updated and the latest data of this business will be saved, so the existing data refers to the data taken out from the cache.

[0031] In the present invention, each business module is independ...

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 relates to a high-consistency micro-service architecture and its data update method. The business module is only responsible for the processing of the business, only performs query and calculation, and submits the calculated results to the data service module, and the business module completes this Business, when the last business module is reached, if the calculation is successful, the current business module will notify the data service module that this is the last step in the business chain, and the data service module will write all the data in the business association in batches , controlled in the same transaction, which ensures the accuracy of data writing; if an error occurs in a business in the business association and the data needs to be rolled back, the data service module is notified to abandon the write queue of the business association, and There is no need to notify upstream services to rollback. The invention reduces the pressure of database writing and communication between microservices, reduces the time for submitting events and saving data, and avoids the situation of incomplete rollback of business data.

Description

technical field [0001] The invention relates to the technical field of data exchange networks, in particular to a highly consistent microservice architecture and a data update method thereof. Background technique [0002] When large-scale software is developed using the traditional monolithic architecture application, with the continuous increase of new requirements, software update and maintenance become more and more complicated and uncontrollable, and it is impossible to realize the rapid update and iteration mode of Internet development. On this basis, the microservice software architecture came into being. [0003] Microservice is an architectural style that generally refers to a small business processing module in a large software application. The microservice software architecture refers to the splitting of different businesses into different microservices during software design, and the communication and interaction data between each microservice is carried out usin...

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): G06F8/20G06F8/65G06F16/21
CPCG06F8/20G06F8/65G06F16/21
Inventor 王景熠范渊
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD
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