Saga Design

Design or review a multi-step business process that spans services, databases or third parties without a distributed transaction. Persist the saga's own state in one row before step 1, classify each step as compensable, pivot or retriable-after-pivot and order them that way, make every compensation idempotent and semantic and safe when the forward step never ran or is still in flight, give every step a timeout that ends in a terminal state, and prove it by killing the coordinator at every state write. Use when you hear "booking spans payment, inventory and shipping", "how do we roll back when step 3 fails", "design the compensation", "orders stuck in pending", "alternative to two-phase commit". Not for outbox or inbox (event-driven-reliability), endpoint contracts (api-design), migrating systems (plan-platform-migration), schema changes (db-migration).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 4c87235a5f

Frequently asked questions

npx get-skill add greenblacked/saga-design