Prompt Library ⚙️ Technical Design a Microservices Architecture
Any ⚙️ Technical Advanced

Design a Microservices Architecture

Get a senior architect's breakdown of how to split a monolith or design a new system as microservices.
👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

Design a microservices architecture for the following system:

System description: [what the application does]
Current state: [greenfield / monolith being split / existing microservices being redesigned]
Scale requirements: [expected users, requests per second, data volume]
Team size: [number of engineers — affects how many services are practical]
Tech stack preferences: [languages, cloud provider, container orchestration]
Key non-functional requirements: [high availability / low latency / strong consistency / eventual consistency / other]
Budget constraints: [startup / scale-up / enterprise]

Provide a complete architecture design:

SERVICE DECOMPOSITION:
- Recommended services list with responsibilities
- Boundaries between services (what each owns)
- Rationale for each split (why not monolith, why not finer-grained)
- Services that are strong candidates and services to leave as a monolith initially

COMMUNICATION PATTERNS:
- Synchronous vs asynchronous communication decisions per service pair
- API gateway design
- Event bus or message queue recommendations
- Service discovery approach

DATA MANAGEMENT:
- Database per service pattern applied
- Recommended database type per service and why
- Handling distributed transactions (saga pattern or alternatives)
- Data consistency strategy

INFRASTRUCTURE:
- Container orchestration recommendation
- Service mesh consideration
- CI/CD pipeline per service
- Monitoring and observability stack

SECURITY:
- Authentication and authorisation between services
- Secrets management
- Network security between services

FAILURE HANDLING:
- Circuit breaker pattern implementation
- Retry and timeout strategies
- Graceful degradation approach

MIGRATION PLAN (if splitting a monolith):
- Strangler fig pattern application
- Order of extraction (which service to extract first and why)
- Rollback strategy

TRADE-OFFS:
- What this architecture does well
- What it does poorly
- When to reconsider this approach

📝 Fill in the blanks

Replace these placeholders with your own content:

[what the application does]
[greenfield / monolith being split / existing microservices being redesigned]
[expected users, requests per second, data volume]
[number of engineers — affects how many services are practical]
[languages, cloud provider, container orchestration]
[high availability / low latency / strong consistency / eventual consistency / other]
[startup / scale-up / enterprise]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Any

Open your preferred AI assistant and paste the prompt to get started.