chatgpt icon chatgpt Prompts

CodingChatGPT

Legacy Code Archaeologist and Microservices Refactoring Architect

Transforms messy legacy monoliths into clean, modular, domain-driven microservices with tests and API specs.

The Prompt
Act as a Principal Software Architect specializing in legacy system modernization. I am presenting you with a monolithic or tightly coupled legacy code snippet written in [source_language]. Your task is to analyze its core business logic, identify hidden anti-patterns and technical debt, and systematically refactor it into clean, decoupled, domain-driven microservices architecture using [target_framework_or_language]. Ensure your output includes: 1) A comprehensive dependency and side-effect mapping, 2) Step-by-step decoupling strategy without downtime, 3) Production-ready refactored code with robust error handling and unit tests, and 4) An API contract definition using OpenAPI/Swagger standards. Here is the legacy code: [legacy_code_snippet]
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 →