Design a Zero-Downtime Strangler Migration Off a Retail Monolith

Last updated: November 29, 2026

Quick Overview

A retailer runs its storefront, order management and pricing in one large Java monolith over a shared Oracle database. Design how you would incrementally move to independently deployable services on the cloud while the business keeps taking orders every day.

EPAM Systems
System Design
Software Engineer
EPAM Systems
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


A retailer runs its storefront, order management and pricing in one large Java monolith over a shared Oracle database. Design how you would incrementally move to independently deployable services on the cloud while the business keeps taking orders every day.

Legacy modernization and cloud migration are a large share of EPAM's engagements, and senior or lead candidates are expected to plan them end to end. The interviewer checks that you choose seams by business domain, handle the shared database honestly, and keep every step reversible.

What the Interviewer Expects
  • Pick the first service by domain boundary, change frequency and risk
  • Route traffic through a facade so calls can shift gradually (strangler fig)
  • Have a concrete plan for splitting the shared database and syncing data
  • Keep each step reversible with flags, shadow traffic and comparison
  • Address cross-service consistency for orders (sagas, outbox)
  • Discuss team topology and how to measure progress
Key Topics to Cover
strangler fig pattern
database decomposition
change data capture
transactional outbox
sagas
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you validate that the new pricing service gives the same answers as the monolith?
  • What do you do with reports and batch jobs that join across many monolith tables?
  • How do you prevent ending up with a distributed monolith?
  • When would you stop and leave part of the monolith in place?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

No downtime and no order loss. Peak season freezes changes for about 8 weeks a year. Goals: independent deploys per domain, cloud hosting, faster release cadence (from monthly to daily for migrated pa...

High-Level Design

Put an API gateway or reverse proxy in front of the monolith first, with no behavior change, so routing becomes a configuration decision. Map bounded contexts (catalog, pricing, cart, orders, customer...


Submit Your Answer
Markdown supported

Related Questions