Advanced
Monolith to Microservices Refactoring Strategy
Analyze a complex monolithic architecture and propose a migration strategy to microservices focusing on data consistency and fault tolerance.
📝 Prompt Content
Act as a Senior Solutions Architect. You are tasked with refactoring a legacy e-commerce monolithic application into a microservices architecture. The monolith handles User Management, Product Catalog, Order Processing, and Inventory in a single codebase with a shared SQL database.
Your task is to produce a comprehensive migration strategy document that includes:
1. A step-by-step Strangler Fig pattern implementation plan.
2. Identification of data consistency challenges (specifically regarding ACID transactions in the monolith vs. BASE in microservices) and proposed solutions (e.g., Sagas, Event Carried State Transfer).
3. A strategy for handling inter-service communication (synchronous vs. asynchronous).
4. An analysis of potential fault points and circuit breaker implementation strategies.
Ensure the tone is professional, technical, and authoritative. Avoid generic advice; focus on specific architectural trade-offs.