yanis
yanis

Reputation: 333

Azure function app billing, cost and performance depending on the number of functions

I see Azure functions are billed based on (https://azure.microsoft.com/en-us/pricing/details/functions/) :

And they are scalable in terms of real-time load.

Would there be any performance, cost or benefit/difference in the following two scenarios:

In other words will the distributed balanced load over multiple azure function will increase/decrease the cost/performance of this service? Based on the documentation above I cannot see any potential difference.

Upvotes: 1

Views: 924

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

Reputation: 35124

I assume we are talking HTTP Functions on Consumption Plan.

In theory, the results should be the same.

In practice, you might spot some difference:

  • N Function Apps will probably lead to more cold starts (when a new instance is brought to life), especially for low load

  • A single Function App is reported to perform below expectations for some HTTP scenarios (see e.g. this post: part 1, part 2). External load balancer might mitigate some of those issues, or it might not

The official recommendation would probably be to use just one App and rely on the runtime to solve your scaling problems. Multiple Apps are obviously bringing some management overhead.

In the short term, you need to run a test of your workloads and evaluate yourself if they are on satisfactory level.

Performance directly translates into price. You don't pay extra for running multiple Apps on Consumption Plan.

Upvotes: 2

Related Questions