SharedCache performance benchmark

Topics: Developer Forum, User Forum
Aug 18, 2009 at 10:04 AM

Hi,

I want to use shared cache for my web application built in ASP.Net 3.5 + SQL Server 2005, i have found many distributed cache solutions like memached, NCache, i want a performance benchmark between those distributed cache solution. why i prefered shared cache over memcached i have read the feature set of both but they more likely same.

how can i invalidate or remove cache from cache servers when the database is updated? is there any solution of synchronize cache object through database changes?

waiting for your reply,

Thanks

Aug 18, 2009 at 11:41 AM

Hi,

check out the following links in my blog:

1) http://netrsc.blogspot.com/2009/02/comparsion-between-ncache-express.html 

2) http://netrsc.blogspot.com/2008/01/performance-average-comparsion-between.html

3) http://netrsc.blogspot.com/2008/06/velocity-vs-memcached-vs-shared-cache.html

NCache: it cost money.

memcache: 32bit port has some major problems. clients are available but in past several people stocked around translated server stuff. second thing is there is no replication available for memcache.

regards,

roni

 

 

Aug 18, 2009 at 2:23 PM

Thanks roni,

i have more questions in mind,

1) Does shared cache in-proc or out-proc? if it is in-proc than how?

2) How can i invalidate or remove cache from cache servers when the database is updated? is there any solution of synchronize cache object through database changes?

Aug 18, 2009 at 2:50 PM

Hi,

1) no shared cache is not designed for in-proc. i come up soon with a new version and there i enable in-proc usage.

2) no you cant connect right now between a DB and sharedcache.

regards,

roni

Aug 18, 2009 at 3:00 PM

Thanks,

I have created a web farm and implemented a shared cache on two servers, but i am unable to see if distributed caching working and how much memory consumed on both servers, i tried to check status from "Notify" but it doesn't show anything.

one more thing, i have an idea to update cache through database. what if i create a class library as a wrapper of sharedcache and use it for Add/remove cache object and register it in SQL Server 2005 (It support .Net CLR integration) and use that DLL when database updated / insert / delete by using triggers.

Let me know if it has any discrepencies?

regards

Adi