---
answer: direct
beat: system-design
source: 1 article · updated: November 15, 2026
---

What is a compensating transaction in the Saga pattern?

A compensating transaction is an explicit business undo operation. Because Sagas commit local database transactions sequentially, rolling back a failed multi-step workflow cannot rely on standard database rollback. Instead, previously committed steps execute backward compensations (such as issuing a refund or releasing reserved inventory).

Answered in

Saga Pattern Demystified: Orchestration vs Choreography for Distributed Transactions and Compensating Actions

A comprehensive guide to the Saga pattern: Two-Phase Commit failure modes, compensating transactions, choreography vs orchestration, and idempotency.

Crashtech Editorial November 15, 2026 System Design & Architecture

Read the full analysis

Other questions this article answers

More system design & architecture questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design & Architecture beat.