P
💻DeveloppementAdvancedClaude

Design a Microservices Architecture

Design a complete microservices architecture with DDD decomposition, communication patterns, resilience, and observability.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un architecte logiciel spécialisé dans les systèmes distribués et les architectures microservices. Je dois migrer ou concevoir un système selon une architecture microservices.

Système à concevoir :
[DESCRIPTION_DU_SYSTÈME: ex. plateforme e-commerce avec catalogue, commandes, paiements, expédition]

Contexte technique :

  • Charge estimée : [EX: 10 000 utilisateurs concurrents, 1M transactions/jour]
  • Équipes disponibles : [EX: 3 équipes de 4 développeurs]
  • Stack préféré : [EX: Node.js, Python, Go, Java]
  • Infrastructure : [EX: Kubernetes sur AWS, GCP, Azure]
  • Contraintes : [EX: conformité PCI-DSS, latence < 100ms, haute disponibilité]

Conçois l'architecture microservices complète :

  1. Décomposition des services : identifie les bounded contexts selon DDD et propose les microservices avec leurs responsabilités. Justifie la granularité choisie.
  2. Communication entre services : recommande synchrone (REST, gRPC) vs asynchrone (message broker) selon les cas d'usage. Propose la topologie de l'event bus si applicable.
  3. Gestion des données : stratégie de base de données par service, gestion de la cohérence éventuelle, patterns Saga pour les transactions distribuées.
  4. Patterns de résilience : Circuit Breaker, Retry, Bulkhead, Timeout avec exemples de configuration.
  5. Observabilité : stratégie de logging centralisé, tracing distribué et métriques.
  6. Sécurité : authentification inter-services (mTLS, JWT), gestion des secrets.
  7. Diagramme : fournis un diagramme d'architecture en ASCII art ou en notation Mermaid.
100% found this useful

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

<p>This prompt covers the seven critical dimensions of a microservices architecture starting from DDD (Domain-Driven Design) fundamentals for service decomposition. Anchoring in bounded contexts ensures a decomposition aligned with business realities rather than purely technical decisions.</p><p>The question of inter-service communication is often underestimated: the choice between synchronous and asynchronous has profound implications for resilience and data consistency. This prompt forces explicit reflection on these trade-offs for each type of interaction.</p><p>Requesting a Mermaid diagram is a significant added value: this format is directly integrable into GitHub/GitLab documentation and allows communicating the architecture visually to all stakeholders, both technical and non-technical.</p>

Use Cases

Monolith to microservices migrationNew distributed system designExisting architecture review

Expected Output

A complete architecture specification with identified services, communication strategies, resilience patterns, and Mermaid 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

  • LéaAI

    Pour maximiser la pertinence, précisez dans `[DESCRIPTION_DU_SYSTÈME]` les dépendances métier entre les bounded contexts, cela orientera les choix synchrone/asynchrone. Ajoutez aussi un critère de succès mesurable (ex. « temps de déploiement < 2h ») pour juger la granularité des services.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementAdvancedChatGPT

Master Advanced TypeScript Types

Strengthen your code's type safety with advanced generics, utility types, and discriminated unions.

39556
💻DeveloppementIntermediateAll AIs

Feature Flag Management

Progressive deployments with feature flags

0225
💻DeveloppementIntermediateAll AIs

Midjourney Prompt for Creating a Chatbot

Midjourney has become an essential tool for designing a chatbot's visual identity. Whether you're developing a virtual assistant for customer service, a conversational bot for your e-commerce site, or an AI companion for a mobile app, your chatbot's appearance plays a crucial role in user engagement. A well-designed avatar inspires trust, humanizes the interaction, and reinforces your brand image. With Midjourney, you can generate avatars, conversational interfaces, mascots, and UI visual elements without needing graphic design skills. The right prompts let you create visuals consistent with your brand guidelines, from accessible cartoon styles to clean corporate designs. In this guide, you'll find optimized prompts to generate all the visual assets your chatbot needs: main avatar, emotion variations, stylized speech bubbles, and welcome screens. Each prompt has been tested and refined to produce professional results you can use directly in your development projects.

0238
💻DeveloppementBeginnerAll AIs

Encryption at rest and in transit

Securing data at rest and in transit

0229