We are using Hibernate with JPA in the project we are currently developing. Currently working on Wildfly and future features - this is a commercial version depending on the needs.
Some alternatives for the second level cache are listed in the Hibernate documentation here . There are also other solutions such as Hazelcast . Among the alternatives, it seems that JBoss officially supports the Infinispan solution .
As in many projects, we have some tables that will rarely change, if at all, for example, a list of cities, statuses that a project can have, etc. Therefore, our decision to use the second level cache for such cases.
- Could you share your experience in such a scenario? Is this a good use case? Is there a better way to save such data? How do you process data that rarely or never changes?
- Which provider have you used in the past and / or are currently using as a second level cache and why? What are the advantages and disadvantages of the solution you have chosen?
source share