Transactions & Concurrency
4 Topics
1
@Transactional — How Spring Manages Database Transactions
Dynamic proxies, rollback rules, and read-only attributes.
2
Transaction Propagation — REQUIRED, REQUIRES_NEW, NESTED and When to Use Each
How nested method calls join or create transaction context states.
3
Optimistic vs Pessimistic Locking — Preventing Data Corruption
Using @Version annotations vs SELECT FOR UPDATE database locks.
4
Database Migrations with Flyway — Schema Version Control
Setting up Flyway scripts and integrating automatic database updates at startup.