5.2.0b1 (2020-07-06)
New Features
EventHubConsumerClient
constructor accepts two new parameters for the load balancer.load_balancing_strategy
, which can be "greedy" or "balanced".
With greedy strategy, one execution of load balancing will claim as many partitions as required to balance the load
whereas with balanced strategy one execution of load balancing will claim at most 1 partition.partition_ownership_expiration_interval
, which allows you to customize the partition ownership expiration for load balancing.
A consumer client may lose its owned partitions more often with a smaller expiration interval. But a larger interval
may result in idle partitions not being claimed for longer time.
- Added enum class
azure.eventhub.LoadBalancingStrategy
forload_balancing_strategy
.