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

CN110928532AActive Publication Date: 2020-03-27HANGZHOU ANHENG INFORMATION TECH CO LTD
6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2020-03-27

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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...

Examples

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...