System InternalsLearn ↗Saga PatternSTARTSTEPFAIL

Saga Pattern — pick a scenario

0/2 done

Pick one and press Start, then click Next › to step through it.

Watch for

The completed steps being undone one by one in reverse — compensation, not rollback, is what cleans up.

More about this scenario
You'll learn

How a saga gets atomicity-like behaviour across services without a distributed transaction or locks.

How it runs

Each STEP commits locally. When Payment fails, there's nothing to roll back globally — instead the orchestrator runs each completed step's compensating action in reverse order (undo Inventory, then undo Order), ending in a consistent aborted state.