.net – Selective Cache clearing across load balanced servers (ASP.Net)

Architectureasp.netcachingload balancingnet

We have a website that runs on two load balanced servers. We use the ASP.Net caching to help improve performance by caching high usage data. BUT, occasionally that data changes. When it does, we need to clear the relevant cache items on BOTH the load balanced servers. Does anyone have some easy to implement suggestions for how this can be done?

I know that there is software out there to manage this for you (Microsoft Velocity for one). I also know that there are other options for having separate state servers etc. However, for what we want they all seem like overkill. Just a simple mechanism for clearing out specific cache items across servers is all we need for now.

Thanks for any suggestions.

Best Answer

Why not define a Cache Dependancy on an object both servers can see? You could use a SQL or File cache dependancy.

Link to Caching Msdn Page

Related Topic