workflow-orchestration-patterns

Design durable Temporal workflows with saga patterns and deterministic logic.

89|14|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/HermeticOrmus/LibreUIUX-Claude-Code --skill workflow-orchestration-patterns-hermeticormus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/HermeticOrmus/LibreUIUX-Claude-Code/tree/main/plugins/backend-development/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/HermeticOrmus/LibreUIUX-Claude-Code --skill workflow-orchestration-patterns-hermeticormus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of building reliable, long-running distributed systems by providing patterns and best practices for workflow orchestration, ensuring durability and fault tolerance.

Core Features & Use Cases

  • Durable Workflows: Design and implement long-running processes that can survive infrastructure failures.
  • Saga Pattern: Manage distributed transactions with compensation logic for rollback.
  • Entity Workflows: Model long-lived entities as independent workflows for state management.
  • Parallel Execution: Utilize fan-out/fan-in patterns for efficient parallel task processing.
  • Async Callbacks: Integrate with external systems or human approvals via signals.
  • Use Case: Orchestrating a multi-step e-commerce order process, from payment and inventory reservation to shipping and customer notification, ensuring each step is reliably executed and can be compensated if an error occurs.

Quick Start

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

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 a saga pattern for distributed transactions?

To design a saga pattern for distributed transactions, you separate workflow logic from activities and implement compensation logic for rollback. This approach manages multi-step processes like e-commerce orders, ensuring each step is reliably executed and can be compensated if an error occurs.

What is the difference between workflows and activities in Temporal?

In Temporal, workflows contain deterministic logic that orchestrates the overall process state, while activities handle non-deterministic operations like external API calls. This separation ensures durable execution and allows long-running processes to survive infrastructure failures without breaking state consistency.

How do I build resilient distributed systems with long-running processes?

You build resilient distributed systems with long-running processes by using durable workflows that survive failures. By modeling long-lived entities as independent workflows and utilizing fan-out/fan-in patterns for parallel execution, you achieve fault tolerance and reliable microservice orchestration.

How do I handle async callbacks and human approvals in workflow orchestration?

You handle async callbacks and human approvals in workflow orchestration by integrating with external systems via signals. Signals allow workflows to pause and wait for external inputs or manual approvals before resuming execution, ensuring durable state management throughout the waiting period.

What are the determinism constraints for Temporal workflow logic?

Determinism constraints for Temporal workflow logic require that workflows execute predictably given the same inputs, avoiding non-deterministic operations like random number generation or direct database access. Adhering to these constraints ensures state consistency during replays, while activities must be designed idempotently.

When should I use workflow orchestration for microservices?

You should use workflow orchestration for microservices when managing complex distributed transactions that require compensation logic, or when coordinating parallel execution across multiple services. It is essential for long-running processes like payment and fulfillment, where infrastructure failures require durable recovery.