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