Why nopCommerce 4.30 moved to In-process hosting model for AspNetCoreHostingModel?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 anos atrás
Found that v4.30 moved to In-process hosting model for AspNetCoreHostingModel. Is there any specific reason or facility over out-of-process hosting model.


Previously in nopCommerce 4.20 used Out-of-process hosting model for AspNetCoreHostingModel. Although, it was not specified in nopCommerce 4.20. And in ASP.Net Core 2.2 the default value was out-of-process hosting model.
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2


In ASP.NET Core 3.1 the default value is in-process hosting model.
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1


The following characteristics apply when hosting in-process:
•  The requestTimeout attribute doesn't apply to in-process hosting.
•  Sharing an app pool among apps isn't supported. Use one app pool per app.
As nopCommerce 4.30 used In-process hosting model. Now, IIS HTTP Server (IISHttpServer) is used instead of Kestrel server. This leads to not recycle the worker process but instead triggers a graceful shutdown of the current IIS Express process. The next request to the app spawns a new IIS Express process. Which also leads to close IIS Express while restarting application from admin side.
Full information: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#in-process-hosting-model
3 anos atrás
For performance.

Having each app on its own app pool is good practice anyway.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.