인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
디자인 및 창작 · SKILL.md

database-transactions

database-transactions

Define transaction boundaries, locking, and consistency guarantees for multi-step writes. Use when designing atomic operations, retries, idempotency, or concurrent write behavior.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: database-transactions description: Define transaction boundaries, locking, and consistency guarantees for multi-step writes. Use when designing atomic operations, retries, idempotency, or concurrent write behavior. metadata: triggers: keywords: - transaction - consistency - idempotency - lock - concurrent write

Database Transactions

Priority: P0 (CRITICAL)

One business action should have one clear consistency strategy.

Rules

  • Define the unit of work before choosing transaction scope.
  • Keep transaction bodies short and purposeful.
  • Record isolation, lock, retry, and idempotency expectations for contested writes.
  • Split eventually consistent workflows from truly atomic ones.

Verify

  • Transaction boundary matches one business action.
  • Isolation or locking tradeoff is explicit.
  • Retry and idempotency behavior is defined for duplicate or concurrent requests.
  • External side effects are not hidden inside a DB transaction without compensation.

Anti-Patterns

  • No giant transaction scripts: long units increase contention and failure blast radius.
  • No retry without idempotency: duplicate writes become correctness bugs.
  • No mixed atomicity story: define what is immediate vs eventual.

References

저장한 Skills