当前位置:网站首页>Config分布式配置中心
Config分布式配置中心
2022-07-07 02:40:00 【RB_VER】
概述
微服务意味着要将单体应用中的业务拆分成一个个子服务,每个服务的粒度相对较小,因此系统中会出现大量的服务。由于每个服务都需要必要的配置信息才能运行,所以一套集中式的、动态的配置管理设施是必不可少的。
spring cloud config为微服务架构中的微服务提供集中化的外部配置支持,配置服务器为各个不同微服务应用的所有环境提供了一个中心化的外部配置。

spring cloud config分为服务端和客户端两部分。
服务端也称为分布式配置中心,它是一个独立的微服务应用,用来连接配置服务器并为客户端提供获取配置信息,加密/解密信息等访问接口。
客户端则是通过指定的配置中心来管理应用资源,以及与业务相关的配置内容,并在启动的时候从配置中心获取和加载配置信息,配置服务器默认采用git来存储配置信息,这样就有助于对环境配置进行版本管理,并且可以通过git客户端工具来方便的管理和访问配置内容。
config功能:
- 集中管理配置文件
- 不同环境不同配置,动态化的配置更新,分环境部署比如dev/test/prod/beta/release。
- 运行期间动态调整配置,不再需要在每个服务部署的机器上编写配置文件,服务会向配置中心统一拉取配置自己的信息。
- 当配置发生变动时,服务不需要重启即可感知到配置的变化并应用新的配置。
- 将配置信息以REST接口形式暴露。
边栏推荐
- 怎样查找某个外文期刊的文献?
- 一条慢SQL拖死整个系统
- 【解决】Final app status- UNDEFINED, exitCode- 16
- A program lets you understand what static inner classes, local inner classes, and anonymous inner classes are
- MYSQL----导入导出&视图&索引&执行计划
- C language interview to write a function to find the first occurrence of substring m in string n.
- MATLAB小技巧(29)多项式拟合 plotfit
- Matlab / envi principal component analysis implementation and result analysis
- MySQL(十)
- Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
猜你喜欢

string(讲解)

Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】

LM11丨重构K线构建择时交易策略

品牌·咨询标准化

程序员的日常 | 每日趣闻

Can't you really do it when you are 35 years old?

【NOI模拟赛】区域划分(结论,构造)

Pinduoduo lost the lawsuit: "bargain for free" infringed the right to know but did not constitute fraud, and was sentenced to pay 400 yuan

精准时空行程流调系统—基于UWB超高精度定位系统

地质学类比较有名的外文期刊有哪些?
随机推荐
程序员的日常 | 每日趣闻
品牌电商如何逆势增长?在这里预见未来!
BindingException 异常(报错)处理
Google Chrome browser released patch 103.0.5060.114 to fix the 0-day vulnerability
unity3d学习笔记
怎样查找某个外文期刊的文献?
Etcd database source code analysis -- starting from the start function of raftnode
算法---比特位计数(Kotlin)
大促过后,销量与流量兼具,是否真的高枕无忧?
项目实战 五 拟合直线 获得中线
使用TCP/IP四层模型进行网络传输的基本流程
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
C language interview to write a function to find the first occurrence of substring m in string n.
Apache ab 压力测试
途家、木鸟、美团……民宿暑期战事将起
Which foreign language periodicals are famous in geology?
[solution] final app status- undefined, exitcode- 16
What books can greatly improve programming ideas and abilities?
UIC (configuration UI Engineering) public file library adds 7 industry materials
MySql用户权限