workflow-orchestration-patterns

Design durable Temporal workflows with saga patterns and retries.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill workflow-orchestration-patterns-hcmute-rtic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/HCMUTE-RTIC/fit-hcmute/tree/main/.agent/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill workflow-orchestration-patterns-hcmute-rtic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on designing and implementing robust, long-running, and fault-tolerant workflows for distributed systems using Temporal.

Core Features & Use Cases

  • Workflow vs. Activity Separation: Understand the core principles of orchestrating logic versus executing external tasks.
  • Saga Pattern: Implement distributed transactions with compensation logic for reliable rollbacks.
  • Entity Workflows: Manage the lifecycle of individual entities with persistent state.
  • Resilience Patterns: Leverage automatic state preservation, retry policies, and idempotency for fault tolerance.
  • Use Case: Orchestrate a complex order fulfillment process involving inventory reservation, payment processing, and shipping, ensuring all steps complete successfully or are reliably compensated on failure.

Quick Start

Consult the documentation on workflow and activity separation for designing your Temporal application.

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 reliable rollbacks. You need it when orchestrating complex distributed processes like order fulfillment, ensuring steps complete successfully or are compensated on failure.

How do I separate workflow and activity logic in Temporal?

To separate workflow and activity logic in Temporal, distinguish between orchestrating durable business logic and executing external side effects. Workflows manage the state and sequence, while activities handle non-deterministic operations like API calls or database updates.

How do I build fault tolerance and resilience into distributed workflows?

Build fault tolerance and resilience into distributed workflows by leveraging automatic state preservation, configuring retry policies, and implementing idempotency. These mechanisms ensure long-running processes recover automatically from transient failures without data corruption.

Can I use entity workflows to manage persistent state in microservice orchestration?

Yes, you can use entity workflows to manage the lifecycle of individual entities with persistent state in microservice orchestration. This pattern provides a durable execution layer for tracking specific domain objects across long-running distributed transactions.

What is the best way to handle complex order fulfillment across microservices?

The best way to handle complex order fulfillment across microservices is using a durable workflow orchestrator. This coordinates inventory reservation, payment processing, and shipping, ensuring reliable compensation logic triggers if any step fails.

Why do long-running distributed processes fail and how does idempotency help?

Long-running distributed processes fail due to network timeouts, service crashes, or race conditions. Idempotency helps by ensuring retries execute external activities safely without causing duplicate side effects, maintaining workflow consistency.