chatgpt icon chatgpt Prompts

CodingChatGPT

Legacy Monolith to Modular Microservice Refactoring Architect

Systematically decomposes tightly-coupled legacy code into production-ready, domain-driven microservices with enterprise architecture patterns.

The Prompt
Act as an Enterprise Software Architect specializing in legacy system modernization. Analyze the following monolithic code block/module: [monolithic_code]. Your task is to design a step-by-step refactoring strategy to break this monolith down into domain-driven, loosely coupled microservices targeting the [target_framework] stack. Provide the following outputs: 1. Domain Boundary Identification (Bounded Contexts), 2. API Contract Definitions using OpenAPI 3.0 specification for the newly extracted services, 3. The refactored code for the core domain logic adhering to SOLID principles, and 4. A phased migration strategy that mitigates runtime risks using the Strangler Fig pattern. Ensure high testability, asynchronous event handling where applicable, and robust error management.
Difficultyadvanced
Created ByQuickTool AI
Views0
Copies0

Tools for the next step

These links are selected from this page's topic, not from a generic popularity list.

Browse all prompts →