Dear experts,

We are using Dubbo to export our services. For data load balancing, we would 
like to use the consistent hash load balancer.
For the default usage of this load balancer, we can define either one or 
several parameters of the consumed method to be used as the hashing data.
We wonder if it is possible to target the hashing on the field of an object 
passed as the param.
For instance, the method interface is as follows:

MyResponse getResponse(MyRequestParams params);

The object params has a field named URI, which we would like to apply the hash 
algorithm upon.
Of course, we can modify our method to:

MyResponse getResponse(String uri, MyRequestParams params);

But this really is contradictory with the design goal of MyRequestParam object 
(which is defined to wrap all our request params into one object)

Best regards
Tien Dat PHAN

Reply via email to