Controlling EventProcessorClient to pull batchs from azure event hub

Bruno Lucas 4,411 Reputation points MVP
2021-08-11T05:13:33.847+00:00

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 Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,353 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
564 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Serkant Karaca 21 Reputation points Microsoft Employee
    2021-08-11T20:15:17.733+00:00

    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.

    0 comments No comments