pyapollo icon indicating copy to clipboard operation
pyapollo copied to clipboard

client不支持环境environment参数吗

Open bohea opened this issue 8 years ago • 3 comments

Apollo的配置可以分environment (环境)

client = ApolloClient(appId=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>) client.start()

这个client不支持这个参数吗

bohea avatar Jan 08 '18 10:01 bohea

我的理解是,不同的environment对应不同的config_server_url

filamoon avatar Jan 08 '18 13:01 filamoon

是的,的确是这样

另外对于非默认的namespace加载,能否在每次long pulling之前获取一下最新的namespace再使用notification获取需要更新的namespace。这样用户第一次读取非默认namespace配置时就不需要阻塞了

发自网易邮箱大师 在2018年01月08日 21:01,filamoon 写道:

我的理解是,不同的environment对应不同的config_server_url

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

bohea avatar Jan 10 '18 07:01 bohea