Added solution for optimizing affinity routing. Today existing affinity routing solution seems to be CPU or memory heavy and can only be enabled by POINT_BASED or MULTI_PROBE consistent hash algorithm.
This PR provides lightweight solution to achieve affinity routing while making use of DISTRIBUTION_BASED consistent hash algorithm.
Using this solution, applications can choose to optimize Affinity routing by providing implementation to AffinityRoutingUriProvider interface implementation and supply the instance in RequestContext's local attribute.
Added solution for optimizing affinity routing. Today existing affinity routing solution seems to be CPU or memory heavy and can only be enabled by POINT_BASED or MULTI_PROBE consistent hash algorithm.
This PR provides lightweight solution to achieve affinity routing while making use of DISTRIBUTION_BASED consistent hash algorithm.
Using this solution, applications can choose to optimize Affinity routing by providing implementation to AffinityRoutingUriProvider interface implementation and supply the instance in RequestContext's local attribute.