简体   繁体   中英

Use Web Garden to simulate Web Farm session issues?

I just stumbled across the concept of a "Web Garden" in an IIS App Pool. That is, when more than one process serves the same webpage. From what I understand, this means ASP.NET InProc sessions have the same problems as a web farm.

My question is, assuming your production environment is a web farm but your development/test environment is not, would it be helpful to set up a "Web Garden" in dev/test? I'm thinking this would help catch any multi-process/server issues early on, or at least confirm that everything works as expected.

I have toyed with this idea in the past, it can be helpful, but I would say it still isn't ideal. To get the best test scenario you want to simply be on similar hardware to that of your production site.

Barring that though, Web Gardening will help you with SOME items and issue identification depending on how you need to work with it.

Our biggest issue with it is that we have some items that truly need to know what server they are on, and with gardening, you don't have that distinction at the application level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM