Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: censseo-specforge-microservices-patterns3description: Microservices Patterns4---56# Microservices Patterns78> Design distributed systems with proper service boundaries, communication patterns, and resilience.910## Core Principles1112- **Single Responsibility**: Each service owns one business capability13- **Data Autonomy**: Each service owns its data, no shared databases14- **Loose Coupling**: Services communicate through well-defined contracts15- **Failure Isolation**: One service failure shouldn't cascade16- **Independent Deployment**: Services deploy independently1718## Quick Reference1920| Pattern | Purpose | When to Use |21|---------|---------|-------------|22| API Gateway | Single entry point | Multiple clients, aggregation needed |23| Circuit Breaker | Prevent cascade failures | Remote service calls |24| Saga | Distributed transactions | Multi-service business process |25| Event Sourcing | Audit trail, replay | Complex state transitions |26| CQRS | Read/write optimization | High-read or complex queries |2728## Service Decomposition2930**By Business Capability:**31```32├── OrderService # Order lifecycle33├── PaymentService # Payment processing34├── InventoryService # Stock management35├── ShippingService # Delivery tracking36└── NotificationService # Alerts and emails37```3839**By Bounded Context (DDD):**40- Identify ubiquitous language per context41- Define context boundaries42- Map relationships between contexts4344## Communication Patterns4546| Style | When to Use | Examples |47|-------|-------------|----------|48| Synchronous (REST/gRPC) | Real-time response needed | User queries, validation |49| Async Events (Kafka) | Fire-and-forget, broadcast | Order placed, payment received |50| Async Request-Reply | Long operations | Report generation, batch processing |5152## Critical Don'ts5354- Never share databases between services55- Don't create distributed monoliths (tightly coupled services)56- Avoid synchronous chains (A→B→C→D)57- Don't skip compensating transactions in sagas58- Don't adopt microservices before team is ready5960## When to Load References6162- For resilience patterns: `Read references/resilience-patterns.md`63- For data patterns: `Read references/data-patterns.md`6465## External Resources6667- [Microservices.io Patterns](https://microservices.io/patterns/)68- [Microsoft Azure Patterns](https://learn.microsoft.com/en-us/azure/architecture/microservices/design/patterns)6970---71> Converted and distributed by [TomeVault](https://tomevault.io/claim/censseo) — claim your Tome and manage your conversions.72<!-- tomevault:4.0:skill_md:2026-04-15 -->
Run npx skillmds@latest add tomevault-io/censseo-specforge-microservices-patterns in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Microservices Patterns It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.