DEV Community

Discussion on: How YOU can create a Serverless API in C# and .NET

Collapse
 
shaijut profile image
Shaiju T

Nice 😄, In Paas like App Service, no mater your app is used or not you have to pay for hosting. But In Server less the hosting is free and we pay only for consuming the Azure functions. So how can cloud providers provide free hosting for server less ? What they will do if all businesses go server less ? Then How can they make profit ?

Collapse
 
softchris profile image
Chris Noring

Serverless is a very specific model. Pay only for when code actually need to run. Example, some code needs to run all the time, should be on app service.. Some code can run seldom, for example, a new customer signed up. Serverless is more expensive if the code you make serverless runs all the time.. So Serverless is niche case, you should not turn all your code serverless, just code that can run seldom

Collapse
 
shaijut profile image
Shaiju T

Great use case. Now I understand that all code cant be made serverless. Thank you.