HighTechTalks DotNet Forums  

Data caching with multiple HTTPApplication instances

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Data caching with multiple HTTPApplication instances in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rbg
 
Posts: n/a

Default Data caching with multiple HTTPApplication instances - 12-09-2006 , 12:48 PM






Have a web application which uses Data Cache.
I need to understand what happens when a new instance of the same web
application is created for
for serving concurrent clients.
What happens when the data in the cache expires (either due to
expiration or due to dependency change)
do all instances of the Http Application replace the cached data at the
same time.
Thus what I am essentially asking is, in a single server scenario if
multiple instances
of the same web application are created in the App Domain of the
aspnet_wp.exe
worker process should we be concerned with storing data in the data
cache.

On similar lines when we use application State and use lock and unlock
statements to do thread safe modifications to the data in Application
state, wouldn't other instances of the same HttpApplication allow
modification of the data at the same time. Thus I do not understand how
Application state works if multiple instances of the same Application
are created for serving concurrent clients.

Is it true that aspnet_wp.exe worker process spawns multiple instances
of the same HTTPApplciation?
Also how and when does the aspnet_wp.exe worker process spawn a new
instance of the
HTTPApplication class(a new instance of the same web application)

Also what happens in a Web garden scenario. I do not understand why
Storing data in
the data cache would be affected if it is a web garden where a machine
has multiple processors.


Reply With Quote
  #2  
Old   
Bryan Phillips
 
Posts: n/a

Default Re: Data caching with multiple HTTPApplication instances - 01-14-2007 , 07:21 PM






The basic premise is that AppDomains allow you to divide up an
application's memory.

Reasons for doing this include isolating data and preventing tasks from
taking down the whole process if they have a critical failure.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com



"rbg" <rbg.net (AT) gmail (DOT) com> wrote


Quote:
Have a web application which uses Data Cache.
I need to understand what happens when a new instance of the same web
application is created for
for serving concurrent clients.
What happens when the data in the cache expires (either due to
expiration or due to dependency change)
do all instances of the Http Application replace the cached data at the
same time.
Thus what I am essentially asking is, in a single server scenario if
multiple instances
of the same web application are created in the App Domain of the
aspnet_wp.exe
worker process should we be concerned with storing data in the data
cache.

On similar lines when we use application State and use lock and unlock
statements to do thread safe modifications to the data in Application
state, wouldn't other instances of the same HttpApplication allow
modification of the data at the same time. Thus I do not understand how
Application state works if multiple instances of the same Application
are created for serving concurrent clients.

Is it true that aspnet_wp.exe worker process spawns multiple instances
of the same HTTPApplciation?
Also how and when does the aspnet_wp.exe worker process spawn a new
instance of the
HTTPApplication class(a new instance of the same web application)

Also what happens in a Web garden scenario. I do not understand why
Storing data in
the data cache would be affected if it is a web garden where a machine
has multiple processors.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.