Design a Microservices Architecture for an Application
Guides the design of a complete microservices architecture, from service decomposition to deployment strategy, adapted to project constraints.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
You are a software architect specializing in distributed systems. Help me design a microservices architecture for the following project.
Project description:
[project description]
Technical constraints:
- Expected load: [number of concurrent users]
- Infrastructure budget: [budget]
- Current technology stack: [current stack]
- Team: [team size] developers
Key business requirements: [business requirements]
Provide:
- Service decomposition (name, responsibility, boundaries)
- Communication strategy (REST, gRPC, events, message broker)
- Data management (database per service, CQRS/Event Sourcing patterns where relevant)
- Inter-service authentication and authorization
- Observability (logs, metrics, distributed tracing)
- Deployment strategy (Docker, Kubernetes, cloud)
- Pitfalls to avoid for this type of project
- An architecture diagram in ASCII art or a structured description
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
The prompt provides all critical constraints (load, budget, team) that influence architectural choices. Requesting pitfalls to avoid forces the AI to anticipate common mistakes. The ASCII diagram anchors the response in something concrete and visualizable.
Use Cases
Expected Output
A detailed architecture with service list, communication and data strategies, security checklist, deployment plan and architecture diagram.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.