In Chapter 9, Spring Boot 2.0, we introduced a recipe that highlighted Ehcache configuration with the Spring Boot 2.0 development. However, Ehcache works fine with applications deployed to a single-node deployment environment only. Once this simple architecture starts to adapt the distributed or clustered microservices set up, a new object caching mechanism that fits in a distributed environment must also be used, replacing the old caching. Unfortunately, Ehcache is not scalable when it comes to infrastructure changes like this. This recipe will show us a procedure that will implement a distributed caching mechanism suitable for a loosely-coupled architecture.
Applying Hazelcast distributed caching
Getting ready
Utilize again...