filamoon / pyapollo

Python client for Ctrip's Apollo.
Apache License 2.0
193 stars 94 forks source link

client不支持环境environment参数吗 #3

Open bohea opened 6 years ago

bohea commented 6 years ago

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

client = ApolloClient(appId=, cluster=, config_server_url=) client.start()

这个client不支持这个参数吗

filamoon commented 6 years ago

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

bohea commented 6 years ago

是的,的确是这样

另外对于非默认的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.

chunlaiqingke commented 2 months ago

不同环境的域名是不一样的,你自己维护一下env和config-server-url的对应关系即可