Share via

Azure EventHubs Processor recommendation

Macháček Martin 306 Reputation points
2024-05-14T12:35:31.83+00:00

I have Azure Event Hubs and on my local machine, I'm using NuGet Azure.Messaging.EventHubs.Processor for processing events.

Is it possible to use Azure.Messaging.EventHubs.Processor in production or is it recommended to use Azure Functions and Event Hub Trigger for processing events?

I'm not sure what kind of Azure Service is most suitable for hosting Azure.Messaging.EventHubs.Processor.

Azure Event Hubs

Answer accepted by question author

AnnuKumari-MSFT 34,571 Reputation points Microsoft Employee Moderator
2024-05-16T05:10:24.7533333+00:00

Hi @Macháček Martin ,

Thankyou for posting your query on Microsoft Q&A platform .

Whether or not to use Azure.Messaging.EventHubs.Processor or Azure Functions with Event Hub Trigger depends on your specific use case and requirements.

Azure Functions with Event Hub Trigger is a serverless compute service that automatically scales based on the number of events being processed. It is a good choice if you need to process a large number of events and want to minimize the operational overhead of managing the infrastructure.

On the other hand, Azure.Messaging.EventHubs.Processor is a library that you can use in any .NET application, including those running on-premises or in a cloud-hosted VM. It provides more control over the processing of events and can be customized to meet specific requirements.

In terms of hosting Azure.Messaging.EventHubs.Processor, you can host it in any .NET application, including console applications, Windows services, or web applications. You can also host it in a cloud-hosted VM or container. The choice of hosting environment depends on your specific requirements, such as scalability, availability, and cost.

In summary, both Azure.Messaging.EventHubs.Processor and Azure Functions with Event Hub Trigger are suitable for processing events from Azure Event Hubs in production environments. The choice depends on your specific use case and requirements.

Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.