Understanding and configuring second-level cache in Hibernate with Infinispan

Nowadays, web applications face many problems in performance due to database traffic. One of the great advantages of using an Object/Relational Mapping (ORM) solution like Hibernate or JPA is the ability to reduce or even eliminate multiple round trips to the database. However, to take advantage of this benefit, it's quite important to design a good model. With well-known ORM solutions like Hibernate and JPA, you can define your model on top of an existent database schema, or let the ORM engine generate the database model from your object model.

On the opposite side, if you design a bad model, your Hibernate/JPA application may produce the opposite effect and create more ...

Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.