Search code examples
c#azureazure-eventhubevent-processor-host

Should we use the Microsoft.Azure.EventHubs.Processor library with .NET framework


Context

We're currently using Microsoft.Azure.ServiceBus.EventProcessorHost for data ingestion from an Azure Event-Hub. We run on .NET framework, not .NET Core.

This Microsoft announcement (published Feb 2, 2017) suggests the newer Microsoft.Azure.EventHubs.Processor is the way to go in the future, regardless of the .NET runtime you use, as they will maintain a single code base.

Meanwhile, the official Microsoft Event-Hub samples updated recently still suggest the older library (Microsoft.Azure.ServiceBus.EventProcessorHost) for the .NET framework.

Both libraries have been updated and evolved since the announcement.

Question

Since we're on .NET framework, which library should we use going forward?

Should we migrate to the newer Microsoft.Azure.EventHubs.Processor, in order to benefit from the latest development, improvements and bug fixes? Or is the old one kept up to speed?

The question is relevant to newcomers as well, which library should they pick to get started with Azure Event-Hubs.


Solution

  • I may be partial in my answer, but I would prefer the newer Microsoft.Azure.EventHubs library. This is for the following reasons: