Skip to main content

Saga Orchestration

Skill Verified Active
Part of:Agents

Implement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservices where 2PC is unavailable, designing compensating actions for failed order workflows that span inventory, payment, and shipping services, building event-driven saga coordinators for travel booking systems that must roll back hotel, flight, and car rental reservations atomically, or debugging stuck saga states in production where compensation steps never complete.

Purpose

To provide a robust and well-documented framework for implementing saga patterns, enabling reliable distributed transactions and cross-aggregate workflows in microservices architectures.

Features

  • Saga pattern implementation (orchestration and choreography)
  • Automated compensation logic for failures
  • Per-step timeout configuration
  • Idempotency guards for commands and compensations
  • Production monitoring setup with Prometheus metrics
  • DLQ recovery patterns for compensation failures

Use Cases

  • Coordinating multi-service transactions without distributed locks
  • Implementing compensating transactions for partial failures
  • Managing long-running business workflows
  • Building atomic order fulfillment, approval, or booking processes
  • Debugging stuck saga states in production

Non-Goals

  • Directly managing participant service implementations
  • Replacing message brokers or event stores
  • Providing synchronous transaction guarantees
  • Handling network-level failures outside of compensated workflows

Workflow

  1. Define saga steps (action and compensation)
  2. Configure participant service interactions
  3. Implement idempotency guards
  4. Set up per-step timeouts and retry policies
  5. Monitor saga execution and handle compensation failures
  6. Implement DLQ recovery for persistent compensation issues

Practices

  • Idempotency
  • Compensation Design
  • Error Handling
  • Monitoring
  • Asynchronous Communication

Prerequisites

  • Python runtime
  • Message broker or event bus (e.g., Kafka, RabbitMQ, SQS)
  • Saga store (database)

Code Execution

  • info:LoggingThe advanced patterns section mentions logging state transitions and using correlation IDs, but a dedicated audit log file mechanism is not explicitly detailed in the provided code snippets.

Installation

First, add the marketplace

/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflows

Quality Score

Verified
98 /100
Analyzed about 13 hours ago

Trust Signals

Last commit2 days ago
Stars35.3k
LicenseMIT
Status
View Source

Similar Extensions

Microservices Patterns

98

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

Skill
wshobson

Java Architect

100

Use when building, configuring, or debugging enterprise Java applications with Spring Boot 3.x, microservices, or reactive programming. Invoke to implement WebFlux endpoints, optimize JPA queries and database performance, configure Spring Security with OAuth2/JWT, or resolve authentication issues and async processing challenges in cloud-native Spring applications.

Skill
jeffallan

Senior Backend Engineer

100

Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.

Skill
alirezarezvani

Embedding Strategies

100

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

Skill
wshobson

Aws Cdk Development

100

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implementing infrastructure as code, or when the user mentions CDK, CloudFormation, IaC, cdk synth, cdk deploy, or wants to define AWS infrastructure programmatically. Covers CDK app structure, construct patterns, stack composition, and deployment workflows.

Skill
zxkane

Fit Drift Diffusion Model

100

Fit cognitive drift-diffusion models (Ratcliff DDM) to reaction time and accuracy data with parameter estimation (drift rate, boundary separation, non-decision time), model comparison, and parameter recovery validation. Use when modeling binary decision-making with reaction time data, estimating cognitive parameters from experimental data, comparing sequential sampling model variants, or decomposing speed-accuracy tradeoff effects into latent cognitive components.

Skill
pjt222

© 2025 SkillRepo · Find the right skill, skip the noise.