- The big-bang rewrite from monolith to microservices fails 70% of the time. Incremental migration using the strangler fig pattern is slower but dramatically safer.
- Decompose by business capability, not by technical layer. The right service boundaries are domain boundaries, not code boundaries.
- You will need a solid API gateway, event bus, and observability stack before you extract the first service — invest in the platform first.
Context
At Logicbric, we have inherited, assessed, and modernised monolithic systems across property management, field service, and industrial ERP. The pattern is consistent: the monolith served the business well for years, but as the product grew, deployment velocity dropped, scaling became expensive, and teams started stepping on each other’s code. The temptation to rewrite from scratch is overwhelming — and almost always wrong.
This playbook documents the approach we use to migrate monolithic systems to microservices incrementally, keeping the existing system running and delivering value throughout the transition. We have applied this approach to Downstream ERP and Dynabric, and the principles are universal.
Map the domain before touching the code
The first mistake teams make is decomposing along technical lines — extracting the “auth service” or the “notification service” first because they seem self-contained. But technical decomposition does not reduce the coupling that is actually slowing you down. Start with domain mapping: identify the bounded contexts in your business. In Downstream ERP, we identified procurement, inventory, production planning, sales, and finance as distinct bounded contexts. Each has its own language, its own data model, and its own rate of change.
- Run domain-mapping workshops with product and engineering to identify bounded contexts
- Map data ownership: which tables belong to which context? Where is data shared?
- Identify the highest-coupling seams in the monolith — these are your extraction candidates
- Document the communication patterns between contexts — which calls are synchronous vs. asynchronous?
- Prioritise extraction by business value, not technical ease
Build the platform layer
Before extracting any service, you need the infrastructure to support distributed systems: an API gateway for routing, an event bus for asynchronous communication, a service registry for discovery, distributed tracing for debugging, and centralised logging. Extracting a service without this infrastructure is like launching a satellite without mission control — you might get it up there, but you will not be able to manage it.
- Deploy an API gateway that can route traffic between the monolith and new services transparently
- Set up an event bus (Kafka, RabbitMQ, or cloud-native equivalent) for async communication
- Implement distributed tracing (OpenTelemetry) across both the monolith and new services
- Establish CI/CD pipelines for independent service deployment
- Set up centralised logging and monitoring with correlation IDs across service boundaries
Extract the first service using the strangler fig
Choose a bounded context that has clear boundaries, moderate complexity (not the simplest and not the hardest), and high business value. Build the new service alongside the monolith, routing traffic through the API gateway. Start by routing read traffic to the new service while writes still go to the monolith. Once reads are stable, migrate writes. Once both are stable, decommission the monolith code for that context. This is the strangler fig pattern — the new growth gradually replaces the old without killing it.
- Implement the anti-corruption layer: the new service should not adopt the monolith’s data model
- Use feature flags to control traffic routing between monolith and new service
- Run both paths in parallel and compare outputs before cutting over
- Migrate data incrementally — do not attempt a big-bang data migration
- Keep the monolith code for this context in maintenance mode until the new service is proven
Iterate and accelerate
The first extraction is the slowest because you are building patterns, tooling, and team muscle simultaneously. The second is faster. By the third, the team has reusable templates for service scaffolding, data migration, traffic routing, and testing. Document everything: what worked, what did not, what you would do differently. This institutional knowledge is the real product of the migration — the services are just the output.
- Conduct a retrospective after each extraction — capture patterns and anti-patterns
- Build service templates that encode your standards for logging, health checks, configuration, and testing
- Establish SLOs for each extracted service before moving to the next
- Resist the urge to extract everything at once — maintain a steady, sustainable pace
- Re-evaluate priorities after each extraction — the landscape changes as services are separated