Center distributed configuration options

Demand description
project profiles more complicated, and different configuration changes relatively frequently in different environments, each release will need to modify the corresponding configuration, if a configuration error, need to re-packaged and released, the higher cost of time, and therefore need to unify distributed registry, can do automatically update profile information, to solve the above problems.

Configuration Center characteristics
registry to store configuration data model timeliness of maintenance Advantages Disadvantages
disconf zookpeer real-time push to support the traditional profile mode, also supports KV structured data to provide real-time interface operation to push stability, effectiveness based on the distributed Zookeeper, easy to use the resistance are superior to many other source, to read and to use relatively complicated
zookpeer zookpeer real-time push to support the traditional profile mode also supports several operating real-time push KV command structure stability, effectiveness, develop large
diamond mysql every 15s pull a full amount of data that supports only simple data structure that provides an interface operating KV, reliable, easy to use data model does not support file, inconvenient to use
Spring Cloud Config git manual refresh simple batch file mode git to operate, reliable, easy to rely on gIT, and update GIT
select analysis
preferred to disconf, storage, and support for KV configuration files are stored, easier to use and develop. And distributed configuration itself is zookpeer Center to develop, deploy easy to use, and supports real-time update notification operation, but relatively complex deployment based.
diamond basically give up, usually do KV storage configuration items and do the configuration file is not a good choice.
Spring Cloud Config dependent because Git, the limitations of using large, to be installed in various environments Git, and does not support KV storage function slightly worse than disconf.
Preliminary recommendation disconf
official website address: http: //disconf.readthedocs.io/zh_CN/latest/
Open Source address: https: //github.com/knightliao/disconf
部署方法:http://disconf.readthedocs.io/zh_CN/latest/install/src/02.html
SpringBoot的demo:https://github.com/knightliao/disconf-demos-java/tree/master/disconf-spring-boot-demo

Disconf is Baidu out of the open source configuration management software is based on a distributed Zookeeper's. At present, many companies are using, including drops, Baidu, Netease, SF and other companies. Operation through a simple interface can dynamically modify the configuration attributes, it is very convenient. One big advantage is found after use Disconf save a lot of application configuration, and can be configured to automatically load, with immediate effect.

Disconf advantages are summarized as follows:

Simple deployment: on the same line package, need not change the configuration, can be on-line in multiple environments
to deploy dynamic: change the configuration without having to repackage or restart, with immediate effect to
the unified management of: providing a web platform, unified management of multiple environments and more All configuration of products

To be honest, I ended up with was APOLLO
https://blog.csdn.net/z960339491/article/details/80667559

Guess you like

Origin www.cnblogs.com/772933011qq/p/11583862.html