Tagged articles

Transaction Propagation

3 articles · Page 1 of 1
Coder Trainee
Coder Trainee
Aug 29, 2026 · Backend Development

When @Transactional Goes Wrong: Misusing Transaction Propagation Leads to Deadlocks

A real‑world case shows that using @Transactional with the default REQUIRED propagation caused a long‑running transaction, frequent deadlocks, data inconsistency and higher timeout rates, and the article walks through the root cause, investigation steps, and practical fixes such as REQUIRES_NEW, self‑proxy calls, and async eventual consistency.

@TransactionalBackendSpring
0 likes · 9 min read
When @Transactional Goes Wrong: Misusing Transaction Propagation Leads to Deadlocks
CodeSmart Hoops
CodeSmart Hoops
May 18, 2026 · Backend Development

Unit Testing Spring Transaction Propagation: Practical Insights

This article provides a complete, runnable unit‑test suite for Spring Boot 3.x that demonstrates and verifies every transaction‑propagation behavior (REQUIRED, REQUIRES_NEW, NESTED, SUPPORTS, MANDATORY), highlights common pitfalls such as self‑calls and swallowed exceptions, and shows how to configure the environment, write the test code, and run the tests.

H2 DatabaseJUnit 5Spring Boot
0 likes · 15 min read
Unit Testing Spring Transaction Propagation: Practical Insights
Top Architect
Top Architect
Dec 1, 2022 · Backend Development

Understanding Spring Transaction Management: @EnableTransactionManagement, Transaction Propagation, and Synchronization

This article provides a comprehensive guide to Spring transaction management, explaining the inner workings of @EnableTransactionManagement, the basic and detailed execution processes, various propagation mechanisms, forced rollback techniques, and TransactionSynchronization, supplemented with practical code examples and case analyses.

Spring FrameworkTransaction Propagationjava
0 likes · 13 min read
Understanding Spring Transaction Management: @EnableTransactionManagement, Transaction Propagation, and Synchronization