Search code examples
azure-functionsazureservicebus

Azure function App with ASB - how maxConcurrentCalls works


I wondering how "maxConcurrentCalls" setting works for Azure Service Bus (ASB) triggered Azure function(AF). I have an "azure function" App with only 1 AF in it. To handle load scenarios "Max Instance count" set to 5. Which means I can have 5 instance of my Azure running to handle increased load. But I have noticed that there is a setting "maxConcurrentCall" available.

Does Setting this to(say) 5, means my single instance will pick 5 message from the queue and execute them in Parallel? What is the default value of this setting?

Thanks


Solution

    1. The maxConcurrentCalls setting determines how many messages an Azure Function can handle at the same time when triggered by Azure Service Bus.
    2. default value of maxConcurrentCalls is 16 if you don't change it.
    3. You can adjust maxConcurrentCalls based on your needs to control how many messages can be processed at the same time by the function.