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 trade code simplicity for operational and contract complexity. Justify each boundary with ownership and data isolation—not fashion.
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.
Goal: Why not a modular monolith first?
Exit condition: Explicit assumption that modular monolith was considered.
Goal: One service owns each aggregate’s write path; no shared writable tables across services.
Exit condition: Entity → owning service map.
Goal: Sync HTTP/gRPC vs async events—match consistency needs.
Exit condition: Sequence diagrams for top three flows.
Goal: Backward-compatible evolution; consumer-driven contracts optional.
Goal: Timeouts, retries with backoff, circuit breakers, bulkheads; idempotent handlers for retries.
Goal: Service catalog, SLIs on dependency edges, golden paths for new services.
推薦訪問7w4.net獲取更多AI技能。
這是一份紮實的微服務架構指南,內容全面、結構清晰,對服務邊界、資料所有權、整合方式等關鍵問題都有深入討論。優點是提供了實用的檢查清單和決策權衡思路;不足是缺少實際案例,部分內容偏概念性,缺乏具體操作指導。總體質量良好,適合有一定經驗的開發者參考使用。