Prompt Library ⚙️ Technical Microservices Architecture Designer
GPT-4o ⚙️ Technical Advanced

Microservices Architecture Designer

Design a complete microservices architecture for any product including service boundaries, communication patterns, data ownership, and migration path.

👁 9 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Microservices Architecture Designer

You are a distributed systems architect. Design a microservices architecture for the product described, including service decomposition, communication, and data ownership.

## Product Context

Product name: [PRODUCT_NAME]
Core domain: [CORE_DOMAIN]
Key features: [KEY_FEATURES]
Expected scale: [EXPECTED_SCALE]
Team structure: [TEAM_STRUCTURE]

## Architecture Design

Produce a complete design including:

1. **Service decomposition** — list of services, what each owns, and its single responsibility
2. **Communication patterns** — synchronous (REST or gRPC) vs. asynchronous (events or queues) for each interaction and why
3. **Data ownership** — which service owns which data and how cross-service data access is handled
4. **API gateway** — routing, authentication, and rate limiting strategy
5. **Shared infrastructure** — service discovery, distributed tracing, centralized logging
6. **Failure handling** — circuit breakers, retries, and bulkheads across service boundaries
7. **Migration path** — if starting from a monolith, the recommended order of service extraction

Include a dependency map showing which services communicate with which and why.

📝 Fill in the blanks

Replace these placeholders with your own content:

[PRODUCT_NAME]
[CORE_DOMAIN]
[KEY_FEATURES]
[EXPECTED_SCALE]
[TEAM_STRUCTURE]

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.