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

前端 未结 2 1417
自闭症患者
自闭症患者 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:21

    From MSDN:

    Because Web gardens enable the use of multiple processes, each process will have its own copy of application state, in-process session state, caches, and static data. Web gardens should not be used for all applications, especially if they need to maintain state. Be sure to benchmark the performance of the application before deciding whether Web garden mode is appropriate.

    When using a Web garden, it is important to understand how session state and round robin works. It is also important to consider of how other application pool settings affect the application

    Web gardens are especially screwy if you're doing in-process session state (which you hopefully aren't anyway). In my experience, I find that web gardens are rarely the benefit that people think they are.

提交回复
热议问题