当前位置:网站首页>Config distributed configuration center

Config distributed configuration center

2022-07-07 06:57:00 RB_ VER

summary

Microservice means to split the business in a single application into a sub service , The granularity of each service is relatively small , So there will be a lot of services in the system . Because each service needs the necessary configuration information to run , So a centralized 、 Dynamic configuration management facilities are essential .

spring cloud config Provide centralized external configuration support for microservices in microservice architecture , Configuration server provides a centralized external configuration for all environments of different microservice applications .

 Insert picture description here
spring cloud config It is divided into two parts: server and client .
The server is also called the distributed configuration center , It's a stand-alone microservice application , It is used to connect to the configuration server and provide the client with configuration information , encryption / Decrypt information and other access interfaces .
The client manages the application resources through the specified configuration center , And business related configuration content , And get and load the configuration information from the configuration center at startup , The configuration server uses git To store configuration information , This helps with version management of the environment configuration , And through git Client tools to facilitate the management and access of configuration content .

config function :

  • Manage profiles centrally
  • Different environments, different configurations , Dynamic configuration updates , Deploy in different environments, such as dev/test/prod/beta/release.
  • Dynamically adjust the configuration during runtime , There is no longer the need to write configuration files on each machine where services are deployed , The service will pull the configuration information from the configuration center .
  • When the configuration changes , The service does not need to be restarted to sense the change in configuration and apply the new configuration .
  • Set the configuration information to REST Interface mode exposure .
原网站

版权声明
本文为[RB_ VER]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070240153709.html