468,120 Members | 1,896 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,120 developers. It's quick & easy.

iis 6.0 worker processes & cache object

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!
Nov 19 '05 #1
6 1550
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com...
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:
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!

Nov 19 '05 #2
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com.. .
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:
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!


Nov 19 '05 #3
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!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:v1********************************@4ax.com...
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com. ..
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:

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!

Nov 19 '05 #4
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 5 Dec 2004 10:25:35 -0600, "Param R." <pr@nospam.com> wrote:
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!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:v1********************************@4ax.com.. .
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Dec 2004 11:20:11 -0600, "Param R." <pr@nospam.com> wrote:
You mean each Worker Process that services that application?

thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:4q********************************@4ax.com ...
Yes, Param. Each application has an Application and Cache object and
they will not share them.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 2 Dec 2004 18:03:21 -0600, "Param R." <pr@nospam.com> wrote:

>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!
>


Nov 19 '05 #5
I have a little article with an overview now too:
http://odetocode.com/Articles/305.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 05 Dec 2004 13:48:57 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:
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.


Nov 19 '05 #6
Great article. thanks!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:6p********************************@4ax.com...
I have a little article with an overview now too:
http://odetocode.com/Articles/305.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 05 Dec 2004 13:48:57 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:
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.

Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rusty Shackleford | last post: by
1 post views Thread by Diffident | last post: by
5 posts views Thread by msuk | last post: by
reply views Thread by Diffident | last post: by
16 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.