I'm looking for a caching solution providing an automatic replication of changes using Hibernate's 2nd level cache. My use case: different cluster nodes each holding database information in Hibernate's 2nd level cache. In case of an update via the entity manager the change should be replicated to each cluster node to prevent any stale data. I've seen that ehCache 2.x has replication methods (e.g. via JGroups) which are easy to configure. Unfortunately ehCache 3.x does not support replication any more. Instead Cache-as-a-Service with Terracotta-Server is provided, which can not be used in my environment. I've also seen that version 2.x and 3.x are co-existing for a long time. Even though I'm not sure if I should use the replication feature of version 2.x.
- Are the replication features of ehCache 2.x even suitable for my use case?
- Does anybody know if version 2.x will be maintained in the future? Will it be deprecated or replaced completely by version 3.x?