InProcess &
OutOfProcess Hosting Model in ASP.NET Core
We are discussing
about hosting in asp.net core and there are two types of hosting available on
Asp.net core.
- InProcess hosting
- OutofProcess hosting
InProcess Hosting
When you create new
application with empty template and run the application then default hosting
model (InProcess hosting) launch your asp.net core applications.
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 and InProcess hosting
application is hosted inside the IIS worker process.
OutOfProcess Hosting
In OutOfProcess
hosting model then use internal and external hosting model.
There are use two type
of web server:
1.Internal Web Server
2.External Web Server
1.Internal Web Server
the Kestrel web server
is the internet-facing web server as all the HTTP requests are directly
processed by it. and Kestrel is an open-source and cross-platform web server.
That means this Server supports all the platforms like Windows, Linux, macOS
2.External Web Server
A Reverse proxy server
which can be either IIS, Apache, etc. is used along with Kestrel web Server. A
reverse Proxy server provides additional security as well as configurations
that are not available in Kestrel Server. It also provides load balancing
functionality.
There is
difference between InProcess and OutOfProcess
InProcess |
OutOfProcess |
The request/responds
process through is w3wp.exe or iisexpress.exe |
The
request/responds process through dotnet.exe |
It is
using Single web server |
It is
using two webservers |
Great
performance |
Many
proxying requests between internal and external web servers |
Comments
Post a Comment