1 comment (1 comment)0 reactions (0 reactions)0 assignees (0 assignees)Java10,177 forks (10,177 forks)batch import
feature requesthelp wanted
Repository metrics
- Stars
- 29,769 stars (29,769 stars)
- PR merge metrics
- Avg merge 4d 13h (Avg merge 4d 13h)6 merged PRs in 30d (6 merged PRs in 30d)
Description
需求是这样的:当通过读取配置接口成功获取配置后,Apollo将标识IP为使用最新配置的实例,但实际上获取到配置后还需要做一些额外的工作,比如对配置进行解析、清除缓存等等。这些工作是可能失败的,导致新配置并没有应用到。
所以我想了一个解决方案,就是读取配置接口加上一个参数代表是否手动应答,默认是否,不影响现在的机制。当读取配置接口传入手动应答参数为是时,完成额外工作后,需要再调用一个新的应答接口代表更新配置完成。如果不调用应答接口,则实例仍然是使用非最新配置的实例。
不知道能否支持,谢谢~
Contributor guide
- Research direction
- Understand the existing configuration update flow, especially how the getConfigs API marks an instance as using the latest configuration. Then design a manual ack mechanism: add a 'manualAck' parameter to getConfigs and create a new ack endpoint. Check client side integration for manual acknowledgment handling.
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Prerequisites
- JavaGit