workflow-orchestration-patterns

Design deterministic Temporal workflows for long-running distributed processes.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Sumeet138/qwen-code-agents --skill workflow-orchestration-patterns-sumeet138
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/Sumeet138/qwen-code-agents/tree/main/plugins/backend-development/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/Sumeet138/qwen-code-agents --skill workflow-orchestration-patterns-sumeet138

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design durable Temporal workflows to orchestrate long-running, distributed processes with deterministic outcomes and reliable state management.

Core Features & Use Cases

  • Saga pattern for distributed transactions with compensations
  • Entity workflows for long-lived entity state management
  • Fan-Out/Fan-In for parallel task execution and result aggregation
  • Async callback patterns for external events and human-in-the-loop processes
  • Determinism & resilience guidelines, including heartbeat and retries

Quick Start

Define a Temporal workflow using the patterns above to implement a reliable long-running process with deterministic steps and compensating activities.

Frequently Asked Questions about workflow-orchestration-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design deterministic Temporal workflows for distributed systems?

Design deterministic Temporal workflows by separating workflow logic from activities, enforcing determinism, and relying on automatic state preservation to orchestrate resilient long-running processes. This ensures reliable execution across microservices and databases.

What is the best way to implement a saga pattern for distributed transactions?

Implement a saga pattern for distributed transactions using Temporal workflows to define compensating activities. This provides fault-tolerant orchestration that automatically rolls back or retries failed steps within complex business transactions.

How do I handle long-running processes with heartbeat-based progress monitoring?

Handle long-running processes by defining Temporal activities with heartbeat-based progress monitoring. This enables automatic state preservation and fault-tolerance, allowing the workflow to track activity execution and recover seamlessly from transient failures.

Can I use Temporal workflows for human-in-the-loop async callback processes?

Yes, you can use Temporal workflows for human-in-the-loop processes by applying async callback patterns. This allows the workflow to wait for external events and human input while maintaining deterministic state and reliable execution.

How do I execute parallel tasks and aggregate results in a workflow?

Execute parallel tasks and aggregate results by applying the Fan-Out/Fan-In design pattern within your Temporal workflow. This orchestrates concurrent activity execution across distributed systems and aggregates their outputs into a single deterministic result.

Why do my Temporal workflows fail due to non-deterministic errors?

Temporal workflows fail due to non-deterministic errors when workflow code performs non-deterministic operations instead of delegating side effects to activities. Enforcing strict workflow vs activity separation ensures deterministic replay and reliable state management.