Ehcache cache the data with support cluster disk storage (replication)

164 Views Asked by At

I am using Ehcache technologies in our application and it is working in single server data persist in disk, if we moving to production, we have two different server which is clustered in our application.

if first request comes to server A, it will cache respect server A OS disk level cached data and working fine, similarly, if request goes to server B, the application can not find the cached data because the the cached disk object in server A disk. how to we replicate both disk in our ehcache-config.xml?

1

There are 1 best solutions below

1
On

I recommend looking into clustering support with Terracotta. See the documentation for this: