Mayank
Mayank

Reputation: 968

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?

Upvotes: 2

Views: 742

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

Reputation: 35154

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.

Upvotes: 6

Related Questions