Tag

Long Transaction

1 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Nov 28, 2022 · Backend Development

Resolving Long Transactions and Connection‑Closed Issues in Spring with Druid

This article analyzes why a Spring service encounters "connection closed" errors during long‑running transactions, explains how MyBatis and Druid manage connections, and provides a programmatic‑transaction solution that splits large operations into smaller units to prevent connection leaks and timeouts.

Backend DevelopmentDruidLong Transaction
0 likes · 11 min read
Resolving Long Transactions and Connection‑Closed Issues in Spring with Druid
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 TransactionSpring
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.

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