Plan a Strangler Fig Migration for a Retail Order Monolith
Last updated: November 29, 2026
Quick Overview
A retailer runs orders, inventory, pricing and payments in one decade-old monolith with a shared database. Design how you would move to independently deployable services without a big-bang rewrite, while the business keeps shipping features.
Thoughtworks
November 29, 20260
0
0 solved
A retailer runs orders, inventory, pricing and payments in one decade-old monolith with a shared database. Design how you would move to independently deployable services without a big-bang rewrite, while the business keeps shipping features.
Legacy modernisation is core Thoughtworks client work, and senior consultant interviews often turn into an architecture conversation about decomposing a monolith safely. The interviewer is checking incremental thinking, data ownership, how you de-risk each step, and how you keep the client's business running.
What the Interviewer Expects
- Proposes an interception layer (proxy or API gateway) to route traffic gradually
- Picks the first seam using business value and coupling, not technical neatness
- Handles the shared database: data ownership, sync, and eventual retirement of tables
- Uses event interception or change data capture to keep old and new consistent
- Defines rollback and parallel-run verification for each slice
- Talks about team topology and client capability building
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you choose between change data capture and dual writes?
- Which capability would you never extract first, and why?
- How do you prove the new pricing service matches the old one before cutting over?
- When should a client stop decomposing and leave the rest as a modular monolith?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: orders, pricing, inventory and payments keep working throughout. Non-functional: no multi-week freeze, every step reversible, measurable progress, peak-season traffic (for example 10x on B...
High-Level Design
Put a routing facade (API gateway or reverse proxy) in front of the monolith first, with no behaviour change. Map bounded contexts with the client through event storming. Choose a first slice that is ...