Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some thoughts about cache / distributed caching #5

Open
lalmeras opened this issue Feb 7, 2018 · 0 comments
Open

Some thoughts about cache / distributed caching #5

lalmeras opened this issue Feb 7, 2018 · 0 comments

Comments

@lalmeras
Copy link
Member

lalmeras commented Feb 7, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant