Skip to main content

InProcess & OutOfProcess Hosting Model in ASP.NET Core

 

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.

  1. InProcess hosting
  2. 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

Popular posts from this blog

How to perform lazy loading with generic method.

Introduction Let’s develop C# console application to perform lazy loading with generic method.    Getting Started In ASP.NET 5 we can create console applications. To create a new console application, we first open Visual Studio 2015. Create it using File-> New-> Project. Now we will select the ASP.NET 5 Console Application because we will create the console application and click on the OK button. We need to include the following references in our application. using  System;   using  System.Collections.Generic;   using  System.Linq;  In the main method, I have created 2 classes and 1 method EducationProfile<T> – To define class members. Candiate<T> = Initialize lazy loading in the class. CallLazyLoading = call the function Please refer to the code snippet below static   void  Main( string [] args)   {        try ...

How to perform Insert/Update/Delete operation in Generic Collections in C#

Getting Started In ASP.NET 5 we can create console applications. To create a new console application, we first open Visual Studio 2015. Create it using File-> New-> Project. Now we will select the ASP.NET 5 Console Application because we will create the console application and click on the OK button. we need to include the following references in our application. using System; using System.Collections.Generic; Insert, Update, Delete, Get perform in List collection. public static void DML_List() { // Creating a List of integers IList<int> list = new List<int>(); // Printing the insert opeartion Console.WriteLine("INSERT"); // Adding elements in list collection list.Add(100); list.Add(200); list.Add(300); list.Add(400); list.Add(400); // Printing the element from list collection foreach (object x in list) { Console.WriteLine("Result : " + x); } Console.WriteLine("\n"); // Printing th...