when you create a function nappy natural
you require to choose a hosting plan for your function up,
let's see what the hosting plan is and what choices you have.
Microsoft offers three different costing plans for functions. Consumption plan,
When you create a function app, you required to choose one of those plans, as well as a storage account
that will be used to store the files and triggers for your function up.
Let's look at each individual plan and see how they differ.
The consumption plan is that the four plan that you can choose for the gradual functions
the consumption plans scales out and in automatically. But keep in mind that each execution has a warm a period that may impact the performance of your application.
The benefit of this plan is that you pay only when the function is running.
If your application is used irregularly, this can save you a lot of money because you don't need to pay for infrastructure. When it is not used,
you can coming go more people function naps on the same hosting plan if you are. If they are deporting the same region.
However, be careful with that because if you have many functions that consume resources concurrently, Europe may suffering performance
functions. Running on the consumption plan have Hartley meets for how long they can run
the default time out these five minutes and the maximum you can set istan.
This means that the execution of your coat needs to be complete before the time out expires, which does not allow you to have long running processes.
The consumption plan also does not allow you to vary the size of the execution environment.
You're limited to 1.5 gigabytes of memory in a single CPU core.
If you need more, you need to choose one of the other plans.
As I mentioned earlier, the consumption plan is the most cost effective plan, and you're built their execution and the amount of memory used by your function.
The premium hosting plan is similar to the consumption plan in a sense that it scares automatically to your needs.
However, the premium plan gives you more flexible choices in advanced capabilities.
With the premium plan, for example, you can have perpetual work instances that do not require startup time and improve your application performance.
You have also the option off unlimited execution time
and Severo instance, sizes that you can choose from.
The premium plan also allows you to have virtual network connectivity, which means that the access to your functions is restricted to the virtual network. This increases your security.
Of course, the pricing of the premium plan is different, and it is based on the number of course seconds and the memory Europe functions use.
The dedicated plan is intended for customers who have under utilized instances that are used for other APP service applications like Web apps. For example,
with this plan, you have the option to provide your own images images for your functions.
The dedicated plan requires many or scaling by default, which means that you need to be careful when there is unpredictable demand for your functions.
There is, of course, out of scaling option,
but you need to explicitly configure it.
The pricing of the dedicated plan is the same as for the other upset of ESOPs like Web ups.
One thing that you need to be aware of when using dedicated plan
is that if you plan to deport functions that require other triggers, then the http trigger like for example, Q or scheduled triggers.
You need to turn on the always on feature on the plan.
Else you risk that your triggers do not fire the function.
The default time out for the functions. Deporting the dedicated plan is 30 minutes, and, of course, you can configure them with unlimited time outs.
Let's finish with the visual showing how the hosting plans work
so you can have a single hosting plan that can cause multiple function ups.
Each function up can have multiple functions inside that implementing different functionality
once again, be careful with the resource requirements of each function and make sure that the resource is dedicated to the function up will serve the needs of your functions.
Create a Serverless API using Azure Functions
Azure in a public cloud computing platform. Azure gives users options for serverless computing ...
Learn On Demand
Create an Azure Function App
Gain hands-on experience using the Azure Functions service to create a function app that will ...
Learn On Demand