question

BrunoLucas-9843 avatar image
0 Votes"
BrunoLucas-9843 asked SerkantKaraca-MSFT answered

Controlling EventProcessorClient to pull batchs from azure event hub

Hi,

I know the right approach is using the azure function trigger and set the batch size in the host.json, but I am not allowed to use the ports required for AMQP, therefore, I need to improvise with a time trigger and the EventProcessorClient . is there a way to set a max batch size in here:
122158-image.png


azure-functionsazure-event-hubs
image.png (33.8 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

SerkantKaraca-MSFT avatar image
0 Votes"
SerkantKaraca-MSFT answered

EventProcessorClient doesn't provide batch deliveries and ProcessEventHandler will deliver single EventData at a time. If you want to batch for optimizing downstream writes then you can batch incoming messages in the handler yourself. Doing it so actually is no different than SDK doing it for you.

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.