Advanced
Legacy System Refactoring
Architect a comprehensive strategy for refactoring a monolithic codebase into microservices.
📝 提示内容
Analyze the following pseudocode representing a monolithic legacy system. Identify specific code smells, tight couplings, and scalability bottlenecks. Propose a step-by-step migration strategy to transition this architecture into a set of loosely coupled microservices. For each step, justify the trade-offs regarding latency, consistency, and eventual availability. Include patterns such as Strangler Fig, Circuit Breaker, and CQRS where appropriate.