question

NagaRajeshKotaprolu-6744 avatar image
1 Vote"
NagaRajeshKotaprolu-6744 asked EklavyaGupta-6695 commented

Is Azure function with http triggers a replacement for the web api with Azure APP service?

Hi Team:

I am aware that Azure function supports http triggers. Does this mean we can build full fledged apis with azure functions instead of using .net core API with APP service? Basically we have already developed around 20 APIS using .net core web API and we would like to deploy them in Azure. I see that we can deploy to Azure APP service? But Azure function also supports http trigger so which one we should use APP service/ Azure function? Currently we have containerized and deployed to Azure VM. But we would like to go for Azure PAAS offering for better scalability and maintenance.

Basically, When should we go for Azure Functions with http trigger? and when should we go for the Azure APP service with respective web API development? Could you please clarify? what is the Microsoft recommendation?

Thanks
Rajesh

azure-functionsazure-webapps-apis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ryanchill avatar image
0 Votes"
ryanchill answered EklavyaGupta-6695 commented

Hi @NagaRajeshKotaprolu-6744,

There isn't a best practices doc available that lists pros and cons of using Azure Functions vs App Services.

Having said that it really depends on your REST API and your goals and objectives. I would suggest reviewing performance considerations to ensure that you won't encounter any limitations. I would also consider reviewing open issues to see what others have been running into.

If you don't see stumbling blocks, then in my opinion, I would try transitioning a resource at a time. While it's possible to create REST APIs using Azure Functions, you may discover it doesn't fit very well in your existing workflow/codebase. On the other hand, you may discover it's a perfect candidate and a easy transition. There is no wrong answer but if you happen to run into issues, feel free to post your question here on Q&A or on the Azure Function repo.

Regards,
Ryan


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is not the type of answer we expect from Microsoft. There should be detailed guidelines on capabilities and pitfalls for both the options and also what UseCase they support. I am sorry but this answer is not up to the Microsoft standard.

1 Vote 1 ·
mdarefull avatar image
0 Votes"
mdarefull answered mdarefull edited

This is a pretty complete guide to choose a computing service, it includes Azure Functions.
https://docs.microsoft.com/en-us/azure/architecture/guide/technology-choices/compute-decision-tree

I've been following a microservice architecture with Azure Functions in my projects for over a year now, and I haven't found any major blocker.

Probably the biggest issue is the delays when keeping up with .NET versions. Ex.: .NET 5 won't be supported out-of-the-box and support for .NET 6 probably won't arrive right after release... meaning you cannot use the latest features of your dependencies like Entity Framework, etc.

Outside APIs, they are definitely a great approach to reduce complexity when integrating with other systems.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AshwinTangellapalli-2045 avatar image
0 Votes"
AshwinTangellapalli-2045 answered

Hi,

In addition to what has been provided above, you might find this comparison helpful to choose
https://docs.microsoft.com/en-us/azure/azure-functions/functions-compare-logic-apps-ms-flow-webjobs#comparison-table

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.