What is web garden in Asp.net?

What is web garden in Asp.net?

Is it asked in asp.net interview? To answer it make sure you know it. The first thing that you need to know is Application pool in IIS and worker process. Below is short description about web garden in IIS.

When you create application pool in IIS, it has only one worker process by default to serve the request. Once you add multiple worker process to any asp.net application pool it becomes web garden. when you assign such a application pool containing multiple worker process to website. Your web gets served by webgarden.

Steps to make web garden working for your web application:

  1. You need to mark classes as Serializable because objects needs to cross the boundaries of worker process.
  2. Store session in MS SQL Server or use State server.

If you don’t keep the session out of worker process, there are chances to get request server by other process where session of user doesn’t exist. It’s hard for you to know the reason why session gets expired before the expiration time set in web.config.

Read more

Asp.net process model.

Session objects expired on production machine

This is something you must know whether you are preparing for interview or making high performance asp.net.

To develop high performance asp.net application follow below link.
Know more about asynchronous asp.net pages and it’s benefit.

 Asynchronous asp.net pages

asp net image uploadhttpwebrequest web proxyMembership ProviderAsp.net Interview Questions for 2 years or 3 years experianceASp.net 2.0 step by step Membership Provider Asp.net WebSite PerformanceAndroid WebView ExampleHttpWebRequest Post methodHow to use HttpWebRequest and HttpWebResponse.live web trafficSession Loss In Webgarden

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.