Comments (8)
我自己二开实现了该特性,需要的朋友可以移步:https://github.com/qshuai/agollo#%E5%8A%A8%E6%80%81namespace%E7%89%B9%E6%80%A7
from agollo.
我自己二开实现了该特性,需要的朋友可以移步:https://github.com/qshuai/agollo#%E5%8A%A8%E6%80%81namespace%E7%89%B9%E6%80%A7
如果有可能,可以提交 pr。
我代表社区感谢对 apolloconfig 社区的贡献。
from agollo.
你的实现方式是这样吗:
定时拉取全部namespace,然后配置正则匹配想要的部分
调整成这样是不是比较好:
在application这里配置要启用的namespace,如:namespace=mysql,redis,kafka,当修改的时候这个值是会自动同步到client的,client根据这个值去获取配置就好了,不用定时任务,也不用正则
按照目前的代码结构,只需要有个内置的change监听,设置调用下SetCurrentApolloConfig就可以了
from agollo.
你的实现方式是这样吗: 定时拉取全部namespace,然后配置正则匹配想要的部分
调整成这样是不是比较好: 在application这里配置要启用的namespace,如:namespace=mysql,redis,kafka,当修改的时候这个值是会自动同步到client的,client根据这个值去获取配置就好了,不用定时任务,也不用正则
按照目前的代码结构,只需要有个内置的change监听,设置调用下SetCurrentApolloConfig就可以了
嗯呢,不错的想法!
from agollo.
不过我好奇应用场景是什么,按说新增配置不应该都是需要提前适配代码的吗,这就需要重新部署或者重新启动的。
from agollo.
不过我好奇应用场景是什么,按说新增配置不应该都是需要提前适配代码的吗,这就需要重新部署或者重新启动的。
一个可能但不一定合理的场景:一个类目相关的服务,提供类目相关配置的查询能力,而类目是可以横向扩展的;也就是说在服务启动的时候,并不知道有多少个类目需要配置。为了实现无需重启服务就能提供这样能力的诉求,就衍生了这么一个功能。
一开始我并不同意业务方的诉求,其实这个诉求可以通过如下方式满足:搭建一个类目的后台管理,再加上一个持久化存储,程序实时查询数据库的数据即可。但是业务方看中了apollo配置中心已经存在的灰度发布、审核流程、变更历史查询等能力,不想重复建设,把配置中心当做数据库在使用了。所以~
from agollo.
确实不太合理,当成数据库用了
from agollo.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from agollo.
Related Issues (20)
- [BUG]负载均衡无法切换节点
- [FEATURE] 在获取配置时interface的value很难用 HOT 2
- [求助]当我使用GetSliceValue()不可用 HOT 3
- [BUG] 关于常见问题 issues 访问不到 HOT 2
- [Question]关于后台实时同步机制 HOT 1
- [FEATURE] 按照官方客户端的设计,没有实现 fallback 机制 HOT 1
- [BUG]当阿波罗命名空间的配置文件为空时 阿波罗去获取数据库的时候会导致进入等待状态卡死进程 HOT 2
- [BUG] start failed cause no config was read HOT 2
- [BUG] HOT 2
- [BUG]无法获取最新配置
- [BUG] 写了重试逻辑,但是不能配置重试次数,定义了最大重试次数,又给置成了 1
- 判断是不是存在问题,我们是想要把这个映射保存在本地缓存中,但是判断的键和存储的键不一样,永远不可能用到缓存中数据 HOT 3
- 创建一个新的 namesapce,但是不在 namespace 下添加任何配置文件,该 Config 的 isInit 会一直是 false HOT 1
- [BUG]Unable to read the contents of namespace properties suffix HOT 3
- [FEATURE]Support YML format reading HOT 1
- [FEATURE] Failfast for explicit error http request instead of retrying
- [BUG] 懒加载之后没有同步 changeList
- [BUG]utils.GetInternal方法获取IP不符合预期 HOT 1
- [FEATURE] 不支持读取yaml格式的配置文件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agollo.