英文:
Azure function App with ASB - how maxConcurrentCalls works
问题
我想知道Azure Service Bus(ASB)触发的Azure函数(AF)中的“maxConcurrentCalls”设置如何工作。
我有一个仅包含1个AF的“Azure函数”应用程序。为了处理负载情况,将“最大实例计数”设置为5。这意味着我可以有5个Azure实例运行,以处理增加的负载。但我注意到有一个名为“maxConcurrentCall”的设置。
将其设置为(比如)5,是否意味着我的单个实例将从队列中取出5条消息并并行执行它们?此设置的默认值是多少?
谢谢
英文:
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
答案1
得分: 1
- maxConcurrentCalls 设置确定了当由 Azure Service Bus 触发时,Azure Function 可以同时处理多少条消息。
- 如果不更改,默认的 maxConcurrentCalls 值为 16。
- 您可以根据需求调整 maxConcurrentCalls,以控制函数可以同时处理多少条消息。
英文:
- The maxConcurrentCalls setting determines how many messages an Azure Function can handle at the same time when triggered by Azure Service Bus.
- default value of maxConcurrentCalls is 16 if you don't change it.
- You can adjust maxConcurrentCalls based on your needs to control how many messages can be processed at the same time by the function.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论