Serverless deployment – Azure Functions
Azure Functions is a serverless offering from Azure. This does not mean that there is no server running the code. What this means is that the concept of the underlying server is completely abstracted away from the application developer. The code might run on Server A on the first request, Server B the second time, and on both of them when there is enough request load.
There are tremendous benefits to this approach, some of which are listed in the next section.
Benefits of using Azure Functions
Azure Functions could be a good choice in the following scenarios:
- By default, Azure Functions run on a consumption plan. Hence, you only pay for the time when the request is actually executed. If your application mostly remains idle, you'd be paying a small fraction of the cost compared to Azure App Service.
- Azure Functions has built-in support that can be triggered in response to events such as when a new message arrives...