Index of every page on this site: llms.txt
All skills
wshobson avatar

/microservices-patterns

@4220308
by Seth Hobsonwshobson/agents43k stars
4,518
Run it yourself

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

Use this Skill: https://skilld.dev/gh/wshobson/agents/microservices-patterns

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈57 tokens for metadata: the name and description. ≈467 when used: this file. ≈3.6k more on demand in 1 file.

Description uses 2.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈230 characters, or 2.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Microservices Patterns

Master microservices architecture patterns including service boundaries, inter-service communication, data management, and resilience patterns for building distributed systems.

When to Use This Skill

  • Decomposing monoliths into microservices
  • Designing service boundaries and contracts
  • Implementing inter-service communication
  • Managing distributed data and transactions
  • Building resilient distributed systems
  • Implementing service discovery and load balancing
  • Designing event-driven architectures

Core Concepts

1. Service Decomposition Strategies

By Business Capability

  • Organize services around business functions
  • Each service owns its domain
  • Example: OrderService, PaymentService, InventoryService

By Subdomain (DDD)

  • Core domain, supporting subdomains
  • Bounded contexts map to services
  • Clear ownership and responsibility

Strangler Fig Pattern

  • Gradually extract from monolith
  • New functionality as microservices
  • Proxy routes to old/new systems

2. Communication Patterns

Synchronous (Request/Response)

  • REST APIs
  • gRPC
  • GraphQL

Asynchronous (Events/Messages)

  • Event streaming (Kafka)
  • Message queues (RabbitMQ, SQS)
  • Pub/Sub patterns

3. Data Management

Database Per Service

  • Each service owns its data
  • No shared databases
  • Loose coupling

Saga Pattern

  • Distributed transactions
  • Compensating actions
  • Eventual consistency

4. Resilience Patterns

Circuit Breaker

  • Fail fast on repeated errors
  • Prevent cascade failures

Retry with Backoff

  • Transient fault handling
  • Exponential backoff

Bulkhead

  • Isolate resources
  • Limit impact of failures

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts20d5 checks · Risk SAFE
  • Gen Agent Trust Hub20d

    The skill provides educational content and Python code examples for microservices architecture patterns, including service decomposition, communication, and resilience. It uses standard industry libraries and follows best practices for design templates. No security issues were detected.

  • Socket20d

    No alerts

  • Snyk20d

    Risk: LOW · No issues

  • Runlayer8mo

    1 file scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 4220308. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 6 months ago
  • microservices
  • architecture
  • service-boundaries
  • distributed-systems
  • event-driven
  • resilience
  • saga-pattern
  • circuit-breaker
  • ddd

README badge

README badge for wshobson/agents/microservices-patterns

Teaches microservices architecture patterns including service decomposition, inter-service communication, data management, and resilience techniques like circuit breakers and sagas. Use when decomposing monoliths, designing service boundaries, or building event-driven distributed systems.

Generated from the current SKILL.md.

Does this skill cover event-driven architecture patterns?
Yes. The skill includes asynchronous communication patterns using Kafka, message queues (RabbitMQ, SQS), and pub/sub, as well as the saga pattern for distributed transactions with eventual consistency.
What resilience patterns are included?
The skill covers circuit breaker, retry with exponential backoff, and bulkhead patterns for handling transient faults and preventing cascade failures in distributed systems.
Does this address data management across services?
Yes. It covers the database-per-service pattern for loose coupling and the saga pattern for handling distributed transactions across service boundaries.
Can I use this for decomposing a monolith?
Yes. The skill includes service decomposition strategies (by business capability, DDD subdomains) and the strangler fig pattern for gradual migration from monolith to microservices.

Generated from the current SKILL.md. These answers refresh after source changes.