Hi group,
We're developing an application that may be migrated to a web farm in
the future, but we want to be prepared for the move, hence the following
question:
Using the Caching Application Block, how can one machine, when updating
a table in the database, signal it's own, but more importantly, signal
the other machines cache to invalidate the cached database result?
Regards, Felix 1 1379
it depends on how out of date the cache can be. if you can afford a lag,
then a notification of cache invalidation can be sent. you could use udp for
this, a database table you poll, sqlserver notification services. etc.
if no lag is allowed, then you will will have to implement a distributed
lock manager, as you must lock the cache on all servers during updates, and
invalidate after. if you do not understand coding a dlm, (microsoft havesn't
yet for their cluster support), then you probably should abanon the local
cache, and use sqlserver for the cache - it will be faster.
-- bruce (sqlwork.com)
"Felix Planjer" <fe***********@yellowred.nl> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
| Hi group,
|
| We're developing an application that may be migrated to a web farm in
| the future, but we want to be prepared for the move, hence the following
| question:
|
| Using the Caching Application Block, how can one machine, when updating
| a table in the database, signal it's own, but more importantly, signal
| the other machines cache to invalidate the cached database result?
|
| Regards, Felix This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stanley |
last post by:
has anyone managed to use cache application block in a web application?
thanks
stanley
|
by: NWx |
last post by:
Hi,
I' trying to implement a callback method when a cache object expires
I want to do this to automatically logout user after a timeout (for demo
purposes)
My thought is, when user logon,...
|
by: Guadala Harry |
last post by:
AFAIK, when placing an object into the Cache with no special instructions
(no dependencies, sliding expirations, hard expirations, etc), it will just
sit there in the Cache until the system decides...
|
by: MattC |
last post by:
Hi,
I am persisting the viewstate for each page into the Cache object, below is
shown my methods for saving and loading:
I am able to save the viewstate to the cache and most times I can load...
|
by: Fabio R. |
last post by:
I'm developing a web application that needs to support a webfarm scenario so
I've used a filecachedependency on a shared folder (for now, always in my
local machine) to clear cache on all...
|
by: Diffident |
last post by:
Hello All,
I inserted an object into cache with absolute expiration using the following
code:
DateTime AbsoluteExpirationDate = DateRangesForDataLists.AddDays(1);
//Expires the next day...
|
by: sternr |
last post by:
Hey,
(Sorry if the thread has been posted twice!)
I'm using the System.Web.Caching.Cache object in my Win App and
basically, it's great!
I use a sliding expiration TimeStamp to the object I put...
|
by: =?Utf-8?B?d2lsbGlhbQ==?= |
last post by:
Hi,
I want to cache some stable user information on client side for later use
by VB clients, so I implement enterprise library cache application block in
COM+ serviced component which is...
|
by: =?Utf-8?B?c29ubnk=?= |
last post by:
Does the Cache object work in a webfarm with SessionState being?
Is there a better way to store application wide data?
thx...sonny
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |