saga-orchestration

Implement saga patterns for distributed transactions across microservices.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ACGSpgp/ACGS --skill saga-orchestration-acgspgp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saga-orchestration
Source: https://github.com/ACGSpgp/ACGS/tree/main/.agent/workflows/backend-development/1.2.3/skills/saga-orchestration
Command: npx skills add https://github.com/ACGSpgp/ACGS --skill saga-orchestration-acgspgp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides robust patterns for managing complex, multi-step business processes that span across multiple services, ensuring data consistency and graceful failure handling.

Core Features & Use Cases

  • Distributed Transaction Management: Implement sagas using either choreography or orchestration to coordinate actions across different microservices.
  • Compensating Transactions: Define and execute rollback actions to undo previous steps in case of failures.
  • Long-Running Workflows: Manage business processes that may take an extended period to complete.
  • Use Case: Automate an e-commerce order fulfillment process, ensuring inventory is reserved, payment is processed, and shipping is arranged, with automatic rollbacks if any step fails.

Quick Start

Use the saga-orchestration skill to start a new order fulfillment saga with the provided order data.

Frequently Asked Questions about saga-orchestration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage distributed transactions across microservices?

Saga orchestration handles long-running workflows by coordinating multi-step business processes across microservices, executing compensating transactions to undo previous steps and maintain data consistency when failures occur.

What is the difference between choreography and orchestration for event-driven sagas?

Choreography uses event-driven communication where services react independently, while orchestration centrally coordinates the saga steps, defining actions and compensating transactions to ensure resilient distributed transaction management.

How do I implement compensating transactions for failed workflow steps?

Implement compensating transactions by defining rollback actions within your saga pattern, which automatically execute to undo previously completed steps and ensure graceful failure handling when a distributed transaction step fails.

Can I use saga patterns for long-running business processes in microservices?

Yes, saga patterns support long-running business processes in microservices by managing extended multi-step workflows, tracking step completion, and executing compensating transactions if failures occur during the distributed transaction lifecycle.

When should I not use the saga pattern for distributed transactions?

You should avoid the saga pattern when strict ACID consistency is required across all services immediately, because sagas prioritize eventual consistency by relying on compensating transactions rather than distributed locks.