skillfed

microservices-expert

Get expert guidance on building scalable microservices systems with proven patterns like API Gateway, Circuit Breaker, and Saga for distributed transactions. Learn service discovery, asynchronous messaging, and failure-resilient design principles.

Microservices Expert provides architecture patterns and design principles for building distributed systems.

AI-generated summary based on this skill's SKILL.md

38 8 Apache-2.0 updated by personamanagmentlayer

Install

personamanagmentlayer/pcl/microservices-expert · repository language: TypeScript

git clone https://github.com/personamanagmentlayer/pcl
cp -r pcl/stdlib/api/microservices-expert ~/.claude/skills/microservices-expert
npx skillfed install personamanagmentlayer/pcl/microservices-expert

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I design a microservices architecture?

microservices-expert guides you through foundational architecture patterns and design principles for building scalable distributed systems. Start by defining clear service boundaries, establishing communication strategies (synchronous vs. asynchronous), and implementing core patterns like API Gateway for routing, Circuit Breaker for resilience, and Service Discovery for dynamic service location. The skill covers proven approaches to decompose monoliths and structure services around business capabilities.

What are microservices patterns and best practices?

microservices-expert teaches essential patterns including API Gateway, Circuit Breaker, Saga for distributed transactions, Event Sourcing, and the Database-per-Service pattern. Best practices include designing for failure, implementing proper service-to-service communication with retry logic and timeouts, using asynchronous messaging (like RabbitMQ), and monitoring with distributed tracing. The skill emphasizes avoiding anti-patterns such as distributed monoliths and chatty service interactions.

How do I implement service mesh and service discovery?

microservices-expert covers setting up service discovery (e.g., Consul) to enable dynamic service registration and location, and service mesh implementation (e.g., Istio) for managing inter-service communication, security, and observability. Learn API Gateway configuration for routing, load balancing, and request transformation. The skill provides practical guidance on deployment automation and operational setup to support your microservices infrastructure.

How should I handle distributed transactions in microservices?

microservices-expert explains the Saga pattern for coordinating long-running transactions across services, Event Sourcing for maintaining consistent state, and eventual consistency principles. Learn orchestration vs. choreography approaches, compensating transactions for rollbacks, and strategies for handling failures. The skill addresses the challenges of the database-per-service pattern and provides patterns for maintaining data consistency across service boundaries.

What microservices anti-patterns should I avoid?

microservices-expert identifies critical pitfalls including distributed monoliths, excessive service-to-service chatter, improper failure handling, and operational complexity without proper tooling. Learn why tight coupling, synchronous-only communication, and inadequate monitoring lead to problems. The skill emphasizes designing resilient systems with proper Circuit Breaker implementation, asynchronous messaging strategies, and comprehensive observability to prevent common failures.

How do I build failure-resilient microservices systems?

microservices-expert teaches resilience through Circuit Breaker patterns, timeout configurations, retry logic with exponential backoff, and graceful degradation. Implement health checks, distributed tracing for observability, and proper monitoring across services. Learn to design for partial failures, use bulkheads to isolate faults, and employ asynchronous messaging to decouple services. The skill covers operational practices that prevent cascading failures and ensure system stability.

SKILL.md

rendered from the published skill — quoted content, verbatim

Microservices Expert

Expert guidance for microservices architecture, design patterns, service communication, and distributed system challenges.

Core Concepts

Microservices Principles
  • Single responsibility per service
  • Independently deployable
  • Decentralized data management
  • Infrastructure automation
  • Design for failure
  • Evolutionary design
Architecture Patterns
  • API Gateway
  • Service Discovery
  • Circuit Breaker
  • Saga Pattern
  • Event Sourcing
  • CQRS
Communication
  • Synchronous (HTTP/REST, gRPC)
  • Asynchronous (Message queues, Events)
  • Service mesh
  • API composition
  • Backend for Frontend (BFF)

Service Design

```python from fastapi import FastAPI, HTTPException from pydantic import BaseModel import httpx from typing import List, Optional from circuitbreaker import circuit import asyncio

Individual Microservice

app = FastAPI(title="Order Service",

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
stdlib/api/microservices-expert/SKILL.md

Related skills

Tags

distributed-architecture resilience-patterns service-orchestration async-messaging system-design failure-handling api-composition transaction-coordination infrastructure-automation observability