Cache, Session, ViewState and Application



My question is to do with scalability and the location for storate of cache,
session, viewstate and application data.

Application - Data is stored in memory (in process)
Session - Data is stored in memory (in process or out of process)
- can be configured to store the session data in sql server (which relates
to my question)
ViewState - Page (but can be modified to overwrite the storage mechanism to
store viewstate else where, esp Sesssion)
Cache - Data is stored in memory (in process)


Considering the above (if i'm not wrong), storing data in session state in
web farms with the session data stored in sql server is the best and right
option.
So that if the first request is processed by computer A, and some data is
set in the session, then if the next request by the same user is processed
by computer b the session info will be available (as its stored in sql
server).

What about if information is stored in the cache???
I.e. if in the first request the page stores some info in the cache
(computer A), and the next request is processed by computer B, then WOULD
the cache information be available????

Where is the cache data stored??
In process or out of process??
Can this storage location be configured?


.



Relevant Pages

  • Re: ViewState, Application, Session....
    ... viewstate and as a part of Request pipeline the framework initializes the ... Session: Session is a storage area that is specific to one user. ... there are times when session provides a good way to store user specific ... Application or Cache: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to store a datatable temporarily
    ... Cache - Application caching ... If you are paging small amounts of data, you can either pull it each trip or cache in ViewState. ... Once you start getting more data, you will want to use Cache or Session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to design an ASP.NET app
    ... The word "Cache" is a generic term for any memory storage device, ... There is also Session State. ... Cookies cannot store a very large ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: How and why to save ViewState in a session object
    ... Thank you for your response. ... View State can be customized to be stored in a Session or Cache object. ... Cache.Add(_vskey, viewState, null, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: How and why to save ViewState in a session object
    ... Cache is a more efficient way of persisting data on the server side. ... of the items that are stored in the cache (which will not happen when session ... Cache.Add(_vskey, viewState, null, ...
    (microsoft.public.dotnet.framework.aspnet)