Skip to content
Development
Skill

/microservices-patterns

Provides microservices design patterns for service decomposition, API gateway, circuit breakers, saga orchestration, and inter-service communication. Use when designing or implementing microservices architecture.

From plugin
software-development-department
74116 skills28 agents1 MCP

Claude Code

$ npx -y skills add tranhieutt/software_development_department --skill microservices-patterns --agent claude-code

SKILL.md

microservices-patterns.SKILL.md
name: microservices-patterns
type: reference
description: "Provides microservices design patterns for service decomposition, API gateway, circuit breakers, saga orchestration, and inter-service communication. Use when designing or implementing microservices architecture."
paths: ["**/docker-compose*", "**/k8s/**", "**/services/**"]
effort: 4
allowed-tools: Read, Glob, Grep, Write, Edit, Bash
user-invocable: true
when_to_use: "When designing microservices architecture, implementing service communication, or decomposing monoliths"

Microservices Patterns

Service decomposition, communication, resilience, and orchestration patterns.

Service Decomposition

| Pattern | Description | Use When | |---------|-------------|----------| | Domain-Driven | Align services with bounded contexts | Complex business domains | | Data-Ownership | Service owns its data store | Data isolation required | | Team-Aligned | One service per team | Large organizations |

Communication Patterns

Sync: HTTP/gRPC

\`\`\`yaml

API Gateway routing

routes:

  • match: { prefix: /orders }

route: { cluster: order-service }

  • match: { prefix: /users }

route: { cluster: user-service } \`\`\`

Async: Message Queue

\`\`\` Producer → Exchange → Queue → Consumer (Topic) (DLQ on failure) \`\`\`

Use async for: event propagation, eventual consistency, load leveling.

Resilience Patterns

Circuit Breaker

\`\`\`typescript // Example with opossum const breaker = new CircuitBreaker(fetchUserProfile, { timeout: 3000, errorThresholdPercentage: 50, resetTimeout: 30000, }); \`\`\`

Retry with Backoff

\`\`\`typescript async function retryWithBackoff(fn, maxRetries = 3) { for (let i = 0; i < maxRetries; i++) { try { return await fn(); } catch (e) { await sleep(Math.pow(2, i) * 1000); } } throw new Error('Max retries exceeded'); } \`\`\`

Data Patterns

| Pattern | Consistency | Complexity | Use When | |---------|-------------|------------|----------| | Saga (orchestration) | Eventual | High | Complex multi-service transactions | | Saga (choreography) | Eventual | Medium | Simple event chains | | Event sourcing | Eventual | High | Audit trail, time travel | | Shared database | Strong | Low | Anti-pattern, avoid |

API Gateway

Tools: Kong, AWS API Gateway, Envoy, NGINX.

Responsibilities: routing, auth, rate limiting, request transformation, load balancing.

Observability Stack

  • Distributed tracing: Jaeger / Tempo
  • Metrics: Prometheus + Grafana
  • Logs: ELK / Loki
  • Service mesh: Istio / Linkerd (adds mTLS, traffic management)

Related Skills

  • `backend-architect` — single-service architecture
  • `event-sourcing-architect` — event sourcing patterns
  • `kubernetes-architect` — deployment patterns
  • `deployment-engineer` — CI/CD for microservices
Read more
@tranhieutt
Ships withsoftware-development-department

Software Development Department

74116 skills28 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
74
Star history of tranhieutt/software_development_department on GitHub, a chart by star-history.com

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about microservices-patterns.

Which coding agents can use microservices-patterns?
microservices-patterns installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.