Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态配置更新时序问题 #412

Open
luoxn28 opened this issue May 11, 2019 · 0 comments
Open

动态配置更新时序问题 #412

luoxn28 opened this issue May 11, 2019 · 0 comments

Comments

@luoxn28
Copy link

luoxn28 commented May 11, 2019

更新一个配置文件,disconf-client端是按照:下载 -> 注入到仓库 -> Watch注册步骤来的,这个流程是有隐患的,如果前后两个更新配置,第二次更新是在第一次下载和Watch注册之间,那么第二次更新会丢失。最好是先注册Watch,然后下载,最后注入到仓库,流程加锁保证。最好是再有一个定时任务作为兜底,定时从disconf-web拉取配置比较保险一点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant