You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/04 02:16:11 UTC

[GitHub] [dubbo-go] sunrui1225 commented on issue #1517: 3.0版本建议服务监听配置中心发生改变时,服务可以立马生效热更新,不需要重新重启

sunrui1225 commented on issue #1517:
URL: https://github.com/apache/dubbo-go/issues/1517#issuecomment-960378429


   开发设计思路:
   1,在 配置中心启动的时候添加监听
     位置:config/config_center_config.go的startConfigCenter方法
     添加cc.DynamicConfiguration.AddListener(cc.DataId, rc)
   
   2,RootConfig实现ConfigurationListener接口的Process方法,监听变更事件。
     1)对ConfigChangeEvent解析,得到变更后的配置,存放入koan的map中。
     2)需要考虑哪些字段能够热更新?超时时间?用户提到的provider.services,consumer.refrences?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org