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

希望能增加发布配置后不重启服务热更新 #735

Open
wuai1024 opened this issue Mar 22, 2024 · 3 comments
Open

希望能增加发布配置后不重启服务热更新 #735

wuai1024 opened this issue Mar 22, 2024 · 3 comments

Comments

@wuai1024
Copy link

目前Java SDK是可以监听订阅配置发布的。

使用SpringCloud更是可以直接热更新。

希望Go SDK也能更上,能在发布新配置后,应用能直接获取到新配置。

@binbin0325
Copy link
Member

go也可以订阅配置热更新呀,看一下redeme

@wuai1024
Copy link
Author

go也可以订阅配置热更新呀,看一下redeme

能发下地址吗

@Abeautifulsnow
Copy link

Abeautifulsnow commented Jun 17, 2024

dynamic-configuration 就是啊。里面的 :

err := configClient.ListenConfig(vo.ConfigParam{
		DataId: "dataId",
		Group:  "group",
		OnChange: func (namespace, group, dataId, data string) {
			fmt.Println("group:" + group + ", dataId:" + dataId + ", data:" + data)
		},
	})

在OnChange里面接收change后的就可以。

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

3 participants