apolloconfig / apolloconfig/apollo

配置热更新:能否提供手动应答机制?

Open
#2,541 1 comment 0 reactions 0 assignees View on GitHub
feature request help wanted
Dominant language
Java
Stars
29.8k
Forks
10.2k
Avg merge
4d 7h
Merged PRs (30d)
4

Description

需求是这样的:当通过读取配置接口成功获取配置后,Apollo将标识IP为`使用最新配置的实例`,但实际上获取到配置后还需要做一些额外的工作,比如对配置进行解析、清除缓存等等。这些工作是可能失败的,导致新配置并没有应用到。
所以我想了一个解决方案,就是读取配置接口加上一个参数代表是否`手动应答`,默认是`否`,不影响现在的机制。当读取配置接口传入`手动应答`参数为`是`时,完成额外工作后,需要再调用一个新的应答接口代表更新配置完成。如果不调用应答接口,则实例仍然是`使用非最新配置的实例`。
不知道能否支持,谢谢~

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.