Balancing Strategy Enum
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The strategy that an event processor will use to make decisions about partition ownership when performing load balancing to share work with other event processors.
public enum LoadBalancingStrategy
type LoadBalancingStrategy =
Public Enum LoadBalancingStrategy
An event processor will take a measured approach to requesting partition ownership when balancing work with other processors, slowly claiming partitions until a stabilized distribution is achieved.
When using this strategy, it may take longer for all partitions of an Event Hub to be owned by a processor when processing first starts, the number of active processors changes, or when partitions are scaled. The Balanced strategy will reduce contention for a partition, ensuring that once it is claimed, processing will be more likely to be steady and consistent.
An event processor will attempt to claim ownership of its fair share of partitions aggressively when balancing work with other processors.
When using this strategy, all partitions of an Event Hub will be claimed quickly when processing first starts, the number of active processors changes, or when partitions are scaled. The Greedy strategy is likely to cause competition for ownership of a given partition, causing it to see sporadic processing and some amount of duplicate events until balance has been reached and work is distributed equally among the active processors.