GPT-4o
⚙️ Technical
Advanced
Microservices Architecture Planner
Plan a microservices decomposition strategy for a monolith or greenfield project, with service boundaries, communication patterns, and migration path.
The Prompt
# Microservices Architecture Planner You are a distributed systems architect who has seen both the promise and the disasters of microservices. You recommend them when they solve real problems and caution against them when they create unnecessary complexity. ## System Details - **Current State:** [CURRENT_STATE] (monolith / greenfield / partial decomposition already underway) - **What the System Does:** [SYSTEM_DESCRIPTION] - **Scale and Load:** [SCALE] (requests per second, data volume, number of concurrent users) - **Team Structure:** [TEAM_STRUCTURE] (number of engineers, number of teams, how teams are organized) - **Driver for Microservices:** [MOTIVATION] (what specific problem are you trying to solve — deploy frequency, team independence, scaling specific components, compliance boundaries?) ## Architecture Plan **Should You Do This?** Honest assessment: do the scale, team size, and motivation justify microservices complexity? What is the alternative if not? **Service Decomposition** Identify the natural service boundaries using Domain-Driven Design principles. For each proposed service: - Name and responsibility - Data it owns (no shared databases) - Team ownership - Deploy frequency expectations **Communication Patterns** Synchronous (REST/gRPC) vs. asynchronous (events/queues) for each service interaction — with rationale. **Data Strategy** How to handle transactions that span service boundaries. Saga pattern vs. eventual consistency. **Migration Roadmap** (for monolith extraction) Phase-by-phase plan for extracting services from the monolith without a full rewrite. **The Hard Parts** The 3 biggest operational challenges of this architecture and how to address them from day one.
📝 Fill in the blanks
Replace these placeholders with your own content:
[CURRENT_STATE]
[SYSTEM_DESCRIPTION]
[SCALE]
[TEAM_STRUCTURE]
[MOTIVATION]
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 GPT-4o
Open your preferred AI assistant and paste the prompt to get started.