Last post Mar 05, 2020 04:35 PM by bruce (sqlwork.com)
Mar 05, 2020 12:35 PM|dbqasp|LINK
I am new to Azure. Yesterday I watched a video on Azure Function (Http Trigger) and really liked it.
So what I understood is that Azure Functions only run when requested and so pricing wise they will be cheaper than a Web Api.
But is cost the only factor when choosing Azure function over Web Api?
Can you please give me few scenarios other than pricing model, when we would choose one over another.
Mar 05, 2020 01:38 PM|DA924|LINK
Azure is a hosting platform. WebAPI is a restful Web service project that can be implement in a .NET solution. I don't see how you are making this comparison between them.
Mar 05, 2020 04:35 PM|bruce (sqlwork.com)|LINK
Azure functions or AWS lambdas are known as server-less functions. They are the cheapest and simplest deployment units.
They have a couple of downsides.
the capabilities are always changing. Most vendors have converted server-less functions to be docker images under the covers. this makes building complex functions easier.
note: as most cloud vendors support using cloud storage to host static content (no web server required), progressive apps can be built and deployed without any web servers. this is a growing trend.