workflow-orchestration-patterns

Design durable Temporal workflows with saga compensation and fan-out patterns.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill workflow-orchestration-patterns-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/yusufcmg/Antigravity-Agents-Workflows/tree/main/.agent/skills/backend/workflow-patterns
Command: npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill workflow-orchestration-patterns-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of building reliable, long-running, and distributed systems by providing patterns and best practices for workflow orchestration using Temporal.

Core Features & Use Cases

  • Durable Workflows: Design workflows that can survive infrastructure failures and resume automatically.
  • Saga Pattern: Implement distributed transactions with compensation logic for rollback.
  • Entity Workflows: Model long-lived entities with persistent state.
  • Parallel Execution: Manage fan-out/fan-in patterns for concurrent task processing.
  • Async Callbacks: Integrate with external systems and human approvals.
  • Use Case: Orchestrating a multi-step e-commerce order fulfillment process that involves inventory checks, payment processing, shipping, and customer notifications, ensuring atomicity and resilience.

Quick Start

Use the workflow-orchestration-patterns skill to understand how to implement the Saga pattern for distributed transactions.

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 in microservices?

The saga pattern for microservices is implemented by defining compensation logic for each workflow step, allowing Temporal to automatically execute rollbacks if a subsequent activity fails. This ensures distributed transaction atomicity without two-phase commits.

How do I handle state management and determinism constraints in Temporal workflows?

State management in Temporal workflows requires strict determinism constraints, meaning workflow code must not perform direct I/O or rely on mutable global state. Durable execution guarantees that state is persisted, allowing workflows to resume exactly where they left off after failures.

What is the best way to orchestrate fan-out fan-in execution for concurrent task processing?

Fan-out fan-in execution for concurrent task processing is orchestrated by dispatching multiple asynchronous activities from a single workflow and awaiting their completion. This pattern allows distributed systems to process parallel tasks efficiently before aggregating the final results.

How do I separate workflow vs activity logic when building resilient distributed systems?

Separating workflow vs activity logic involves isolating deterministic orchestration logic inside workflows, while placing non-deterministic operations like API calls and database interactions inside activities. This separation ensures durable execution and reliable state management.

When do I need durable workflows for microservice orchestration?

Durable workflows for microservice orchestration are needed when coordinating long-running processes like e-commerce order fulfillment. They survive infrastructure failures and resume automatically, ensuring state consistency across distributed systems without manual intervention.

Can I use entity workflows to model long-lived entities with persistent state?

Entity workflows model long-lived entities with persistent state by providing a durable execution layer for state management in distributed systems. This approach allows you to safely update and query entity state over extended periods without losing data consistency.