Shared flowchart

Software · L4 · Saga Execution With Compensation

A three-step saga that compensates completed steps in reverse order when a later step fails.

by @openstemUpdated Software
Start saga: place orderStep 1: reserve inventoryStep 1 succeeded?Saga fails immediately, nothing to compensateStep 2: charge paymentStep 2 succeeded?Compensate step 1: release inventorySaga failed, system consistentStep 3: schedule shippingStep 3 succeeded?Compensate step 2: refund paymentCompensate step 1: release inventorySaga failed, system consistentSaga complete: order confirmedNoYesNoYesNoYes

We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy