P
AdvancedClaude

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

Adapt this prompt

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:

  1. Service decomposition (name, responsibility, boundaries)
  2. Communication strategy (REST, gRPC, events, message broker)
  3. Data management (database per service, CQRS/Event Sourcing patterns where relevant)
  4. Inter-service authentication and authorization
  5. Observability (logs, metrics, distributed tracing)
  6. Deployment strategy (Docker, Kubernetes, cloud)
  7. Pitfalls to avoid for this type of project
  8. 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

Migrating a monolith to microservicesStarting a new high-volume SaaS projectPreparing an architecture for a technical audit

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 Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further