The goal of this project is to study JPA Batch Processing (i.e., inserting, updating, or deleting a set of records in a single command) and JPA Locking.
-
Updated
Jul 24, 2026 - Java
The goal of this project is to study JPA Batch Processing (i.e., inserting, updating, or deleting a set of records in a single command) and JPA Locking.
This Repository Contains Implementation for Database Locking with Spring Data JPA and Test It Using JMeter to Send Concurrent Requests to Test Optimistic Locking
Airline Checkin System APIs
A Spring Boot application demonstrating optimistic and pessimistic database locking to handle concurrent transactions, prevent data inconsistencies, and ensure reliable data integrity in multi-user systems.
Lost update under contention and three ways to close the gap: atomic UPDATE, pessimistic lock (SELECT ... FOR UPDATE) and optimistic lock (@Version + bounded retry). Spring Boot 4, Spring Data JPA, PostgreSQL, with a bench that measures all of them on the same row.
To associate your repository with the database-locking topic, visit your repo's landing page and select "manage topics."