Can Azure Event Hub process messages on a multithread mode?

Joe White 116 Reputation points
2021-09-01T23:53:54.41+00:00

I've used this code suggested by Microsoft and I would expect to be creating Tasks in parallel but it seems to be processing in line
is there a way I could process multiple messages in parallel and control the amount of parallel instances/threads?

https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-send
128433-image.png

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
581 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 83,306 Reputation points Microsoft Employee
    2021-09-06T05:16:35.663+00:00

    Hello @Joe White ,

    Thanks for the question and using MS Q&A platform.

    The key to scale for Event Hubs is the idea of partitioned consumers. In contrast to the competing consumers pattern, the partitioned consumer pattern enables high scale by removing the contention bottleneck and facilitating end to end parallelism.

    For more details, refer to the below articles:

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful