saga-orchestration

Coordinate distributed transactions across services using saga patterns.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/ccf/claude-code-ccf-marketplace --skill saga-orchestration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saga-orchestration
Source: https://github.com/ccf/claude-code-ccf-marketplace/tree/main/plugins/backend-development/skills/saga-orchestration
Command: npx skills add https://github.com/ccf/claude-code-ccf-marketplace --skill saga-orchestration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides patterns and templates to coordinate distributed transactions across multiple services, enabling reliable multi-step business processes with compensating actions.

Core Features & Use Cases

  • Saga Types: Orchestration and Choreography to coordinate steps across services.
  • Failure handling: Compensation and rollback strategies to recover from partial failures.
  • Templates & guidance: Ready-to-adapt code for orchestrators and saga examples like order fulfillment flows.

Quick Start

Instantiate a SagaOrchestrator for your domain, define the steps, and call start with your domain data to begin a saga.

Frequently Asked Questions about saga-orchestration

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

FAQPage Schema
How do I coordinate distributed transactions across microservices?

To coordinate distributed transactions across microservices, you can use saga patterns that manage long-running business workflows with compensating actions for partial failure recovery. This Skill provides Python-based templates for both orchestrated and choreographed approaches.

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

In event-driven sagas, orchestration uses a central coordinator to command each service step, while choreography relies on services reacting to events independently. This Skill provides templates and guidance for implementing both coordination styles across your microservices.

How do I handle compensation and rollback for failed multi-service workflows?

Compensation and rollback for failed multi-service workflows are handled by defining specific compensating actions for each saga step. If a service operation fails, the saga pattern triggers these actions to reverse prior steps and maintain data consistency across domains.

Can I use saga patterns for long-running business processes like order fulfillment?

Yes, saga patterns are well-suited for long-running business processes like order fulfillment and payments. This Skill provides ready-to-adapt code examples for orchestrating these multi-step workflows across distributed services with reliable failure handling.

What's the best way to start implementing an orchestrated saga in Python?

The best way to start implementing an orchestrated saga in Python is to instantiate a SagaOrchestrator for your domain, define the transaction steps, and call start with your domain data to begin the workflow across the participating microservices.

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

You should not use the saga pattern for distributed transactions when strict real-time ACID consistency is required across all services, as sagas prioritize eventual consistency through compensating actions for long-running workflows rather than immediate distributed locks.