StackPractices

Tag: transactions

Browse 5 practical software engineering resources tagged with "transactions". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving transactions. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

Database Transactions

Transactions group database operations into atomic units. They ensure that a set of changes either completes together or rolls back as a unit.

The resources below cover transaction design, isolation, distributed transactions, saga patterns, and compensation. Each guide helps you implement reliable data changes.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Implement ACID Transactions in PostgreSQL

How to use PostgreSQL transactions to ensure Atomicity, Consistency, Isolation, and Durability for...

Handle Database Deadlocks and Retries

Detect, prevent, and recover from database deadlocks with automatic retry logic, consistent lock...

Database Transactions

How to use ACID transactions to ensure data integrity across Python, JavaScript, and Java with SQL...

Unit of Work Pattern

Track changes to in-memory objects during a business transaction and commit all updates atomically...

ACID vs BASE — Consistency Models Explained

A practical guide comparing ACID and BASE consistency models: when to choose strong consistency,...