As.Net core

Updated : Mar 15, 2020 in Articles

What is the Difference between Inprocess and OutOfprocess service in core

In this article, we will learn about what is the Difference between Inprocess and outOfprocess service in core 2.2 step by step

An core Applications can be hosted into

  • InProcess
  • OutofProcess core InProcess Hosting:

Under default the hosting model for your core applications is InProcess

Inprocess and OutOfprocess service in core

This means ASP.NET Core Module forwards the requests to IIS HTTP Server. The IIS HTTP Server is a server that runs in-process with IIS

Inprocess service in core

with InProcess hosting application is hosted inside the IIS worker process This response is better performance as compared to the OutOfProcess model.

In-process models bypass the built-in Kestrel web server of ASP.NET Core. core OutOfProcess Hosting:

If you want to use the OutOfProcess hosting model in your core Application then IIS HTTP Server won’t be used. in the OutOfProcess Hosting, Kestrel web server is used to process your requests.

The Kestrel is an open-source and cross-platform web server for the ASP.NET Core application. That means this Server supports all the platforms like Windows, Linux,macOS

kestrel can be used, by itself as an edge server and the process used to host the app is dotnet.exe

This means ASP.NET Core Module forwards the requests to Kestrel webserver compare to inprocess model outofprocess model in slower performance

OutOfprocess service in core

kestrel can be used in combination with a reverse proxy with two web server see the following given image

OutOfprocess service in core core applications are run without kestrel web severer also by default InProcess hosting model will work out of kestrel web server it will use IIS web server like w3wp.exe or iisexpress.exe

Difference between in-process and out-process

the request/responds process through is w3wp.exe or iisexpress.exethe request/responds process through dotnet.exe
It is using Single web serverit is using two webservers
great performancemany proxying requests between internal and external web servers

Introduction about Core 2.2

Latest posts by DuttaluruVijayakumar (see all)
Like Love Haha Wow Sad Angry

Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
December 2, 2021 6:31 pm

Nice article

Would love your thoughts, please comment.x