https://github.com/imiphp/imi-config-center
https://github.com/imiphp/imi-config-center
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/imiphp/imi-config-center
- Owner: imiphp
- License: other
- Created: 2022-07-27T03:19:07.000Z (almost 4 years ago)
- Default Branch: 2.1
- Last Pushed: 2022-12-03T01:23:46.000Z (over 3 years ago)
- Last Synced: 2024-05-23T01:31:29.006Z (about 2 years ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imi-config-center
[](https://packagist.org/packages/imiphp/imi-config-center)
[](https://secure.php.net/)
[](https://github.com/swoole/swoole-src)
[](https://github.com/imiphp/imi-config-center/blob/master/LICENSE)
## 介绍
此项目是 imi 框架的配置中心组件,仅包含抽象定义,无实现代码。请结合具体实现的配置组件使用。
> 正在开发中,随时可能修改,请勿用于生产环境!
**支持的配置中心:**
* [x] Nacos ([imi-nacos](https://github.com/imiphp/imi-nacos))
* [ ] Apollo
* [x] etcd ([imi-etcd](https://github.com/imiphp/imi-etcd))
* [ ] Consul
* [x] Zookeeper ([imi-zookeeper](https://github.com/imiphp/imi-zookeeper))
……
## 设计
### 监听模式
#### 工作进程模式
每个进程自己监听,适用于 Swoole 环境。
#### 进程模式
由一个专门的进程监听,并通知到其它进程。适用于 Swoole、Workerman 环境。
对配置中心压力更小。
---
> php-fpm 模式比较特殊,是走的文件缓存逻辑。超过一定时间才去请求配置中心,获取数据,实时性有一定影响。
### 监听方式
#### 客户端轮询
客户端定时请求配置中心,对配置中心服务端压力较大,但是最为通用。
#### 服务端推送(长轮询)
如果配置中心支持服务端推送(长轮询),建议用这个方式,对配置中心服务端压力较小。
## 社群
**imi 框架交流群:** 17916227 [](https://jq.qq.com/?_wv=1027&k=5wXf4Zq)
**微信群:**

**打赏赞助:**
## 运行环境
* [PHP](https://php.net/) >= 7.4
* [Composer](https://getcomposer.org/) >= 2.0
* [Swoole](https://www.swoole.com/) >= 4.8.0
* [imi](https://www.imiphp.com/) >= 2.1
## 版权信息
`imi-config-center` 遵循 MulanPSL-2.0 开源协议发布,并提供免费使用。
## 捐赠

开源不求盈利,多少都是心意,生活不易,随缘随缘……