Reputation: 3127
Can multiple azure functions read from single partition on event hub. Can they scale up more then number of partitions in event hub?
Upvotes: 0
Views: 737
Reputation: 35134
Yes, that is possible.
Let's say your Event Hub has N
partitions. Function might be running on M
instances (servers). Each partition will be locked by one of the servers, i.e. two servers won't concurrently process messages from the same partition. M <= N
will hold.
Each server may run multiple function executions in parallel. They can be from multiple partitions, but also the server might process several events from the same batch from the same partition at the same time.
The simplest experiment which shows that:
In the logs you will see that they were processed in parallel, not sequentially.
Upvotes: 0