본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)41k · #6643

workflow-orchestration-patterns

하는 일

이 도구는 시간이 오래 걸리거나 여러 시스템이 관련된 경우에도, 단계별로 진행해야 하는 복잡한 과정을 정리하도록 돕습니다. 무언가 잘못되어도 모든 것이 올바르게 작동하도록 보장합니다.

사용하는 경우

  • ✓재고, 결제, 배송이 관련된 고객 주문 과정을 정리할 때.
  • ✓며칠이 걸릴 수 있는 긴 문서 승인 과정을 관리하는 경우.
  • ✓거래가 완전히 완료되거나 완전히 실패하도록 시스템의 여러 부분을 조율할 때.

스킬 링크

https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/workflow-orchestration-patterns/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/backend-development/skills/workflow-orchestration-patterns/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“예약 가능 여부 확인, 객실 확정, 결제 처리가 포함된 호텔 예약 과정을 어떻게 정리하면 좋을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

작은 '활동'들의 호출을 조율하는 주요 '워크플로'를 정의하는 방식으로 작동합니다. 활동이 실패하면 워크플로는 재시도하거나 복구 계획을 따를 수 있으며, 진행 상황을 자동으로 저장합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Workflow Orchestration Patterns

Master workflow orchestration architecture with Temporal, covering fundamental design decisions, resilience patterns, and best practices for building reliable distributed systems.

When to Use Workflow Orchestration

Ideal Use Cases (Source: docs.temporal.io)

  • Multi-step processes spanning machines/services/databases
  • Distributed transactions requiring all-or-nothing semantics
  • Long-running workflows (hours to years) with automatic state persistence
  • Failure recovery that must resume from last successful step
  • Business processes: bookings, orders, campaigns, approvals
  • Entity lifecycle management: inventory tracking, account management, cart workflows
  • Infrastructure automation: CI/CD pipelines, provisioning, deployments
  • Human-in-the-loop systems requiring timeouts and escalations

When NOT to Use

  • Simple CRUD operations (use direct API calls)
  • Pure data processing pipelines (use Airflow, batch processing)
  • Stateless request/response (use standard APIs)
  • Real-time streaming (use Kafka, event processors)

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

Workflow Design

  1. Keep workflows focused - Single responsibility per workflow
  2. Small workflows - Use child workflows for scalability
  3. Clear boundaries - Workflow orchestrates, activities execute
  4. Test locally - Use time-skipping test environment

Activity Design

  1. Idempotent operations - Safe to retry
  2. Short-lived - Seconds to minutes, not hours
  3. Timeout configuration - Always set timeouts
  4. Heartbeat for long tasks - Report progress
  5. Error handling - Distinguish retryable vs non-retryable

Common Pitfalls

Workflow Violations:

  • Using datetime.now() instead of workflow.now()
  • Threading or async operations in workflow code
  • Calling external APIs directly from workflow
  • Non-deterministic logic in workflows

Activity Mistakes:

  • Non-idempotent operations (can't handle retries)
  • Missing timeouts (activities run forever)
  • No error classification (retry validation errors)
  • Ignoring payload limits (2MB per argument)

Operational Considerations

Monitoring:

  • Workflow execution duration
  • Activity failure rates
  • Retry attempts and backoff
  • Pending workflow counts

Scalability:

  • Horizontal scaling with workers
  • Task queue partitioning
  • Child workflow decomposition
  • Activity batching when appropriate

Additional Resources

Official Documentation:

  • Temporal Core Concepts: docs.temporal.io/workflows
  • Workflow Patterns: docs.temporal.io/evaluate/use-cases-design-patterns
  • Best Practices: docs.temporal.io/develop/best-practices
  • Saga Pattern: temporal.io/blog/saga-pattern-made-easy

Key Principles:

  1. Workflows = orchestration, Activities = external calls
  2. Determinism is non-negotiable for workflows
  3. Idempotency is critical for activities
  4. State preservation is automatic
  5. Design for failure and recovery
자주 묻는 질문

'워크플로'와 '활동'은 무엇인가요?

'워크플로'는 어떤 순서로 무엇을 할지 정하는 주요 레시피입니다. '활동'은 워크플로가 실행하라고 지시하는 특정 작업으로, 예를 들어 '재고 확인'이나 '결제 처리'입니다.

워크플로 코드가 '결정적(deterministic)'이어야 하는 이유는 무엇인가요?

결정적이라는 것은 몇 번을 실행하든 항상 같은 순서로 정확히 같은 일을 한다는 뜻입니다. 실패에서 복구하고 오류 없이 중단된 곳에서 다시 시작하려면 이것이 중요합니다.

언제 이것을 쓰지 말아야 하나요?

데이터 저장(CRUD)이나 간단한 데이터 처리 같은 단순 작업에는 쓰지 마세요. 장기 실행 과정, 실패 복구가 필요하거나 여러 단계와 시스템이 관련된 경우에 가장 적합합니다.

상세 정보

작성자의 원본 설명

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

repo: wshobson/agents

인기도

GitHub 스타
41k
순위
#6643
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬