{"id":"microservices-patterns","name":"microservices-patterns","summary":"サービス境界、イベント駆動型通信、レジリエンスパターンを備えたマイクロサービスアーキテクチャを設計します。","body":"# Microservices Patterns\n\nMaster microservices architecture patterns including service boundaries, inter-service communication, data management, and resilience patterns for building distributed systems.\n\n## When to Use This Skill\n\n- Decomposing monoliths into microservices\n- Designing service boundaries and contracts\n- Implementing inter-service communication\n- Managing distributed data and transactions\n- Building resilient distributed systems\n- Implementing service discovery and load balancing\n- Designing event-driven architectures\n\n## Core Concepts\n\n### 1. Service Decomposition Strategies\n\n**By Business Capability**\n\n- Organize services around business functions\n- Each service owns its domain\n- Example: OrderService, PaymentService, InventoryService\n\n**By Subdomain (DDD)**\n\n- Core domain, supporting subdomains\n- Bounded contexts map to services\n- Clear ownership and responsibility\n\n**Strangler Fig Pattern**\n\n- Gradually extract from monolith\n- New functionality as microservices\n- Proxy routes to old/new systems\n\n### 2. Communication Patterns\n\n**Synchronous (Request/Response)**\n\n- REST APIs\n- gRPC\n- GraphQL\n\n**Asynchronous (Events/Messages)**\n\n- Event streaming (Kafka)\n- Message queues (RabbitMQ, SQS)\n- Pub/Sub patterns\n\n### 3. Data Management\n\n**Database Per Service**\n\n- Each service owns its data\n- No shared databases\n- Loose coupling\n\n**Saga Pattern**\n\n- Distributed transactions\n- Compensating actions\n- Eventual consistency\n\n### 4. Resilience Patterns\n\n**Circuit Breaker**\n\n- Fail fast on repeated errors\n- Prevent cascade failures\n\n**Retry with Backoff**\n\n- Transient fault handling\n- Exponential backoff\n\n**Bulkhead**\n\n- Isolate resources\n- Limit impact of failures\n\n## Detailed patterns and worked examples\n\nDetailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.","author":"@wshobson","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/wshobson/agents/tree/main/plugins/backend-development/skills/microservices-patterns","license":"MIT","category":"design","lang":"en","tokens":384,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"references/details.md","size":14455,"sha256":"d5317e835b4e72d1bc8cdf3e65c2a54b928f474fcc5a8c967171ed12da695d92"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}