saga-orchestration
분산 서비스를 위한 사가 워크플로우 설계
분산 워크플로우는 단계 간 조율이나 깔끔한 롤백이 실패하면 중단됩니다. 이 스킬은 신뢰성 있는 다중 서비스 트랜잭션을 위해 단계를 오케스트레이션하고 보상하는 명확한 사가 패턴과 템플릿을 제공합니다.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "saga-orchestration". Design an order fulfillment saga with compensations and timeouts.
Résultat attendu:
- Steps: reserve inventory, process payment, create shipment, send confirmation.
- Compensations: release inventory, refund payment, cancel shipment.
- Timeout policy: fail step after 5 minutes and start compensation.
- Events: SagaStepCompleted, SagaStepFailed, SagaCompensationCompleted.
Utilisation de "saga-orchestration". Compare orchestration and choreography for payment processing.
Résultat attendu:
- Orchestration: central orchestrator sends commands, receives responses.
- Choreography: services emit events, others subscribe and react.
- Orchestration benefits: explicit flow, easier debugging, clear ownership.
- Choreography benefits: loose coupling, no single point of failure.
Utilisation de "saga-orchestration". How do I handle a saga step that never completes?
Résultat attendu:
- Implement per-step timeouts in the orchestrator.
- On timeout, mark step as failed and trigger compensation.
- Use scheduled tasks to check step status periodically.
- Log timeout events for monitoring and alerting.
Audit de sécurité
SûrPure documentation skill containing code templates for saga pattern implementation. Contains no executable code, filesystem access, network calls, or command execution. All static findings are false positives triggered by documentation text containing technical terminology that scanners incorrectly flag as cryptographic terms, C2 indicators, or shell commands.
Facteurs de risque
🌐 Accès réseau (3)
Score de qualité
Ce que vous pouvez construire
주문 처리 워크플로우
보상 단계와 실패 처리를 갖춘 다중 서비스 주문 워크플로우 설계.
장기 실행 승인 프로세스
타임아웃과 롤백 동작이 포함된 승인 워크플로우 모델링.
사가 패턴 검토
오케스트레이션과 코레오그래피 간 트레이드오프에 대해 팀 간 정렬.
Essayez ces prompts
재고, 결제, 배송 단계가 포함된 체크아웃을 위한 사가 오케스트레이션 설계. 보상과 상태 전환 포함.
단계별 타임아웃과 실패 처리가 포함된 사가 오케스트레이션 확장. 타임아웃이 보상을 어떻게 트리거하는지 설명.
주문 처리를 위한 코레오그래피 기반 사가 제공하고 이벤트 이름과 핸들러 나열.
재시도, 보상, 감사 로깅 지침이 포함된 다단계 온보딩 흐름을 위한 사가 계획 초안 작성.
Bonnes pratiques
- 안전한 재시도를 위해 단계를 멱등하게 만들기
- 모든 되돌릴 수 없는 작업에 대해 보상 설계
- 크로스 서비스 트레이싱을 위한 상관 관계 ID 사용
Éviter
- 단계가 즉시 완료된다고 가정
- 보상 테스트 건너뛰기
- 직접 호출로 서비스를 긴밀하게 결합
Foire aux questions
Is this compatible with Claude, Codex, and Claude Code?
What are the limits of this skill?
How do I integrate with my message bus?
Does this skill access my data or secrets?
What should I check if steps never complete?
How does this compare to choreography only?
Détails du développeur
Auteur
wshobsonLicence
MIT
Dépôt
https://github.com/wshobson/agents/tree/main/plugins/backend-development/skills/saga-orchestrationRéf
main
Structure de fichiers
📄 SKILL.md