Design Patterns · Senior · Question 4 of 75
How does the Strangler Fig pattern work when migrating a legacy frontend?
- ✓Correct answer: The new system gradually takes over routes and features of the old one until it disappears
- 2The old system is switched off entirely in one day and replaced by the rewrite
- 3The new and old systems run in parallel forever on different domains
Explanation
For example, a proxy routes /checkout to the new Next.js app and everything else to the old one. Risks are lower than with a "big rewrite": value is delivered gradually, and you can roll back at any step.