The Challenge
What Matrix Was Facing
Matrix operated a 12-year-old monolithic ERP system that had accumulated significant technical debt. Deployments required full-system downtime, a single bug in any module could take down all business operations, and adding a new integration consumed 3 months of engineering. The business needed the system re-architected without halting operations or rewriting from scratch.
The Solution
What We Built
We applied the strangler fig pattern to decompose the monolith incrementally. We identified eight bounded domains — inventory, finance, HR, procurement, CRM, logistics, reporting, and auth — and extracted each as an independent service over 18 months. An API gateway handled routing and backwards-compatible versioning throughout the migration. Each service owned its own PostgreSQL schema and communicated asynchronously via RabbitMQ events. Feature flags controlled traffic routing between old and new implementations.

Results
