workflow-orchestration-patterns
设计持久的 Temporal 工作流
Également disponible depuis: sickn33
分布式事务缺乏清晰的编排就会失败。本技能提供 Temporal 模式,用于确定性工作流、重试和补偿操作。
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 "workflow-orchestration-patterns". Outline a Temporal saga for booking travel with rollback steps.
Résultat attendu:
- Register compensations before each step
- Reserve flight, compensate by canceling reservation
- Book hotel, compensate by canceling booking
- Charge payment, compensate by refunding payment
- On failure, run compensations in reverse order (LIFO)
Utilisation de "workflow-orchestration-patterns". When should I use a child workflow versus parallel activities?
Résultat attendu:
- Use child workflows for complex, reusable process segments
- Use parallel activities for simple independent tasks
- Child workflows have their own execution history and timeouts
- Activities share parent workflow history and run faster
Utilisation de "workflow-orchestration-patterns". How do I handle long-running activities that might stall?
Résultat attendu:
- Implement heartbeat within activity to report progress
- Set heartbeat timeout to detect stalled work
- Use heartbeat details to enable progress-based retry
- Break long tasks into smaller idempotent steps
Audit de sécurité
SûrPure documentation skill containing only markdown guidance about Temporal workflow patterns. No executable code, scripts, or network activity. All 43 static findings are false positives triggered by documentation metadata and code block syntax - specifically git hash identifiers flagged as weak crypto, markdown backticks flagged as shell execution, and normal error classification flagged as reconnaissance.
Facteurs de risque
🌐 Accès réseau (1)
Score de qualité
Ce que vous pouvez construire
设计支付编排
规划具有补偿、重试和幂等活动的多步骤支付工作流。
建模长期实体
为账户或购物车选择使用信号和可查询状态的实体工作流。
强化故障恢复
为关键活动定义重试限制、退避和心跳策略。
Essayez ces prompts
将我的订单流程的每个步骤分类为工作流或活动并解释原因。
为预留库存、收取付款和发货订单起草一个包含补偿和幂等性规则的 saga 计划。
使用子工作流和有界工作流大小,为 500,000 个任务提出扇出和扇入设计。
为具有向后兼容性约束的长期运行工作流更新推荐版本控制方法。
Bonnes pratiques
- 保持工作流的确定性,将所有 I/O 移至活动
- 使活动幂等、短命,并始终配置超时
- 使用子工作流扩展大型并行工作负载
Éviter
- 直接从工作流调用外部 API
- 在工作流中使用系统时间或随机函数
- 在执行步骤前跳过补偿注册