简体   繁体   中英

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. Every time it is triggered, it reads a batch of messages from a Service Bus queue and processes them. It runs on App service plan which scales on the active messages in the queue. 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?

No, Timer triggers are singletons. That means that at any given moment only one instance will be firing Function calls on timer.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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