Microservices Patterns

Microservices Patterns

Teaches microservices design: service boundaries, sync and event-driven communication, per-service data, sagas and resilience patterns like circuit breakers.

Skill files2 files

references/

SKILL.md91 lines
1
---
2
name: microservices-patterns
3
description: Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.
4
---
5
6
# Microservices Patterns
7
8
Master microservices architecture patterns including service boundaries, inter-service communication, data management, and resilience patterns for building distributed systems.
9
10
## When to Use This Skill
11
12
- Decomposing monoliths into microservices
13
- Designing service boundaries and contracts
14
- Implementing inter-service communication
15
- Managing distributed data and transactions
16
- Building resilient distributed systems
17
- Implementing service discovery and load balancing
18
- Designing event-driven architectures
19
20
## Core Concepts
21
22
### 1. Service Decomposition Strategies
23
24
**By Business Capability**
25
26
- Organize services around business functions
27
- Each service owns its domain
28
- Example: OrderService, PaymentService, InventoryService
29
30
**By Subdomain (DDD)**
31
32
- Core domain, supporting subdomains
33
- Bounded contexts map to services
34
- Clear ownership and responsibility
35
36
**Strangler Fig Pattern**
37
38
- Gradually extract from monolith
39
- New functionality as microservices
40
- Proxy routes to old/new systems
41
42
### 2. Communication Patterns
43
44
**Synchronous (Request/Response)**
45
46
- REST APIs
47
- gRPC
48
- GraphQL
49
50
**Asynchronous (Events/Messages)**
51
52
- Event streaming (Kafka)
53
- Message queues (RabbitMQ, SQS)
54
- Pub/Sub patterns
55
56
### 3. Data Management
57
58
**Database Per Service**
59
60
- Each service owns its data
61
- No shared databases
62
- Loose coupling
63
64
**Saga Pattern**
65
66
- Distributed transactions
67
- Compensating actions
68
- Eventual consistency
69
70
### 4. Resilience Patterns
71
72
**Circuit Breaker**
73
74
- Fail fast on repeated errors
75
- Prevent cascade failures
76
77
**Retry with Backoff**
78
79
- Transient fault handling
80
- Exponential backoff
81
82
**Bulkhead**
83
84
- Isolate resources
85
- Limit impact of failures
86
87
## Detailed patterns and worked examples
88
89
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
90
91

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…