Suppose I have two serves, each running the same Hibernate application using the same 2nd level cache. Now suppose one of the serves can't connect to the 2nd level cache (someone put up a firewall rule that prevents the access to the cache cluster). How does that server work afterwards? How is data consistency kept between the servers?
Experimentation is called for. But I would bet what you get is an immediate exception from the Hibernate operation that suffered the communications failure, not very different from what would occur if the DB is unavailable.
Practice should be in such way that, to handle the exception and could not get it from cache then must hit to database and get the values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With