当前位置:网站首页>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接口形式暴露。
边栏推荐
- dolphinscheduler3.x本地启动
- 肿瘤免疫治疗研究丨ProSci LAG3抗体解决方案
- Programmers' daily | daily anecdotes
- 一条慢SQL拖死整个系统
- ESXI挂载移动(机械)硬盘详细教程
- 使用net core优势/为什么使用
- Problems and precautions about using data pumps (expdp, impdp) to export and import large capacity tables in Oracle migration
- 循环肿瘤细胞——Abnova 解决方案来啦
- [solution] final app status- undefined, exitcode- 16
- 学习笔记|数据小白使用DataEase制作数据大屏
猜你喜欢

Common problems of caching in high concurrency scenarios

POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...

Ant manor safety helmet 7.8 ant manor answer

LM small programmable controller software (based on CoDeSys) Note 23: conversion of relative coordinates of servo motor operation (stepping motor) to absolute coordinates

MySQL卸载文档-Windows版

Shared memory for interprocess communication

联合索引ABC的几种索引利用情况

请问如何查一篇外文文献的DOI号?

Data of all class a scenic spots in China in 2022 (13604)

偏执的非合格公司
随机推荐
How to install swoole under window
ViewModelProvider.of 过时方法解决
C interview 24 (pointer) define a double array with 20 elements a
Which foreign language periodicals are famous in geology?
String (explanation)
肿瘤免疫治疗研究丨ProSci LAG3抗体解决方案
ESXI挂载移动(机械)硬盘详细教程
JWT的基础介绍
Networkx绘图和常用库函数坐标绘图
JWT 认证
docker-compose启动redis集群
Performance comparison between Ceres solver and g2o
Abnova 膜蛋白脂蛋白体技术及类别展示
Linear algebra (1)
Pinduoduo lost the lawsuit: "bargain for free" infringed the right to know but did not constitute fraud, and was sentenced to pay 400 yuan
Abnova循环肿瘤DNA丨全血分离,基因组DNA萃取分析
如何解决数据库插入数据显示SQLSTATE[HY000]: General error: 1364 Field ‘xxxxx‘ doesn‘t have a default value错误
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`问题解决
Ant manor safety helmet 7.8 ant manor answer
Installing redis and windows extension method under win system