简体   繁体   English

时间触发的Azure功能是否会随着App服务计划实例的增加而扩展?

[英]Does the Time triggered Azure function scale as the increase in the instances of the App service plan?

I have an Azure function that is triggered every 1 second. 我有一个Azure函数,每1秒钟触发一次。 Every time it is triggered, it reads a batch of messages from a Service Bus queue and processes them. 每次触发时,它都会从Service Bus队列中读取一批消息并进行处理。 It runs on App service plan which scales on the active messages in the queue. 它基于App服务计划运行,该计划可根据队列中的活动消息进行扩展。 However as the service plan scales out I do not see any increase in the throughput of the function. 但是,随着服务计划的扩展,我看不到该功能的吞吐量有任何增加。

Does the Time triggered Azure function scale as the increase in the instances of the App service plan? 时间触发的Azure功能是否会随着App服务计划实例的增加而扩展?

No, Timer triggers are singletons. 不,计时器触发器为单例。 That means that at any given moment only one instance will be firing Function calls on timer. 这意味着在任何给定时刻,只有一个实例将触发计时器上的Function调用。

Obviously, different Functions have independent invocations. 显然,不同的功能具有独立的调用。

To scale processing of Service Bus messages you should use Service Bus Trigger directly, which can manage scaling for you. 要缩放Service Bus消息的处理,您应该直接使用Service Bus Trigger,它可以为您管理缩放。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM