How should an Azure Function consuming Event Hubs be configured for high throughput?
- A Set batchSize to 1
- B Enable batching with a suitable maxBatchSize and process events in bulk (correct answer)
- C Disable checkpointing
- D Use a Timer trigger
Shortcut: The Event Hubs trigger can deliver arrays of events. Batch processing amortises per-invocation overhead and checkpointing, greatly increasing throughput.