What kind of hosting it is if we run Kestrel as public facing web server.

ASR 671 Reputation points
2022-09-02T08:12:20.873+00:00

I created an ASP.NET Core MVC application and run it via the command line. This machine doesn't have an IIS. So kestrel is my public-facing web server.

Just wonder if will it come under "In Process", I believe not, because no w3wp process is involved.

Will it come under "Out Of Process"? Maybe because it is outside the w3wp process. But there is no proxy server involved as described in Microsoft documentation.

Could someone please confirm if is it Out Of Process or something else?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,194 questions
0 comments No comments
{count} votes

Accepted answer
  1. SurferOnWww 1,916 Reputation points
    2022-09-03T00:31:14.983+00:00

    The word "process" used in the "In Process" and "Out Of Process" hoisting models denotes the IIS worker process (w3wp.exe). In both models, the IIS works as a reverse proxy.

    In-process hosting

    237444-in.jpg

    Out-of-process hosting

    237462-out.jpg

    For details please refer to the following documents:

    In-process hosting with IIS and ASP.NET Core
    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/in-process-hosting?view=aspnetcore-6.0

    Out-of-process hosting with IIS and ASP.NET Core
    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/out-of-process-hosting?view=aspnetcore-6.0

    As for the hosting not using the IIS please refer to the section "Kestrel" in the following document:

    Web server implementations in ASP.NET Core
    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/?view=aspnetcore-6.0&tabs=windows


1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,846 Reputation points
    2022-09-02T15:03:06.98+00:00

    it’s neither. Those are IIS hosting terms. In process means the IIS process loads and runs the app. Out of process means IIS starts the app as its own process and reverse proxy to it.

    If you are going to run the app without IIS, you need to decide how to start it. Maybe as a service.