0 votes
in Azure by
How is Azure App Service different from Azure Functions?

1 Answer

0 votes
by

An Azure function is triggered by an external event or a timer. It then executes the code of the function. When hosted on a consumption plan this execution is allowed to run for 5 or 10 minutes max. When you need a longer execution time you need to run it on an App Service Plan.

An App Service can host any app you've created. Like a website (that runs continuously and doesn't need to be triggered before it starts doing something) or an API for example.

Azure Functions consumption plan you pay per execution

Azure Functions in an App Service (dedicated plan) you pay for the allocated hardware per minute.

So, for the integration scenario azure functions are a very natural fit. For websites an App Service might be the best solution.

Related questions

0 votes
asked Nov 9, 2019 in Azure by rajeshsharma
0 votes
asked May 31, 2023 in Azure by SakshiSharma
...