Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

High-consistency micro-service architecture and data updating method thereof

A data update and micro-service technology, applied in structured data retrieval, special data processing applications, database design/maintenance, etc., can solve the problems of slow response of business services, high development costs, data errors, etc., to reduce communication time, Avoid rolling back incomplete effects

Active Publication Date: 2020-03-27
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
  • High-consistency micro-service architecture and data updating method thereof
  • High-consistency micro-service architecture and data updating method thereof

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 invention relates to a high-consistency micro-service architecture and a data updating method thereof. The service module is only responsible for processing the service; query-only and computation, submitting a calculated result to a data service module; the service module completes the service; when the last service module is reached, if the calculation is successful, the current service module informs the data service module of the last step in the service chain during writing, and the data service module writes all data in the service chain in batches and controls the data to be writtenin the same transaction, so that the data writing accuracy is ensured; and if a certain service in the service link has an error, the data needs to be rolled back, the data service module is notifiedto give up the write-in queue of the service link, and an upstream service does not need to be notified to roll back. According to the invention, the writing pressure of the database and the pressureof communication between micro-services are reduced, the time for submitting events and storing data is reduced, and the situation of incomplete rollback of service data is avoided.

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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products