Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Saga Orchestration

Skill Verifiziert Aktiv
Teil von: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.

Zweck

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

Funktionen

  • 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

Anwendungsfälle

  • 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

Nicht-Ziele

  • 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

Praktiken

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

Voraussetzungen

  • 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

Zuerst Marketplace hinzufügen

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

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert about 19 hours ago

Vertrauenssignale

Letzter Commit3 days ago
Sterne35.3k
LizenzMIT
Status
Quellcode ansehen

Ähnliche Erweiterungen

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) Experte für den Aufbau von Cloud-Infrastruktur mit TypeScript/Python. Verwenden Sie dies beim Erstellen von CDK-Stacks, Definieren von CDK-Konstrukten, Implementieren von Infrastructure as Code oder wenn der Benutzer CDK, CloudFormation, IaC, cdk synth, cdk deploy erwähnt oder AWS-Infrastruktur programmatisch definieren möchte. Behandelt CDK-App-Struktur, Konstruktmuster, Stack-Komposition und Bereitstellungs-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