Distributed, persistent cache using EHCache

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-04-28T16:37:00Z Indexed on 2010/04/30 1:27 UTC
Read the original article Hit count: 298

I currently have a distributed cache using EHCache via RMI that works just fine. I was wondering if you can include persistence with the caches to create a distributed, persistent cache.

Alongside this, if the cache was persistent, would it load from the file store, then bootstrap from the cache cluster? Basically, what I want is:

  • Cache starts
  • Cache loads persistent objects from the file store
  • Cache joins the distruted cluster and bootstraps as normal

The usecase behind this is having 2 identical components running on independent machines, distributing the cache to avoid losing data in the event that one of the components fails. The persistence would guard against losing all data on the rare occasion that both components fail.

Would moving to another distribution method (such as Terracotta) support this?

© Stack Overflow or respective owner

Related posts about ehcache

Related posts about terracotta