Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to manage spring cache in cluster environment

I am trying to build a cache service for my application using spring. Cache needs to be populated from database.

My application runs on three nodes and would like all three nodes to be in sync with the cache. If one node gets an updated value in the cache, it should notify other nodes.

I looked at Spring Cache abstration and it does not talk about caching in cluster environment.

is there a way to propagate cache notifications to other nodes?

like image 451
kevin Avatar asked Aug 18 '16 22:08

kevin


1 Answers

Look at using the Spring memcached plugins for a distributed cache.

https://github.com/jacobhe/spring-boot-tomcat-memcached

like image 162
Gandalf Avatar answered Nov 18 '22 15:11

Gandalf