I am using hibernate 5 and hazelcast 3.5.4. For second level cache I use HazelcastCacheRegionFactory which happens to be the distributed implementation.
HazelcastLocalCacheRegionFactory documentation states clearly that in case of an update/delete invalidation messages are send.
I did a test in a local network with a two node clustered second level cache. Once an entity is read from a node the other node does not access the database, instead it fetches the entity from hazelcast. However once a node updates an entity the other node in order to fetch the entity does a query.
So my question is if HazelcastCacheRegionFactory sends invalidation messages too on update/delete instead of propagating the changes.
Thank you.