Saga Orchestration
Skill Verifiziert AktivImplement 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.
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
- Define saga steps (action and compensation)
- Configure participant service interactions
- Implement idempotency guards
- Set up per-step timeouts and retry policies
- Monitor saga execution and handle compensation failures
- 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-workflowsQualitätspunktzahl
VerifiziertVertrauenssignale
Ähnliche Erweiterungen
Microservices Patterns
98Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.
Java Architect
100Use 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.
Senior Backend Engineer
100Designs 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.
Embedding Strategies
100Select 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.
Aws Cdk Development
100AWS 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.
Fit Drift Diffusion Model
100Fit 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.