Is the default value for maxBatchSize really 64, and prefetchCount really "n/a"? When I look at the doc for EventProcessorOptions (see https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.eventhubs.processor.eventprocessoroptions?view=azure-dotnet#properties), it shows a default maxBatchSize of 10 and default prefetchCount of 300. Is the Functions binding setting a different default?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@mcollier Thanks for the question! We will review and get back to you!
@mcollier Looking at the extension code, the default options from the Event Hubs SDK seem to be used unaltered.
We are assigning this issue to the content author for further review and to update the doc accordingly.
Can you also document what is the maximum value for these two settings? I tried to set them both to 10,000 but it appears to limit batches to 5,000 events.
Are the default values different between Functions v1 and v2? The values shown in the table at https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs?tabs=csharp#hostjson-settings are different than the default values shown at https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs?tabs=csharp#trigger---hostjson-properties.
@PramodValavala-MSFT I think this can be closed now. The trigger page has been updated to show V1 and V2 settings. See https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs-trigger?tabs=csharp#hostjson-properties.
@craigshoemaker FYI
@mcollier Thanks!
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Most helpful comment
Can you also document what is the maximum value for these two settings? I tried to set them both to 10,000 but it appears to limit batches to 5,000 events.