Monday, January 16, 2012

ASP.NET-IIS Life cycle

The process name is "WebDev.WebServer.Exe" which actually takes care of all request and response of an web application which is running from Visual Studio IDE.

Worker Process: 
Worker Process (w3wp.exe) runs the ASP.Net application in IIS. This process is responsible to manage all the request and response that are coming from client system. 

Application Pool: 
Application pool is the container of worker process.  Application pools is used to separate sets of IIS worker processes that share the same configuration.
The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected.

Web Garden:
Application Pool with multiple worker process is called Web Garden

When client request for some information from a web server, request first reaches to HTTP.SYS of IIS.
HTTP.SYS then send the request to respective  Application Pool.
Application Pool then forward the request to worker process to load the ISAPI Extension which will create an HTTPRuntime Object to Process the request via HTTPModule and HTTPHanlder.
After that the ASP.NET Page LifeCycle events starts.


No comments: