Are applications hosted in an App Service / Web App considered serverless?

BrownMi 21 Reputation points
2022-09-26T21:20:26.98+00:00

Sorry for the dumb question. But if I have a requirement to build a "serverless" system in Azure consisting of an Blazor Server app deployed to an App Service, is that considered serverless, despite the application being a Blazor Server app?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,415 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,997 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 54,746 Reputation points
    2022-09-26T21:24:27.16+00:00

    Hi @BrownMi

    From a similar topic at https://learn.microsoft.com/en-us/answers/questions/122589/is-app-service-serverless.html (answered by LeonLaude)

    As far as I know Azure App Service is not serverless, but you can leverage it on serverless by using Azure Function, also if you check the Azure App Service plans, each plan defines the region, number of VM instances etc...

    For more information, see:

    App Service overview
    https://learn.microsoft.com/en-us/azure/app-service/overview

    Azure App Service plan overview
    https://learn.microsoft.com/en-us/azure/app-service/overview-hosting-plans

    Hopefully this helps.

    ----------------------------

    If this is helpful please accept answer.

    0 comments No comments

  2. Bruce (SqlWork.com) 57,646 Reputation points
    2022-09-26T22:23:08.053+00:00

    NO, a blazor server app is by no means serverless. its the complete opposite. connections are persistent, reconnect requires server affinity, every connection maintains client state in server memeory. the blazor sever app also requires signal/r support on the server. A Blazor server app is heavy on CPU, Memory and bandwidth. Scaling also requires scale out. if hosting azure, you should use azure signal/r to support load balancing.

    but a Blazor WASM with azure function webapi is a server less solution. use static web app hosting:

    https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-blazor

    0 comments No comments