4

Does .NET 6 allow multiple apps to run in a single app pool?

.NET Core did not, but I'm not finding anywhere that specifies if .NET 6 allows this?

Guru Stron
  • 102,774
  • 10
  • 95
  • 132
David Mays
  • 466
  • 4
  • 14
  • Nothing has changed [Hosting multiple .net core using the same application pool with AspNetCoreModuleV2](https://stackoverflow.com/questions/58635664/hosting-multiple-net-core-using-the-same-application-pool-with-aspnetcoremodule) – Lex Li Jun 15 '22 at 22:04

1 Answers1

4

.NET 6 is current LTS version of .NET Core (link1, link2) and nothing has changed in terms of app pools for in-process hosting of ASP.NET Core in the 6th version:

  • Sharing an app pool among apps isn't supported. Use one app pool per app.
Guru Stron
  • 102,774
  • 10
  • 95
  • 132
  • 2
    But if out-of-process hosting is used, then multiple apps can run in a single pool since .NET Core 1.0. – Lex Li Jun 15 '22 at 21:58
  • 1
    @LexLi yes. But based on _".NET Core did not,"_ from OP it is safe to assume that in-process is used. – Guru Stron Jun 15 '22 at 22:00
  • OP here. I actually don't understand when to or not to choose in-process hosting. Any advice or things to steer away from? – David Mays Jun 16 '22 at 01:24
  • 2
    You can refer to this link about In-process hosting with IIS and ASP.NET Core: [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) and [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). – samwu Jun 16 '22 at 02:22