workflow-orchestration-patterns

Design durable Temporal workflows with saga patterns and state management.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill workflow-orchestration-patterns-drgaciw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/drgaciw/academic-compliance-hub-glm/tree/main/agents/plugins/backend-development/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill workflow-orchestration-patterns-drgaciw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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 in the face of failures.

Core Features & Use Cases

  • Durable Workflows: Design processes that can span long durations and recover automatically from failures.
  • Saga Pattern: Implement distributed transactions with compensation logic for rollback capabilities.
  • Entity Workflows: Model long-lived entities as stateful workflows for consistent lifecycle management.
  • Parallel Execution: Orchestrate multiple tasks concurrently using fan-out/fan-in patterns.
  • Use Case: Orchestrating a complex e-commerce order fulfillment process that involves inventory reservation, payment processing, and shipping, with automatic compensation if any step fails.

Quick Start

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

Frequently Asked Questions about workflow-orchestration-patterns

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

FAQPage Schema
What is the saga pattern for distributed transactions and when do I need it?

The saga pattern implements distributed transactions with compensation logic for rollback capabilities. You need it when orchestrating multi-step processes like e-commerce fulfillment where failures require automatic state recovery and rollback.

How do I design durable workflows with Temporal for long-running processes?

Design durable workflows with Temporal by separating workflows and activities, enforcing determinism constraints, and leveraging automatic state persistence. This ensures long-running processes recover automatically from failures without external state management.

How do I separate workflows and activities in Temporal microservice orchestration?

Separate workflows and activities by defining workflows as deterministic orchestration logic and activities as side-effectful operations interacting with external systems. This ensures reliable state persistence and automatic failure recovery in microservice orchestration.

Can I model long-lived entities as stateful workflows for lifecycle management?

Yes, you can model long-lived entities as stateful workflows for consistent lifecycle management. This approach provides durable state persistence and automatic failure recovery for long-running distributed system processes.

What are the determinism constraints when building resilient distributed systems with Temporal?

Determinism constraints require workflow code to produce identical outputs for identical inputs across replays. This means avoiding non-deterministic operations inside workflows and delegating external interactions to activities to maintain automatic state persistence.

How do I implement fan-out fan-in parallel execution patterns for distributed workflows?

Implement fan-out fan-in patterns by orchestrating multiple tasks concurrently within your workflow to achieve parallel execution. This allows distributed systems to handle concurrent operations while maintaining automatic state persistence and failure recovery.