EhCache Scaling

I am currently creating an application that needs to be scalable, and therefore I am interested in distributed caching and non-replicated caching. We will use memcache for general cache use cases.

However, the Hibernate and Spring ACL security systems rely on EhCache, which does not seem to have the same replication scheme as memcache, and I am worried about invalidation logic.

My application servers must be inactive for scaling, and I wonder if I need to run Hibernate and Acl in memcache or only store temporary data?

Thank you for your help.

Nicolas.

+3
source share
2 answers

I am currently creating an application that needs to be scalable, and therefore I am interested in distributed caching and non-replicated caching.

Could you clarify? What makes you think that copying caching is not scalable? And at what point?

However, the Hibernate and Spring Security ACL both rely on EhCache, which does not seem to have the same replication scheme as memcached, and I am worried about invalidation logic.

Hibernate uses EhCache as the default L2 cache provider, but L2 caches are cached.

Regarding your problems, please repeat, please specify:

  • what are you going to cache exactly?
  • ( ? --? -? ?
  • ? - ? -?

, , Hibernate Acl memcache ?

. , .

memcached L2 Hibernate, memcached ( , , , , , ).

, . , .

, , , EhCache , "" 24+ (, "" , ).

+4

- . Ehcache defacto Spring, CacheManager memcached . MethodSecurityInterceptor /. Spring , - , .

0

Source: https://habr.com/ru/post/1763839/


All Articles