question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to receive events batch in Eventhub triggered function

See original GitHub issue

Investigative 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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pragnagopacommented, May 10, 2019

@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?

0reactions
maiqbal11commented, Jul 9, 2019

The SystemPropertiesArray isn’t currently being populated by the Python worker. Will need to make a change that allows it to handle this case.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found