How to receive events batch in Eventhub triggered function
See original GitHub issueInvestigative information
I have a eventhub triggered function in python and want to receive events in batch.
In function.json set cardinality
to many
“cardinality”: “many”,
What should the parameter in main function to pass a list of events?
This example can only get one event data:
def main(event: func.EventHubEvent):
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Azure Function Event Hub Trigger one batch at a time
My Azure Function(Event Receiver) receives the events in batches. After receiving each batch, it processes the data (does a bit of work).
Read more >Possiblility to receive event hub events in batch using azure ...
Yes, Azure Functions support batches with Event Hub trigger. Docs have this example: [FunctionName("EventHubTriggerCSharp")] public static ...
Read more >Eventhub triggered Azure function: Replays and Retries
Go to the storage which you set for AzureWebJobsStorage in function app settings -> Blob containers -> azure-webjobs-eventhub -> your eventhub ...
Read more >Microsoft.Azure.WebJobs.Extensions.EventHubs 5.1.2 - NuGet
Batch triggers. To run a function for a batch of received events apply the EventHubTriggerAttribute to a string[] or EventData[] parameter.
Read more >Processing 100000 Events Per Second on Azure Functions
An event hub triggered function can be written to process single messages or batches of messages. The latter has much better performance ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@asavaritayal - This needs to be documented. Receiving a batch of eventhub events is the recommended approach. @elprans - Can you share sample code for receiving an array or list of eventHubEvent?
The SystemPropertiesArray isn’t currently being populated by the Python worker. Will need to make a change that allows it to handle this case.