Azure / azure-functions-eventhubs-extension

Event Hubs extension for Azure Functions
MIT License
20 stars 26 forks source link

EventHubTrigger vs. EventProcessor and CPU utilization #3036 #127

Closed deyanp closed 10 months ago

deyanp commented 10 months ago

We have migrated some .NET 7 applications running as pods in AKS from using EventHubTriggers from WebJobs SDK (from Microsoft.Azure.WebJobs.Extensions.EventHubs 5.5.0) to raw EventProcessor (from Azure.Messaging.EventHubs 5.9.3) and we are observing very different CPU utilization:

EventHubTriggers: < 10 millicores EventProcessor: > 100 millicores

for the same 2 EventHubs with 8 partitions each*

Compared options and do not see any major difference.

What is the secret of WebJobs SDK implementation of EventProcessor?? I looked at the code but do not see anything obvious which explains such a drastic difference in CPU utilization ...

*Yes, I know 1,5 partitions per vCPU are the recommendation