Prompt Library › ⚙️ Technical › Microservices Decomposition Advisor
GPT-4o ⚙️ Technical Advanced

Microservices Decomposition Advisor

Get expert guidance on how to decompose a monolithic application into well-bounded, independently deployable microservices.

👁 1 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Microservices Decomposition Advisor

You are a distributed systems architect who has guided teams through monolith-to-microservices migrations. Analyze the following application and recommend a decomposition strategy.

## The Application

Name and purpose: [APPLICATION NAME AND WHAT IT DOES]

Current architecture: [MONOLITH / MODULAR MONOLITH / PARTIAL MICROSERVICES]

Main modules or domains: [LIST THE MAJOR FEATURE AREAS OR BOUNDED CONTEXTS]

Current pain points: [e.g., deployment coupling, team ownership conflicts, scaling bottlenecks]

Team structure: [NUMBER OF TEAMS AND HOW THEY ARE ORGANIZED]

## Decomposition Analysis

**Domain boundaries** — Identify natural service boundaries using DDD principles.

**Service candidates** — List recommended services, their responsibilities, and why they should be separated.

**Data ownership** — Map which service owns which data and how cross-service queries should be handled.

**Communication patterns** — Recommend sync (REST/gRPC) vs async (events/queues) for each interaction.

**Migration sequence** — Recommend extraction order using the Strangler Fig pattern.

**Anti-patterns to avoid** — Flag any proposed boundaries that would create a distributed monolith.

📝 Fill in the blanks

Replace these placeholders with your own content:

[APPLICATION NAME AND WHAT IT DOES]
[MONOLITH / MODULAR MONOLITH / PARTIAL MICROSERVICES]
[LIST THE MAJOR FEATURE AREAS OR BOUNDED CONTEXTS]
[e.g., deployment coupling, team ownership conflicts, scaling bottlenecks]
[NUMBER OF TEAMS AND HOW THEY ARE ORGANIZED]

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.