distributed-patterns
Installation
SKILL.md
Distributed Patterns — Core Distributed System Pattern Guide
Detailed pattern implementations for inter-microservice communication, data consistency, and fault tolerance.
1. Saga Pattern
Choreography vs Orchestration Selection
| Criteria | Choreography | Orchestration |
|---|---|---|
| Number of services | 2-4 | 5 or more |
| Flow complexity | Linear | Branching/conditional |
| Coupling | Event-driven loose coupling | Centralized in orchestrator |
| Visibility | Difficult to trace flow | Central state management |
| Failure handling | Each service self-compensates | Orchestrator coordinates compensation |