HighTechTalks DotNet Forums  

Application Caching In A Web Farm

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Application Caching In A Web Farm in the ASP.net Caching forum.



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

Default Application Caching In A Web Farm - 02-04-2006 , 09:59 PM






I was curious if there were any suugestions on caching shared application
data in a web farm using .NET 1.1. We are using SQL Server for session state
managemnet and the June 2005 EL for user data caching.

The idea here is to have a shared application cache generated from the first
user action that is shared with other versus calling the database. The big
issue here is once a cache is established I need a mechanism to distribute
these cache to the other web servers within the web farm. The same
distribution concept will apply if another user process a tranaction. In
other word I have a web form that any number of user may access and as each
user process a tranaction I need to update this application cache and in turn
distrubute this updated cache to the other servers in the web farm.

I am open to any ideas on the subject and I have looked at the following as
a possible solution.

http://msdn.microsoft.com/msdnmag/is...7/CuttingEdge/

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: Application Caching In A Web Farm - 02-05-2006 , 04:33 AM






Hi Steven,

Thanks for posting!

For the current issue, as the article from the MSDN Magazine mentioned, the
core concept is customizing the cache's dependency. Below is an
implementation of synchronizing the ASP.NET cache across AppDomains and Web
Farms:
http://www.eggheadcafe.com/articles/20030420.asp

The article is written by the Peter A. Bromberg (MVP). It demonstrates how
to implement sharing the cache between Web Farms. I hope this will be
helpful. If you have any issues or concerns, please let me know. It's my
pleasure to be of assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support


Reply With Quote
  #3  
Old   
Steven
 
Posts: n/a

Default RE: Application Caching In A Web Farm - 02-05-2006 , 12:36 PM



Thanks so much, I will give this a look and attempt to implement it in our lab.

""Yuan Ren[MSFT]"" wrote:

Quote:
Hi Steven,

Thanks for posting!

For the current issue, as the article from the MSDN Magazine mentioned, the
core concept is customizing the cache's dependency. Below is an
implementation of synchronizing the ASP.NET cache across AppDomains and Web
Farms:
http://www.eggheadcafe.com/articles/20030420.asp

The article is written by the Peter A. Bromberg (MVP). It demonstrates how
to implement sharing the cache between Web Farms. I hope this will be
helpful. If you have any issues or concerns, please let me know. It's my
pleasure to be of assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support



Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default RE: Application Caching In A Web Farm - 02-05-2006 , 08:44 PM



Hi Steven,

You are welcome

Yuan Ren [MSFT]
Microsoft Online Support


Reply With Quote
  #5  
Old   
Alvin Bruney - ASP.NET MVP
 
Posts: n/a

Default Re: Application Caching In A Web Farm - 02-27-2006 , 09:41 AM



The issue with growing your own caching strategy as opposed to using the
database is that you will have to push the results across to all the
servers. During the push, the other servers will remain in an out-of-sync
state. It means you will have to account for this latency in code to
guarantee accuracy of your application. A home grown strategy is not
trivial.

If you must, you can use a windows service that propagates the changes to
each server remotely.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



"Steven" <StevenSw (AT) community (DOT) nospam> wrote

Quote:
I was curious if there were any suugestions on caching shared application
data in a web farm using .NET 1.1. We are using SQL Server for session
state
managemnet and the June 2005 EL for user data caching.

The idea here is to have a shared application cache generated from the
first
user action that is shared with other versus calling the database. The big
issue here is once a cache is established I need a mechanism to distribute
these cache to the other web servers within the web farm. The same
distribution concept will apply if another user process a tranaction. In
other word I have a web form that any number of user may access and as
each
user process a tranaction I need to update this application cache and in
turn
distrubute this updated cache to the other servers in the web farm.

I am open to any ideas on the subject and I have looked at the following
as
a possible solution.

http://msdn.microsoft.com/msdnmag/is...7/CuttingEdge/



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 - 2008, Jelsoft Enterprises Ltd.