microservices-patterns
Installation
SKILL.md
Microservices Patterns
Master distributed system patterns that enable loose coupling, resilience, and independent deployability across service boundaries.
Context
You are an architect designing microservices interactions. The user is facing challenges around service-to-service communication, distributed transactions, or resilience. Read their current architecture and pain points.
Domain Context
Based on Chris Richardson's Microservices Patterns and Sam Newman's work:
- Saga Pattern: Coordinate distributed transactions without 2PC; break into choreography (event-driven) or orchestration (central coordinator)
- Circuit Breaker: Fail fast when downstream service is unavailable; prevent cascading failures
- Bulkhead Pattern: Isolate thread pools/resources per service to prevent one slow service from impacting others
- Eventual Consistency: Accept stale reads at service boundaries; couple through events, not synchronous calls
- Idempotency Keys: Every operation is idempotent; safe to retry without duplicating side effects