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
nacos作为发现注册中心时websocket集群问题 #2114
Comments
这个主要是为了解决什么问题? |
集群情况下,支持ws协议长连接。 |
你意思是Nacos集群支持长连接吗? |
我不是指的nacos本身的长连接,指的通过这个调整,更好的支持业务服务集群的长连接 |
Thanks for your feedback and contribution. But the issue/pull request has not had recent activity more than 180 days. This issue/pull request will be closed if no further activity occurs 7 days later. |
WebSocket 服务端的微服务应用是有状态的。服务端的内存中一般存在维持连接的 WebSocket Session,且此 Session 无法被序列化(WebSocket 协议本身不同于 HTTP 协议)。 具体诉求是这样的: 另外一个问题,是在别人使用 Nacos 来做 WebSocket 集群时发现的:
|
有意向实现吗? |
如果nacos能做到在redis中能维护一个集群hash环,环上有不同的客户端连接服务端集群的id的hash,
nacos监听到集群服务的上下线可以动态的调整环的大小,hash改变后,断掉的部分连接重新连接一次即可。提出个思路。
The text was updated successfully, but these errors were encountered: