liveBook · Manning

In-process hosting model

As explained in ASP.NET Core in Action, 3e

An in-process hosting model runs an ASP.NET Core application directly inside the IIS process.

An in-process hosting model runs an ASP.NET Core application directly inside the IIS process. IIS therefore avoids interprocess communication, which can improve performance. section 27.2.2 section 27.5

Use these deployment rules when hosting ASP.NET Core with IIS:

  • UseIIS() configures in-process hosting; UseIISIntegration() configures out-of-process hosting. section 27.2.2
  • WebApplicationBuilder adds the required IIS integration automatically, so default applications usually need no extra configuration. section 27.2.2 section 27.5
  • Choose out-of-process hosting when separate-process behavior is useful for troubleshooting; otherwise, the hosting-model difference usually needs little attention. section 27.2.2

Custom application builder

If an application uses a custom HostBuilder instead of WebApplicationBuilder, call both UseIIS() and UseIISIntegration() as required so IIS can forward requests correctly. With the default builder, these calls are already made automatically. section 27.2.2 section 27.5

How ASP.NET Core in Action, 3e covers it

How deep it goes
Defines the process boundary, contrasts out-of-process hosting, and names configuration methods without detailing IIS internals.
Examples
Uses UseIIS(), UseIISIntegration(), WebApplicationBuilder, and custom HostBuilder configuration as deployment examples.
What it assumes
Assumes familiarity with ASP.NET Core deployment and IIS, while explaining the process distinction and default integration behavior.
What you can do after
Configure IIS hosting correctly when using a custom application builder and distinguish in-process from out-of-process deployment.
How it connects
Connects IIS, ASP.NET Core Module, WebApplicationBuilder, HostBuilder, and out-of-process hosting.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.