igloo-parent icon indicating copy to clipboard operation
igloo-parent copied to clipboard

Some thoughts about cache / distributed caching

Open lalmeras opened this issue 8 years ago • 0 comments

Current status about cache / distributed caching:

  • ehcache 2.x used as hibernate second level cache backend and spring cache backend
  • infinispan integration (configuration) and a home-made wrapper to manage locks and message communication over infinispan

We already use hibernate + ehcache + jgroups to manage distributed cache eviction, but it is not integrated in igloo.

We may choose a strategy for the future:

  • drop ehcache and use infinispan

    • infinispan provides hibernate caching module
    • infinispan is a JSR-107 (JCache) provider and spring can wrap JSR-107 providers
    • our current ehcache's usage are basics and may not be impacted by this move
    • we need to implement again cache management interface for hibernate and web-caches
  • no changes:

    • ehcache as second level cache and spring backend and if we need distributed behavior:
      • switch caches to spring + infinispan JSR-107
      • configure ehcache + jgroups
    • infinispan triggered only for distributed behaviors

lalmeras avatar Feb 07 '18 10:02 lalmeras