I have implemented caching in my application via Cache.Insert method. Objects are inserted with a key in to memory and are cleared on update or insert cmds.
The problem arrises with clustered hosting. If a website is clustered, then there are many IIS process. This means data in cache does not sync with each process.
I am at a loss and would like some ideas how I can over come this.
Currently caching is done in my BLL. My DAL is done using Linq.
I had thought of SQL Cache Dependancy, however the only way I could see this working would be at table level because I would need to create the SqlDependency object in my BLL.
Can anyone help with a solution to this?
A possible solution would be to move my caching to my DAL. this way I could get individual cmds at row level instead of table level?
The problem arrises with clustered hosting. If a website is clustered, then there are many IIS process. This means data in cache does not sync with each process.
I am at a loss and would like some ideas how I can over come this.
Currently caching is done in my BLL. My DAL is done using Linq.
I had thought of SQL Cache Dependancy, however the only way I could see this working would be at table level because I would need to create the SqlDependency object in my BLL.
Can anyone help with a solution to this?
A possible solution would be to move my caching to my DAL. this way I could get individual cmds at row level instead of table level?