advanced
Enterprise Legacy Refactoring
Create a comprehensive strategy for refactoring a monolithic legacy codebase without downtime.
📝 Prompt Content
You are a Lead Software Architect at a Fortune 500 company. We have a monolithic Java application (running on a legacy application server) that handles millions of transactions daily. The code has high technical debt, lacks unit tests, and tightly couples business logic with database access. Develop a phased refactoring strategy to migrate this monolith to a microservices architecture using the Strangler Fig pattern. Your strategy must address: 1) Maintaining zero downtime during the transition. 2) Ensuring data consistency between the monolith and new services. 3) Establishing CI/CD pipelines for the new architecture. 4) Managing team structure changes (Conway's Law) to support the new topology. Provide a high-level roadmap and a specific example of extracting a single non-critical service.