Microservices Architecture

Microservices Architecture

Guides an AI agent to design microservices: service boundaries, communication patterns, API gateways, service mesh, discovery and data consistency.

Skill files9 files

references/

scripts/

templates/

SKILL.md96 lines
1
---
2
name: microservices-architecture
3
description: >
4
Design and implement microservices architecture including service boundaries,
5
communication patterns, API gateways, service mesh, service discovery, and
6
distributed system patterns. Use when building microservices, distributed
7
systems, or service-oriented architectures.
8
---
9
10
# Microservices Architecture
11
12
## Table of Contents
13
14
- [Overview](#overview)
15
- [When to Use](#when-to-use)
16
- [Quick Start](#quick-start)
17
- [Reference Guides](#reference-guides)
18
- [Best Practices](#best-practices)
19
20
## Overview
21
22
Comprehensive guide to designing, implementing, and maintaining microservices architectures. Covers service decomposition, communication patterns, data management, deployment strategies, and observability for distributed systems.
23
24
## When to Use
25
26
- Designing new microservices architectures
27
- Decomposing monolithic applications
28
- Implementing service-to-service communication
29
- Setting up API gateways and service mesh
30
- Implementing service discovery
31
- Managing distributed transactions
32
- Designing inter-service data consistency
33
- Scaling independent services
34
35
## Quick Start
36
37
Minimal working example:
38
39
```
40
Bounded Contexts:
41
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
42
│ Order Service │ │ User Service │ │ Payment Service │
43
│ │ │ │ │ │
44
│ - Create Order │ │ - User Profile │ │ - Process Pay │
45
│ - Order Status │ │ - Auth │ │ - Refund │
46
│ - Order History │ │ - Preferences │ │ - Transactions │
47
└─────────────────┘ └─────────────────┘ └─────────────────┘
48
```
49
50
## Reference Guides
51
52
Detailed implementations in the `references/` directory:
53
54
| Guide | Contents |
55
|---|---|
56
| [Service Boundary Design](references/service-boundary-design.md) | Service Boundary Design |
57
| [Communication Patterns](references/communication-patterns.md) | Communication Patterns |
58
| [API Gateway Pattern](references/api-gateway-pattern.md) | API Gateway Pattern |
59
| [Service Discovery](references/service-discovery.md) | Service Discovery |
60
| [Data Consistency Patterns](references/data-consistency-patterns.md) | Data Consistency Patterns |
61
| [Service Mesh (Istio)](references/service-mesh-istio.md) | Service Mesh (Istio) |
62
63
## Best Practices
64
65
### ✅ DO
66
67
- Design services around business capabilities
68
- Use asynchronous communication where possible
69
- Implement circuit breakers for resilience
70
- Use API gateway for cross-cutting concerns
71
- Implement distributed tracing
72
- Use service mesh for service-to-service communication
73
- Design for failure (chaos engineering)
74
- Implement health checks for all services
75
- Use correlation IDs for request tracking
76
- Version your APIs
77
- Implement proper monitoring and alerting
78
- Use event-driven architecture for loose coupling
79
- Implement idempotent operations
80
- Use database per service pattern
81
82
### ❌ DON'T
83
84
- Share databases between services
85
- Create overly granular services (nanoservices)
86
- Use distributed transactions (two-phase commit)
87
- Ignore network latency and failures
88
- Share domain models between services
89
- Deploy all services as one unit
90
- Hardcode service URLs
91
- Forget to implement authentication/authorization
92
- Use synchronous calls for long-running operations
93
- Ignore backward compatibility
94
- Skip monitoring and logging
95
- Create circular dependencies between services
96

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,334 prompts

More by @OpenSourceBuffGuy

See all
Woman stares blankly into open refrigerator prompt image

Woman stares blankly into open refrigerator

Generates a 30-second, 12-shot candid home-video montage of a woman in her messy apartment with her dog, with Korean dialogue, handheld drift and detailed ambient sound.

video-prompt, reference-image, face-reference, character-consistency, timed-beats, multi-shot, handheld, home-video, film-grain, candid, lip-sync, animals, pet-care, natural-light, camera-movement, humorous, casual, woman, korea, structured-output, long-form, vlog, cozy

Woman walks golden retriever in analog vlog prompt image

Woman walks golden retriever in analog vlog

Generates a handheld analog-style morning vlog of a woman walking her golden retriever, with scripted spoken lines and camera placement notes.

video-prompt, seedance, vlog, handheld, film-grain, lip-sync, home-video, pov, selfie, camera-movement, animals, pet-care, cozy, candid, natural-light, golden-hour, woman, structured-output, for-content-creators, long-form, casual, character-design, short-film

Nine Christmas portraits of one fluffy dog prompt image

Nine Christmas portraits of one fluffy dog

Makes a 3x3 grid of nine hyperrealistic Christmas portraits of the same dog from a reference photo, in trees, snow, studio and cozy indoor scenes.

image-prompt, nano-banana, reference-image, pet-portrait, christmas, holiday, animals, multi-panel, photorealistic, cinematic, soft-lighting, winter, cozy, social-media-graphic, invitation, vertical-format, vibrant-colors, dramatic-lighting, studio-lighting, for-families, pet-care, long-form, bokeh, food-photography

Reviews

Loading reviews…

Discussion

Loading comments…