views:

422

answers:

2

I have an ASP.NET application that makes extensive use of ASP.NET cache API for caching commonly-used data. In addition, I am using polling-based sql cache dependency to track expiration.

The drawback of the current design is that, in the web farm environment, each web server has its own data cache that is not shared across servers.

Is there a way I can simply migrate the code to share data cache across multiple servers?

I've thought of using memcached however that would not work with sql cache dependency, right?

Any other solutions?

A: 

Hi,

You could use following options -

  1. Use the approach described here for synchronizing the data across web farms - http://www.eggheadcafe.com/articles/20030420.asp

  2. Use distributed caching approach

  3. Use enterprise library cache.

Prashant
+2  A: 

Have you looked at Windows Server AppFabric (Formerly Velocity).

http://blogs.msdn.com/velocity/

Cheers,

Phil.

Plip