Skip to content

Commit b87be0d

Browse files
authored
Switch to greedy strategy (Azure#18140)
1 parent 8688e34 commit b87be0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/Config/EventHubOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Text;
88
using Azure.Messaging.EventHubs.Consumer;
99
using Azure.Messaging.EventHubs.Primitives;
10+
using Azure.Messaging.EventHubs.Processor;
1011
using Azure.Messaging.EventHubs.Producer;
1112
using Microsoft.Azure.WebJobs.EventHubs.Processor;
1213
using Microsoft.Azure.WebJobs.Hosting;
@@ -29,6 +30,7 @@ public EventHubOptions()
2930
InvokeProcessorAfterReceiveTimeout = false;
3031
EventProcessorOptions = new EventProcessorOptions()
3132
{
33+
LoadBalancingStrategy = LoadBalancingStrategy.Greedy,
3234
TrackLastEnqueuedEventProperties = false,
3335
MaximumWaitTime = TimeSpan.FromMinutes(1),
3436
PrefetchCount = 300,

0 commit comments

Comments
 (0)