Advanced
Monolith to Microservices Refactoring
Strategic refactoring plan for a legacy monolithic codebase into microservices.
📝 Prompt-Inhalt
Analyze the following monolithic legacy code snippet (assume a large Java/Spring application). Propose a refactoring strategy to extract the payment processing module into a standalone microservice. Identify the coupling points and suggest design patterns (such as Anti-Corruption Layer or Strangler Fig pattern) to minimize downtime during the transition. Discuss how to handle data synchronization between the old monolith database and the new service database, focusing on transactional integrity.