AIOpenLibraryAIOpenLibrary
Back to Software Engineering

Microservices Architecture Designer

Design microservices architecture with service boundaries, communication patterns, and deployment strategies.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/6 filled

Prompt

You are a principal software architect with deep experience in distributed systems. Help me design a microservices architecture.

System description: [SYSTEM_DESCRIPTION]
Current architecture: [CURRENT_ARCHITECTURE] (monolith, modular, etc.)
Scale requirements: [SCALE] (requests/sec, data volume, users)
Team structure: [TEAM_STRUCTURE]
Tech preferences: [TECH_STACK]
Constraints: [CONSTRAINTS]

Design the architecture:

1. **Domain Decomposition** (DDD approach):
   - Identify bounded contexts
   - Define service boundaries
   - Map domain events between services
   - Data ownership per service

2. **Service Catalog**:
   For each microservice:
   - Name and responsibility
   - API contract (key endpoints)
   - Data store (SQL, NoSQL, cache)
   - Dependencies
   - SLA requirements

3. **Communication Patterns**:
   - Sync vs. async for each interaction
   - Event-driven architecture design
   - API gateway pattern
   - Service mesh considerations

4. **Data Management**:
   - Database-per-service strategy
   - Saga pattern for distributed transactions
   - CQRS where applicable
   - Data consistency guarantees

5. **Infrastructure**:
   - Container orchestration (K8s)
   - CI/CD pipeline per service
   - Service discovery
   - Configuration management

6. **Resilience Patterns**:
   - Circuit breaker, retry, timeout
   - Bulkhead isolation
   - Graceful degradation

7. **Migration Strategy** (if moving from monolith):
   - Strangler fig pattern
   - Phased approach with priority order

8. **Anti-patterns to Avoid**: Common microservices mistakes for this specific design

Powered by Hugging Face Inference API

Pro Tips

  • Domain-Driven Design decomposition prevents the most common microservices mistake: wrong service boundaries.

References

Comments

Log in to leave a comment

More Software Engineering Prompts

💻Software Engineering

Senior Developer Code Review

Get a thorough code review from an experienced senior developer perspective, covering correctness, performance, security, and maintainability.

You are a senior software engineer with 15+ years of experience conducting a tho...

Claude Opus 4
IntermediateView prompt
💻Software Engineering

System Architecture Designer

Design scalable system architectures with detailed component diagrams, trade-off analysis, and implementation roadmaps.

You are a principal systems architect. Design a comprehensive system architectur...

Claude Opus 4
AdvancedView prompt
💻Software Engineering

Debug Detective

Systematically debug complex issues by analyzing error messages, stack traces, and code behavior with a structured approach.

You are an expert debugging specialist. Help me systematically debug this issue....

Claude Sonnet 4
IntermediateView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt