Skip to content

Some thoughts about cache / distributed caching #5

@lalmeras

Description

@lalmeras

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions