Azure / azure-functions-dotnet-worker

Azure Functions out-of-process .NET language worker
MIT License
427 stars 182 forks source link

Running full ASP.NET Core Web API in the isolated worker #1375

Open hajekj opened 1 year ago

hajekj commented 1 year ago

With the isolated worker being the preferred (and in future) only option to run Azure Functions with .NET, I think it would make sense to investigate the ability to run full ASP.NET Core in the isolated worker. This could make a lot of APIs easier to migrate to Functions.

A sample which achieves this - https://hajekj-func-aspnetcore.azurewebsites.net/ (source) which uses NL.Serverless.AspNetCore package works quite fine, there are just some setup caveats and the use of multiple projects isn't ideal.

Lambda allows you to run full ASP.NET Core within and the hosting model seems actually quite similar.

Is this something planned or worth looking into?

fabiocav commented 1 year ago

@hajekj this is something we have prototyped in the past and have plans to explore further. I don't have timelines I can share at this point, as the current priorities are the items listed here but will keep this issue open for tracking.

FYI @kshyju