The Challenge
A single Node.js monolith served three product teams, and every release meant coordinating a shared deploy window across all of them - a change in one team’s feature could block or break another’s, so releases slowed to a biweekly cadence regardless of how ready any one team’s work actually was. The instinct in situations like this is to reach for “let’s rebuild this as microservices properly,” but that’s usually a mistake: it treats the migration as a greenfield design exercise instead of an extraction problem, and greenfield estimates are almost always wrong in the optimistic direction.
The Approach
- Mapped bounded contexts from module boundaries already visible in the codebase, instead of redesigning the domain model from scratch
- Stood up a strangler-fig proxy in front of the monolith, routing traffic to new services as each one shipped while the monolith kept serving everything not yet extracted
- Extracted one service per sprint behind a feature flag, validated against the monolith’s existing behavior with request-level diffing before cutting traffic over
The Result
- 3 product teams deploying independently within one quarter
- Release cadence up from biweekly to daily for extracted services
- Zero customer-facing incidents during the migration
Catching behavior drift before it shipped
The highest-risk step in any extraction is behavioral drift - a service that looks correct in isolation but handles an edge case differently than the code it replaced. Every extracted endpoint ran in shadow mode first: the proxy sent the request to both the monolith and the new service, served the monolith’s response to the actual user, and logged any diff between the two responses. A handful of real discrepancies turned up this way, all involving timezone handling in date fields that the original code handled implicitly through a shared utility the new service hadn’t imported. Catching that before cutover, instead of after, is the entire reason the migration shipped with zero customer-facing incidents.
Where it landed
Three teams now deploy on three independent schedules. The monolith still exists - it’s smaller every quarter, not gone, which is usually how these migrations actually end rather than the clean “we killed the monolith” story that gets told after the fact.