简体   繁体   中英

How to configurate Ehcache for peer-to-peer replication

I read a few times that ehcache can be used in replication mode. So I can set up a cluster without a terracotta-server (like a peer-to-peer network). But I only find information about the replication in old ehcache docs (version 2.x). In the new documentation the point "Replicated Cache" is missing and the ehcache-config is incompatible with the new ehcache version. Is this feature in v3.x gone ? If not: how to config ehcache ?

Regards

This feature has not been ported in Ehcache 3.x indeed.

It suffers from a total lack of consistency since it can only offer last write wins on a per node basis which is rarely an acceptable guarantee.

If you need to share a single cache across multiple nodes, the Terracotta clustering is the recommended way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM