Can I use Acegi with EhCache in a clustered environment? EhCache doesn't support cluster, so should I implement the UserCache to use a cluster-aware caching (TreeCache or Swarmcache)?
Thanks
Printable View
Can I use Acegi with EhCache in a clustered environment? EhCache doesn't support cluster, so should I implement the UserCache to use a cluster-aware caching (TreeCache or Swarmcache)?
Thanks
you should use OSCache to support clustering:
http://www.opensymphony.com/oscache/wiki/Hibernate.html
I've been using EHCache/Hibernate/Spring, but when we get to the point of needing clustering it's as simply as changing the configuration file(s) -:).
jc
Acegi Security doesn't provide any UserCache implementations aside from EH-CACHE. If you write additional providers and corresponding unit tests, please consider contributing it.
Is this still the case or has someone contributed a new UserCache that supports clustering? I am considering porting to Acegi, but caching/performance is a huge concern.
Thanks
Nobody has written a caching implementation of Acegi Security interfaces which wraps a cluster-aware provider, but I'm sure it'd be extremely simple to do so. The only reason we haven't is due to the simplicity, and the fact we'd add another dependency JAR to Acegi Security.
Ben,
Thanks for the info. I will take a look into it when I get a chance.
JCS has several distribution options:
http://jakarta.apache.org/jcs/index.html
Ben/Anyone,Quote:
Originally Posted by Ben Alex
I am new to the caching issue and trying to get my head around it at the moment. I see no reason that this should stop my analysis of Acegi. However, could you point me to the appropriate source or doc regarding the interfaces that need to be wrapped? Also, it seems OSCache and JBossCache (POJOCache) would be the best options, any comments?
Thanks,
Julian
Recently, EhCache supports Distributed Caching.
"Ehcache 1.2 introduced a full-featured, fine-grained distributed caching mechanism for clusters."
http://ehcache.sourceforge.net/features.html