workflow-orchestration-patterns

Featured

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

AI & Automation 38,975 stars 4150 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Workflow Orchestration Patterns Master workflow orchestration architecture with Temporal, covering fundamental design decisions, resilience patterns, and best practices for building reliable distributed systems. ## When to Use Workflow Orchestration ### Ideal Use Cases (Source: docs.temporal.io) - **Multi-step processes** spanning machines/services/databases - **Distributed transactions** requiring all-or-nothing semantics - **Long-running workflows** (hours to years) with automatic state persistence - **Failure recovery** that must resume from last successful step - **Business processes**: bookings, orders, campaigns, approvals - **Entity lifecycle management**: inventory tracking, account management, cart workflows - **Infrastructure automation**: CI/CD pipelines, provisioning, deployments - **Human-in-the-loop** systems requiring timeouts and escalations ### When NOT to Use - Simple CRUD operations (use direct API calls) - Pure data processing pipelines (use Airflow, batch processing) - Stateless request/response (use standard APIs) - Real-time streaming (use Kafka, event processors) ## Detailed patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices ### Workflow Design 1. **Keep workflows focused** - Single responsibility per workflow 2. **Small workflows** - Use child workflows for scalability 3. **Clear boundaries** - Workflow orchestrates,...

Details

Author
wshobson
Repository
wshobson/agents
Created
1 years ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

temporal-patterns

Catalog of Temporal's official, battle-tested Workflow design patterns (Saga, Continue-As-New, Signal-with-Start, Entity Workflow, Fan-Out, Fairness, Local Activities, Approval, and ~30 more) by problem domain, with a problem-to-pattern routing map and live links to each pattern's canonical page. Use WHENEVER working with Temporal design patterns in any mode: writing or reviewing Workflow/Activity code (pick the right named pattern and fetch its page before coding), answering customer or teammate questions on how to solve a problem in Temporal (map it to a pattern, explain tradeoffs), or building slides, decks, or enablement (exact names, domain groupings, canonical descriptions). Trigger even when the user never says "pattern" — e.g. "how do I do human approval in a workflow", "my history is getting too big", "undo earlier steps when a later one fails", "don't overwhelm the downstream API", "one tenant is starving the others". Trigger just as much when the problem is framed by use case or industry rather tha

1 Updated 1 months ago
dustinruehle
AI & Automation Solid

python-temporal

Temporal workflow orchestration in Python. Use when designing workflows, implementing activities, handling retries, managing workflow state, or building durable distributed systems.

41 Updated 1 weeks ago
martinffx
AI & Automation Listed

workflow

Orchestrate multi-step workflows by decomposing into subtasks, dispatching them, and monitoring via foreground polling loops. Prevents session timeout kills during long-running orchestration. Use when coordinating multiple agents or running multi-phase work that takes more than a few minutes.

55 Updated today
raphaeltm