微服务下的分布式配置中心讲解
微服务下的分布式配置中心
什么是配置中:
一句话:统一管理配置,(如yml里的网关配置,fegin配置等服务配置)快速切换各个环境的配置
问题:如果项目上线,所有的配置都是在项目下的,上线需要去修改一些配置,每个配置修改起来就会非常费事,使用config-server就能一键动态配置修改
通过web配置管理界面,配置存储在git或mysql或阿里云git上,Config-server(多节点避免挂掉)拉取配置,服务向Config动态获取配置到本地。
相关产品
百度的disconf 地址:https://github.com/knightliao/disconf
阿里的diamand 地址:https://github.com/takeseem/diamond
springCloud的configs-server:
d的configs-server:
地址:http://cloud.spring.io/spring-cloud-config/