In-Memory Data Grids With Hazelcast, Hibernate, and Spring Boot
In my previous article about JPA caching with Hazelcast, Hibernate, and Spring Boot, I described an example illustrating Hazelcast usage as a solution for the Hibernate second-level cache. One big disadvantage of that example was an ability by caching entities only by primary key. The opportunity to cache JPA queries by some other indices helped, but that did not solve the problem completely because the query could use already-cached entities even if they matched the criteria.
In this article, I’m going to show you a smart solution of that problem based on Hazelcast distributed queries.
via DZone.com Feed https://dzone.com
May 12, 2017 at 06:27AM