Advanced
Architectural Refactoring of a Monolithic Codebase
Analyze a legacy monolithic system and propose a migration strategy to microservices.
📝 Promptens innehåll
You are a Senior Software Architect. A large e-commerce platform is suffering from a monolithic codebase where the product catalog, user management, and order processing are tightly coupled. Deployments take hours, and scaling individual components is impossible.
Task: 1. Identify three specific code smells or architectural anti-patterns likely present in this scenario. 2. Propose a step-by-step refactoring plan to decouple these modules into separate microservices. 3. Address how you will handle data consistency and transaction management (e.g., Sagas) during the transition phase. 4. Explain how you would implement an API Gateway to route traffic appropriately.