question

JoeWhite-4463 avatar image
0 Votes"
JoeWhite-4463 asked PRADEEPCHEEKATLA-MSFT commented

Can Azure Event Hub process messages on a multithread mode?

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://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-send
128433-image.png


azure-event-hubs
image.png (62.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @JoeWhite-4463,

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @JoeWhite-4463,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·

Hello @JoeWhite-4463,

Following up to see if the above suggestion was helpful. And, if you have any further query do let us know.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.

0 Votes 0 ·