smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.11k stars 1.17k forks source link

server状态变更client无法感知 #820

Closed 275861756 closed 11 months ago

275861756 commented 1 year ago
option := client.DefaultOption
option.Heartbeat = true
option.HeartbeatInterval = time.Second
d, _ := cclient.NewZookeeperDiscovery(*basePath, "Arith", []string{*zkAddr}, nil)
xclient := client.NewXClient("Arith", client.Failover, client.RandomSelect, d, option)
defer xclient.Close()

客户端启动后, 修改注册中心某个服务的 state为inactive后仍能一直受到请求。粗略看了代码,修改后,是没有重新加载注册中心的元数据的。 github.com/rpcxio/libkv v0.5.1 // indirect github.com/rpcxio/rpcx-zookeeper v0.0.0-20220730061732-d20531677676 // indirect github.com/smallnest/rpcx v1.8.11 image

smallnest commented 11 months ago

rpcx-ui废弃了。