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

一致性hash中,相同入参无法路由到同一个服务 #63

Open
Tbthr opened this issue Apr 26, 2022 · 3 comments
Open

一致性hash中,相同入参无法路由到同一个服务 #63

Tbthr opened this issue Apr 26, 2022 · 3 comments

Comments

@Tbthr
Copy link

Tbthr commented Apr 26, 2022

return selector.select(rpcServiceName + Arrays.stream(rpcRequest.getParameters()));

Arrays.stream() 每次调用都会返回一个新对象,即使入参相同。如下图所示:
image

客户端调用,如下图所示:
image

是否可以直接将参数按顺序拼接呢,个人的一些思考,还望指教

@codeReaper2001
Copy link

按道理来说,负载均衡,入参相同也可以分配不同的机器吧?

@IThzf
Copy link

IThzf commented Jul 25, 2022

请问你是怎么启动多个服务端的啊

@xiaoguyueyue
Copy link
Contributor

请问你是怎么启动多个服务端的啊

修改启动端口,然后跑起来不就好了,网上搜索一下idea怎么一个项目跑多次

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

4 participants