iis 6.0 worker processes & cache object

P

Param R.

Hi all, lets assume my application is running under an app pool that has 2
worker processes servicing requests. Will the Application & Cache objects be
the same & concurrent amongst all requests? i.e. does each worker process
have its own copy of Application & Cache or do they both share them?


thanks!
 
S

Scott Allen

Yes, Param. Each application has an Application and Cache object and
they will not share them.
 
S

Scott Allen

Inside each worker process is an application domain, appdomain for
short. In .NET the appdomain is the unit of isolation. You can't share
object's across an appdomain without doing some work. The appdomain is
a boundary.

Each ASP.NET application runs in a seperate appdomain. Each ASP.NET
application will have it's own Cache, it's own Application collection.
They won't cross appdomain boundaries. They are isolated.
 
P

Param R.

I guess that answers my question. So if I configure an application to have 2
WPs. Each WP will have 1 appdomain which will have its own copy of Cache,
Application objects etc. So if 1 request gets serviced by WP1 & changes an
application object, this will not be reflected when another request gets
services by WP2. Is that correct?

thanks!
 
S

Scott Allen

That is correct.

There can also be two appdomains inside of a single worker process,
and again they will not be changing each other's application objects.
The appdomain is the boundary, not the process.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top