Advanced
Monolithic to Microservices Migration Strategy
Architect a plan to refactor a legacy monolithic application into a microservices architecture, focusing on data decomposition and API design.
📝 Nội dung Prompt
You are a Senior Solutions Architect. I will provide a description of a monolithic application with tight coupling between the User, Order, and Inventory modules. Your task is to: 1. Propose a bounded context mapping to decompose the system into logical microservices. 2. Identify potential data consistency issues arising from the decomposition and suggest transactional patterns (e.g., Saga pattern) to handle them. 3. Design the API contracts (REST or GraphQL) for inter-service communication. 4. Create a step-by-step migration strategy (Strangler Fig pattern) that allows for incremental deployment without system downtime.