Strangler Fig Migration
Incrementally route traffic to new components behind stable interfaces
- Early, measurable value
- Low blast radius
- Reversible changes
A practical, decision-ready guide to choose between a gradual migration (e.g., strangler) and a complete rewrite. Includes decision criteria and signals, time-to-value vs risk matrix, execution playbooks, governance guardrails, anti-patterns, and where AI safely accelerates analysis, refactoring, and testing.
Choose migration or rewrite based on objective signals: business criticality, risk, time-to-first-value, architectural rot, compliance pressure, and talent availability. Favor gradual migration when you can isolate seams and deliver value in increments; prefer a rewrite when foundational constraints block progress or regulatory risk is acute.
| Category | Signals favoring Gradual Migration | Signals favoring Complete Rewrite |
|---|---|---|
| Architecture Fitness | Clear domain seams; adapters possible; data can be duplicated | Tight coupling everywhere; shared DB schema with no boundaries |
| Business Continuity | Continuous value delivery required; strict SLAs | Limited downtime acceptable if it eliminates ongoing risk |
| Compliance & Security | Fixes possible via refactor/controls without upending core | Systemic issues need foundational redesign |
| Team & Talent | Existing team can maintain legacy while carving out modules | Legacy is unmaintainable; new stack attracts talent |
| Time-to-Value | Immediate wins required via incremental delivery | Willing to delay benefits for clean foundation |
| Data Constraints | Feasible CDC, dual-write, or event sourcing | Data model is irreparably wrong; needs new canonical model |
Incrementally route traffic to new components behind stable interfaces
Lift critical capabilities to managed services to reduce ops risk
Rewrite bounded modules while preserving legacy contracts
Build new domain service with boundary adaptation
Rebuild on fit-for-purpose stack with feature freeze
| Path | First Value | Risk Level | Key Dependencies |
|---|---|---|---|
| Strangler/Incremental | 2-8 weeks | Low-Medium | Stable contracts, route control, feature flags |
| Replatform First | 2-6 weeks | Low | Cloud readiness, IaC maturity |
| Module Rewrite | 6-16 weeks | Medium | Contract tests, facade performance |
| Greenfield + ACL | 8-24 weeks | Medium-High | Domain modeling, data sync |
| Complete Rewrite | 16-40+ weeks | High | Design validation, migration strategy |
Introduce SLOs, feature flags, and automated rollback
Map APIs, events, and DB boundaries; add facade if needed
Build new component; route small traffic percentage and observe
Scale traffic; deprecate legacy paths; update runbooks
Freeze features; align on scope, compliance, and data model
Stand up platform foundations, CI/CD, security baselines
Deliver end-to-end slices; validate with dark launches
Run parallel for critical paths; execute data migration
Architecture extraction from repos and infrastructure
Automated code graph analysis and impact assessment
Automated test creation for behavior verification
Safe code modernization with review requirements
Schema inference and mapping verification helpers
No production PII to external AI; private models only
Contract tests and feature flags for all changes
SBOM generation and CVE remediation before cutovers
Comprehensive logging for data access and migration steps
Measurable exit criteria and rollback readiness checks
Post-cutover SLOs, data reconciliation, and telemetry
Rewrites without criteria or interim value delivery
Architectural changes without operational readiness
Breaking domain boundaries during data migration
Disguising new features as parity requirements
Delaying reconciliation until migration completion
Treating AI-generated code as authoritative without validation
You can isolate seams; business needs continuous delivery; outages risk revenue
Framework EOL is imminent; data model and security are fundamentally broken
Core domain needs clean model while peripheral capabilities are refactored
Detect misalignment early and realign tech strategy to growth
Read more →Clear triggers, models, and ROI for bringing in external guidance—augmented responsibly with AI
Read more →Ship safer upgrades—predict risk, tighten tests, stage rollouts, and use AI where it helps
Read more →A clear criteria-and-evidence framework to choose and evolve your stack—now with AI readiness and TCO modeling
Read more →Turn strategy into a metrics-driven, AI-ready technology roadmap
Read more →Get a decision memo with evidence, risk envelopes, and a 90-day plan for safer, faster delivery.