Difference .net 6 and .net 6 isolated for Azure Function Apps

10.8k Views Asked by At

With Azure functions what is the difference of using .net 6 and .net 6 isolated?

2

There are 2 best solutions below

1
On BEST ANSWER

1st Major term between them is .NET 6 belongs to In Process and Isolated belongs to Out-of-Process runtime of the Azure Functions.

Azure Functions .NET Isolated Process official documentation provides you the context on why to use Isolated and benefits of it over In-Process Runtime Languages like .NET 6.

Few Points on .NET 6 vs .NET 6 Isolated on Azure Functions:

  1. Tight coupling between the host process and the .NET Function in In-Process runtime because .NET Class libraries share binding APIs & types.

  2. Isolated .NET Function Project is an console app that gives you access to the star-up of the function app.

Another Microsoft Doc providing the details on functional & behavioral differences wise for running the functions on out-of-process and in-process.

0
On

From my point of view the main differences are:

Feature In-process Isolated process
Development packages Microsoft.NET.Sdk.Functions (developed since 2017) Newer, improved Microsoft.Azure.Functions.Worker (developed since 2021)
Middleware Not supported Supported
Cold start time Regular Just In Time (JIT) latency JIT + additionally process launch

More details on about differences between in-process and isolate worker process .NET Azure Functions you can find in documentation.