Tagged articles

Transactional

2 articles · Page 1 of 1
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.

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