Class HelixScatterGatherRoutingStrategy
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractClientRoutingStrategy
com.linkedin.venice.fastclient.meta.HelixScatterGatherRoutingStrategy
- All Implemented Interfaces:
ClientRoutingStrategy
This strategy will assign an ordering of helix groups via round-robin for even distribution. The fanout in multi-get
will be performed using instances belonging to the assigned groups. If no instance belonging to the selected group is
found for a given partition, the instance with the next group in the assigned ordering will be used
-
Constructor Summary
ConstructorDescriptionHelixScatterGatherRoutingStrategy
(InstanceHealthMonitor instanceHealthMonitor) -
Method Summary
Modifier and TypeMethodDescriptiongetReplicas
(long requestId, List<String> replicas, int requiredReplicaCount) void
updateHelixGroupInfo
(Map<String, Integer> instanceToHelixGroupIdMap)
-
Constructor Details
-
HelixScatterGatherRoutingStrategy
-
-
Method Details
-
getReplicas
- Specified by:
getReplicas
in interfaceClientRoutingStrategy
- Overrides:
getReplicas
in classAbstractClientRoutingStrategy
-
updateHelixGroupInfo
- Overrides:
updateHelixGroupInfo
in classAbstractClientRoutingStrategy
-