Haven't this function, the default provides several implementations
Look at the rule interface, choose method is a key parameter, but this parameter is not place Settings,
If I want to some parameters based on HTTP, or headers, cookies, do hint routing, or hash load, was no, dubbo have this function, can according to the first parameter hash,
It seems this stuff is not yet mature
CodePudding user response:
Is this solved?
CodePudding user response:
Set the key method in public RibbonLoadBalancerClient ServiceInstance choose (String serviceId, Object hint) method, but not in the interface, the need to do a conversion, you can refer to: https://my.oschina.net/youxijishu/blog/3022993
CodePudding user response:
Solution: https://blog.csdn.net/zhangzhen02/article/details/110094929CodePudding user response:
Solution: https://blog.csdn.net/zhangzhen02/article/details/110094929