Skip to content
Tagged articles

long transaction

5 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 20, 2026 · Backend Development

Spring Boot @Transactional Pitfalls: Deadlocks, Long Transactions & Propagation Failures

This article analyzes three critical @Transactional pitfalls in Spring Boot 3.5.0: deadlocks from inconsistent lock ordering during concurrent transfers, long transactions holding row locks during external RPC calls causing blocking and inconsistency, and nested transaction propagation causing unexpected rollbacks despite try-catch. Solutions include consistent lock ordering, transaction splitting, and using REQUIRES_NEW or programmatic transactions.

@TransactionalConcurrencyREQUIRES_NEW
0 likes · 11 min read
Spring Boot @Transactional Pitfalls: Deadlocks, Long Transactions & Propagation Failures
Architect's Journey
Architect's Journey
Jan 5, 2022 · Backend Development

Why @Transactional Can Trigger Production Outages: Lessons from a Long‑Transaction Failure

The author recounts a real‑world incident where a Spring @Transactional annotation caused database connection exhaustion, deadlocks, and a production outage, explains how long‑running transactions arise from holding a single connection during costly operations, and offers practical ways to avoid them by splitting methods or using programmatic transactions.

@TransactionalDatabase DeadlockJava
0 likes · 10 min read
Why @Transactional Can Trigger Production Outages: Lessons from a Long‑Transaction Failure
Code Ape Tech Column
Code Ape Tech Column
Nov 26, 2021 · Backend Development

Avoiding Long Transactions in Spring: Lessons from a Production Incident

This article explains how using Spring's @Transactional annotation can unintentionally create long-running transactions, illustrated by a production incident where database connections were exhausted, and provides strategies such as method splitting, programmatic transactions, and proxy usage to avoid such pitfalls.

long transactionprogrammatic transaction
0 likes · 9 min read
Avoiding Long Transactions in Spring: Lessons from a Production Incident
macrozheng
macrozheng
Nov 25, 2021 · Backend Development

Why @Transactional Can Crash Production and How to Prevent Long Transactions

This article recounts a production incident caused by using Spring's @Transactional annotation, explains how long-running transactions exhaust database connections, and provides practical strategies—including method splitting, programmatic transactions, and proper AOP proxy usage—to prevent such failures in backend Java applications.

JavaSpringTransactional
0 likes · 10 min read
Why @Transactional Can Crash Production and How to Prevent Long Transactions