StroageCache vs Cache service

May 9, 2009 at 10:55 PM

Hi,

What the advantage of using WCF Cache Service on the StrorageCache or UserPermissionCache? (I am using NetSqlAzMan in my ASP.NET application)

Thanks for a great framework!

Yochai Zvik.

 

 

 

May 10, 2009 at 8:31 AM
Edited May 10, 2009 at 8:33 AM
Hi Yochai,
these are the main features and differences:
UserPermissionCache:
- Cache on the client (IIS for web applications)
- Cache 1 application only for 1 user only (Windows or DB User)
- Client application should maintain UserPermissionCache in Session
StorageCache:
- Cache on the client (IIS for web applications)
- Could cache the entire Storage (all applications of all stores) for all users (Windows or DB User)
- Client application should maintain StorageCache in Session
WCF Cache Service (StorageCache):
- server-side Cache (dedicated server or Web Server or where you want) exposed through Http/Net.Tcp protocols
- the client should not store anything ! (all is manteined by the WCF Cache Service)
Generally, for web applications, I prefer WCF Cache Service but depends also on other factors like:
- consistency of authorizations throughout the user session
- scalability
- serverS availability
Regards,
Andrea.