Does a worker process share its output cache within an AppPool?

前端 未结 2 1415
自闭症患者
自闭症患者 2021-01-23 12:30

Summary:

I have an ASP.NET MVC website in IIS named \'Website\' using an AppPool named \'WebsiteAppPool\'. WebsiteAppPool is configured to allow up to 4

2条回答
  •  伪装坚强ぢ
    2021-01-23 13:23

    There is no relation between the worker processes. They each have their own cache (as it is in-process cache). That said, if you make your application support the web-garden scenario (i.e. not depend on in-process state) it will be more robust and easier to scale up. It will be easier to add another server in the future and create a web-farm.

    You might call YAGNI on that, but I think it is just common sense to create most web-applications in a way that supports scaling up. In your case, I really think it's OK to have 4 different caches, and having a web garden can actually improve your site's performance.

提交回复
热议问题