Re: cache/session/application, do these share memory?
- From: Hans Kesting <news.hansdk@xxxxxxxxxxxxxxx>
- Date: Tue, 25 Nov 2008 16:28:33 +0100
codefragment@xxxxxxxxxxxxxx brought next idea :
Hi
I understand there are different places to store session info. I'm
only concerned with inproc.
(1) Do the cache, session and application objects store their
information in the same place? I gather theres a limit of 60% of
physical memory that can be used before recycling but is that shared
between them?
In my head you have to keep session info. Cache info (which is
something I've never really played with) is info
that can be thrown away as you can regenerate it, so it doesn't make
sense to me that the application could restart and session discarded
because of excessive cache use.
(2) Any good articles out there on architectural patterns for large
scale/web farmed scenarios. What I'm ideally after is something that
discusses how the session/application/cache objects should be used in
practice. Saying, "use these minimally" doesn't help me a lot.
(3) Last thing, can you use the static keyword in asp.net? I thought
you couldn't and was surprised to see its use advocated over the
application object, not that i'm sure how either would be used for a
web farm.
thanks for any help
Session could use SqlServer or a StateServer (which can be used in a garden/farm scenario), Cache and Application use only server memory.
There is a difference:
Session is user-specific.
Cache and Application are application-wide.
Cache can throw out objects that are used infrequently (when memory gets low) or based on other criteria, Application can not.
You *can* use static variables in an asp.net application, but the values are application-wide, so do not store user-specific data in a static variable.
Hans Kesting
.
- Follow-Ups:
- Re: cache/session/application, do these share memory?
- From: codefragment@xxxxxxxxxxxxxx
- Re: cache/session/application, do these share memory?
- References:
- cache/session/application, do these share memory?
- From: codefragment@xxxxxxxxxxxxxx
- cache/session/application, do these share memory?
- Prev by Date: Re: How show a master page reference an image file?
- Next by Date: URL Problems
- Previous by thread: cache/session/application, do these share memory?
- Next by thread: Re: cache/session/application, do these share memory?
- Index(es):
Relevant Pages
|