Migrating an aging PHP monolith to a modular architecture requires a progressive strategy to avoid downtime.
Recipe
- Diagnose with Deptrac.
- Avoid 20-microservice big-bang. Find natural domain boundaries.
- Modularize in-place first.
- Strangler pattern on lower-risk domains.
- Outbox for cross-boundary communication.
- Extract progressively, keep low-risk pieces in the monolith.