docs(readme): 为所有客户端SDK补充本地容灾功能说明
This commit is contained in:
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
Lua 客户端 SDK,适用于 Lua 5.1+ 项目。
|
Lua 客户端 SDK,适用于 Lua 5.1+ 项目。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持配置变更回调监听
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
### 使用 LuaRocks(推荐)
|
### 使用 LuaRocks(推荐)
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Lua client SDK for the Kenaito Config Center, suitable for Lua 5.1+ projects.
|
Lua client SDK for the Kenaito Config Center, suitable for Lua 5.1+ projects.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Config change callback listener
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Using LuaRocks (Recommended)
|
### Using LuaRocks (Recommended)
|
||||||
|
|||||||
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
[English](README_EN.md) | 中文
|
[English](README_EN.md) | 中文
|
||||||
|
|
||||||
|
Node.js 客户端 SDK,适用于 Node.js 18+ 项目。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持配置变更回调监听
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
### 安装到本地仓库(推荐)
|
### 安装到本地仓库(推荐)
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Node.js client SDK for the Kenaito Config Center.
|
Node.js client SDK for the Kenaito Config Center.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Config change callback listener
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Install to Local Repository (Recommended)
|
### Install to Local Repository (Recommended)
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
Perl 客户端 SDK,适用于 Perl 5.16+ 项目。
|
Perl 客户端 SDK,适用于 Perl 5.16+ 项目。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持配置变更回调监听
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
### 从本地安装
|
### 从本地安装
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Perl client SDK for the Kenaito Config Center, suitable for Perl 5.16+ projects.
|
Perl client SDK for the Kenaito Config Center, suitable for Perl 5.16+ projects.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Config change callback listener
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Install from Local
|
### Install from Local
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
PHP 客户端 SDK,适用于 PHP 7.4+ 项目。
|
PHP 客户端 SDK,适用于 PHP 7.4+ 项目。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持配置变更回调监听
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
### 使用 Composer(推荐)
|
### 使用 Composer(推荐)
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
PHP client SDK for the Kenaito Config Center, suitable for PHP 7.4+ projects.
|
PHP client SDK for the Kenaito Config Center, suitable for PHP 7.4+ projects.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Config change callback listener
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Using Composer (Recommended)
|
### Using Composer (Recommended)
|
||||||
|
|||||||
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
[English](README_EN.md) | 中文
|
[English](README_EN.md) | 中文
|
||||||
|
|
||||||
|
Python 客户端 SDK,适用于 Python 3.10+ 项目。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持配置变更回调监听
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Python client SDK for the Kenaito Config Center.
|
Python client SDK for the Kenaito Config Center.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Config change callback listener
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
适用于 Spring Boot 2.x 应用的配置中心客户端,支持配置自动刷新和 `@Value` 注解动态更新。
|
适用于 Spring Boot 2.x 应用的配置中心客户端,支持配置自动刷新和 `@Value` 注解动态更新。
|
||||||
|
|
||||||
|
## 功能特性
|
||||||
|
|
||||||
|
- 从配置中心拉取应用配置
|
||||||
|
- 定时同步配置变更
|
||||||
|
- 支持 `@Value` 注解动态刷新
|
||||||
|
- 本地文件缓存(配置中心不可用时降级)
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
### Maven 依赖
|
### Maven 依赖
|
||||||
@@ -158,6 +165,7 @@ Demo 默认配置:
|
|||||||
2. **配置优先级**:远程配置 > 本地配置 > 默认值
|
2. **配置优先级**:远程配置 > 本地配置 > 默认值
|
||||||
3. **日志脱敏**:包含敏感键的配置在日志中会自动脱敏(显示前一半 + `****`)
|
3. **日志脱敏**:包含敏感键的配置在日志中会自动脱敏(显示前一半 + `****`)
|
||||||
4. **网络异常**:同步失败时会记录错误日志,不影响应用正常运行
|
4. **网络异常**:同步失败时会记录错误日志,不影响应用正常运行
|
||||||
|
5. **本地容灾**:客户端会在本地缓存目录下创建 `config-cache.log` 文件,当配置中心不可用时自动从缓存加载配置
|
||||||
|
|
||||||
## 版本历史
|
## 版本历史
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Config center client for Spring Boot 2.x applications, supporting automatic config refresh and dynamic `@Value` annotation updates.
|
Config center client for Spring Boot 2.x applications, supporting automatic config refresh and dynamic `@Value` annotation updates.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Fetch application configs from the config center
|
||||||
|
- Periodic config sync
|
||||||
|
- Automatic `@Value` annotation refresh
|
||||||
|
- Local file cache (fallback when config center is unavailable)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Maven Dependency
|
### Maven Dependency
|
||||||
@@ -156,6 +163,7 @@ Visit `http://localhost:8083/config` to view current configs.
|
|||||||
2. **Config Priority**: Remote config > Local config > Default value
|
2. **Config Priority**: Remote config > Local config > Default value
|
||||||
3. **Log Masking**: Configs containing sensitive keys are automatically masked in logs (first half + `****`)
|
3. **Log Masking**: Configs containing sensitive keys are automatically masked in logs (first half + `****`)
|
||||||
4. **Network Errors**: Sync failures are logged as errors without affecting normal application operation
|
4. **Network Errors**: Sync failures are logged as errors without affecting normal application operation
|
||||||
|
5. **Local Fallback**: The client creates a `config-cache.log` file in the local cache directory, automatically loading configs from cache when the config center is unavailable
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user