Azure Function App 与 ASB – maxConcurrentCalls 的工作原理

huangapple go评论55阅读模式
英文:

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

  1. maxConcurrentCalls 设置确定了当由 Azure Service Bus 触发时,Azure Function 可以同时处理多少条消息。
  2. 如果不更改,默认的 maxConcurrentCalls 值为 16。
  3. 您可以根据需求调整 maxConcurrentCalls,以控制函数可以同时处理多少条消息。
英文:
  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.

huangapple
  • 本文由 发表于 2023年6月19日 15:13:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76504371.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定