Microservices
by @clawkk
Deep microservices workflow—service boundaries, data ownership, synchronous vs async integration, contracts, deployment independence, and operational complex...
clawhub install microservices📖 About This Skill
name: microservices description: Deep microservices workflow—service boundaries, data ownership, synchronous vs async integration, contracts, deployment independence, and operational complexity. Use when splitting a monolith, reviewing service boundaries, or debugging distributed failures.
Microservices (Deep Workflow)
Microservices trade code simplicity for operational and contract complexity. Justify each boundary with ownership and data isolation—not fashion.
When to Offer This Workflow
Trigger conditions:
Initial offer:
Use six stages: (1) goals & constraints, (2) boundaries & data ownership, (3) integration patterns, (4) contracts & versioning, (5) reliability patterns, (6) ops & governance). Confirm org maturity and platform capabilities.
Stage 1: Goals & Constraints
Goal: Why not a modular monolith first?
Valid drivers
Costs
Exit condition: Explicit assumption that modular monolith was considered.
Stage 2: Boundaries & Data Ownership
Goal: One service owns each aggregate’s write path; no shared writable tables across services.
Practices
Exit condition: Entity → owning service map.
Stage 3: Integration Patterns
Goal: Sync HTTP/gRPC vs async events—match consistency needs.
Patterns
Exit condition: Sequence diagrams for top three flows.
Stage 4: Contracts & Versioning
Goal: Backward-compatible evolution; consumer-driven contracts optional.
Practices
Stage 5: Reliability Patterns
Goal: Timeouts, retries with backoff, circuit breakers, bulkheads; idempotent handlers for retries.
Stage 6: Ops & Governance
Goal: Service catalog, SLIs on dependency edges, golden paths for new services.