saga-orchestration
仓库创建 2025年7月25日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由
适合构建长流程/跨服务订单等复杂事务场景。
这个 Skill 做什么
提供 Saga 模式方案,管理跨微服务的分布式事务与补偿流程。
把跨微服务的分布式事务用补偿(Saga)方式组织起来,确保出错时能按步骤回滚或补偿,比如订单涉及库存、支付、发货的场景。常在无法使用 2PC、流程很长且需要补偿动作时采用。它强调各步的服务边界与补偿操作、事件驱动的协调器设计,并提供排查卡住 saga 状态的方法。
▸ 展开 SKILL.md 英文原文
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.
3.8w
Stars
4.1k
Forks
40
仓库内 Skill
+683
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/saga-orchestration/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/wshobson/agents/main/plugins/backend-development/skills/saga-orchestration/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Saga Orchestration Patterns for managing distributed transactions and long-running business processes without two-phase commit. ## Inputs and Outputs **What you provide:** - Service boundaries and ownership (which service owns which step) - Transaction requirements (which steps must be atomic, which can be eventual) - Failure modes for each step (transient vs. permanent, retry policy) - SLA requirements per step (informs timeout configuration) - Existing event/messaging infrastructure (Kafka, RabbitMQ, SQS, etc.) **What this skill produces:** - Saga definition with ordered steps, action commands, and compensation commands - Orchestrator or choreography implementation for your chosen pa
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有