Unlock instant, AI-driven research and patent intelligence for your innovation.

Implementation method for unified management of configuration files under micro-service architecture

A technology of configuration files and implementation methods, applied in the field of digital information, can solve problems such as loss of configuration files, high error rate, and low maintenance efficiency

Inactive Publication Date: 2020-03-27
BEIJING CHINA POWER INFORMATION TECH +2
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Generally, an application will have more than a dozen or even dozens of microservices, and each microservice will have a configuration file. In this way, each configuration file is scattered among dozens of microservices. It is difficult to achieve fast and dynamic adjustments, and maintenance will occur. Complicated, low maintenance efficiency, high error rate, thus losing the meaning of the configuration file

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
  • Implementation method for unified management of configuration files under micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] combine figure 1 As shown, a method for realizing unified management of configuration files under the microservice architecture provided by the present invention is specifically implemented as follows.

[0020] A method for implementing unified management of configuration files under a microservice architecture. The specific steps include:

[0021] Step A. The user uploads the configuration file to the configuration center server through the portal interface. The name of the configuration file has a specific format, microservice name + environment type, or microservice name + development type, microservice name + test type, microservice name + production type.

[0022] Step B. Load the file when the microservice starts. The way the microservice loads the configuration file is to obtain it by calling the REST API provided by the configuration center. If the configuration center is deployed in a cluster, the microservice needs to go through a load balancer when accessin...

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 an implementation method for unified management of configuration files under a micro-service architecture, relates to the technical field of digital information, the method comprises steps of uploading the configuration file to a configuration center server through a portal interface; loading a file when the micro-service is started; wherein the micro-service loading configuration file is obtained by calling the REST API provided by the configuration center. The configuration file can be stored through version management tools such as git and svn, a user modifies the configuration file through a portal interface, the updated configuration file is uploaded to a configuration center, and the configuration center senses the change of the configuration file and informs amessage queue that the configuration file is changed; and the message queue notifies each micro-service of the configuration update message, and the micro-service pulls the updated configuration filefrom the configuration center again after obtaining the notification and assigns a value to the variable in the system again, thereby realizing quick maintenance of the configuration file and real-time refreshing of the configuration file.

Description

technical field [0001] The invention relates to the field of digital information technology, in particular to a method for realizing unified management of configuration files under a microservice architecture. Background technique [0002] There are one or more configuration files in the monolithic architecture system. These configuration files are stored together with the application and pushed to the server along with the application during deployment. After the configuration file is modified, the application needs to be restarted to ensure it takes effect. This approach is common practice in monolithic architecture systems. However, in a distributed architecture system, a single application will be decomposed into multiple microservices, which will be deployed on multiple servers or clusters during deployment. Generally, an application will have more than a dozen or even dozens of microservices, and each microservice will have a configuration file. In this way, each conf...

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): H04L12/24H04L29/08
CPCH04L41/0803H04L41/082H04L41/085H04L67/06H04L67/34
Inventor 田涛吴嘉生郭立福
Owner BEIJING CHINA POWER INFORMATION TECH