Member-only story
Why the Industry is Moving Back to JDBC from JPA — This one will hurt a lot of developers.
I recently attended a Spring event where experts who work directly with Oliver Drotbohm — a key figure in the Spring ecosystem — discussed an interesting trend: many teams, including those at Broadcom, are moving away from JPA (Hibernate) and switching back to JDBC.
This shift is gaining traction across various industries, especially in high-performance applications.
For years, JPA has been the go-to abstraction for database interactions in Spring applications, offering a streamlined approach to handling persistence. However, the overhead, performance bottlenecks, and lack of fine-grained controlare prompting developers to reconsider its use.
Let’s explore why this transition is happening.
The Core Reasons Behind the Shift
1. Performance Bottlenecks in JPA (Hibernate)
JPA introduces an abstraction layer over SQL, which can lead to serious performance issues: