transaction
Installation
SKILL.md
Transaction management
Overview
This document defines rules for managing transactions in Spring applications, including propagation, isolation, Master/Slave routing, and common pitfalls.
Key Principle: Keep transactions small and fast. No external I/O. Watch for self-invocation.
For JPA-specific topics (Lazy Loading, N+1, Locking, Entity State), see skill: jpa-rules.
| Guideline | Description |
|---|---|
| Keep it small | Only include necessary DB operations |
| No external I/O | Avoid HTTP calls, file I/O, messaging inside transactions |
| No self-invocation | Same-class method calls bypass proxy |
| Fail fast | Validate before starting transaction |