Azure-docs: Default values for maxBatchSize and prefetchCount?

Created on 23 Oct 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

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?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 assigned-to-author azure-functionsvc doc-bug triaged

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.

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments