workflow-orchestration-patterns

Design durable Temporal workflows with saga compensation and entity patterns.

3|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/DrLuggels/my_dhbw --skill workflow-orchestration-patterns-drluggels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/DrLuggels/my_dhbw/tree/main/.claude/plugins/backend-development/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/DrLuggels/my_dhbw --skill workflow-orchestration-patterns-drluggels

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers design and implement robust, long-running, and fault-tolerant workflows for distributed systems, ensuring reliability and state management even through failures.

Core Features & Use Cases

  • Workflow vs. Activity Separation: Clearly defines the roles of orchestration logic and external interactions.
  • Saga Pattern: Implements distributed transactions with compensation logic for rollback.
  • Entity Workflows: Manages the lifecycle of individual entities as long-running workflows.
  • Parallel Execution: Facilitates fan-out/fan-in patterns for concurrent task processing.
  • Async Callbacks: Handles external events and human approvals.
  • Use Case: Orchestrating a complex e-commerce order fulfillment process that involves inventory checks, payment processing, shipping, and customer notifications, with built-in retry mechanisms and compensation for failures.

Quick Start

Use the workflow-orchestration-patterns skill to design a saga pattern for a payment processing workflow.

Frequently Asked Questions about workflow-orchestration-patterns

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

FAQPage Schema
How do I implement the saga pattern for distributed transactions?

Temporal separates orchestration logic from external interactions by defining workflows for state management and activities for side effects. Workflows maintain determinism constraints while activities handle external API calls, enabling resilient long-running processes.

How do I handle state management for long-running processes in distributed systems?

State management for long-running processes is handled by durable orchestration frameworks. Workflow state persists between execution steps, allowing processes to resume correctly after failures, timeouts, or async callbacks without losing progress.

What is the best way to manage concurrent task processing with fan-out fan-in patterns?

Entity workflows manage the lifecycle of individual entities as long-running processes. They encapsulate entity-specific state and logic, allowing concurrent access and modifications while maintaining isolation and consistency across the distributed workflow.

How do I handle external events and human approvals in distributed workflows?

Async callbacks handle external events and human approvals by allowing workflows to pause and wait for specific signals. The workflow remains durable during the wait, resuming execution immediately upon receiving the external event response.

Why does workflow determinism matter when designing distributed workflows?

Workflow determinism constraints ensure that workflow code produces the exact same sequence of commands upon replay. This is critical for state recovery, as non-deterministic behavior causes state corruption and prevents resilient error handling during failures.