Strangler Pattern
Safely migrate legacy controllers to actions.api with feature flag routing and zero downtime.
Steps
- Verify suitability: active endpoints with complex logic or rollback requirements only
- Capture real behavior: test live endpoint, record responses and auth details
- Create integration tests in actions.api suite (must fail first — TDD RED)
- Implement Request/Handler/Service pattern until tests pass (TDD GREEN)
- Add 4-line feature flag routing to express-web-api controller
- Validate with migration checklist — see also full guide and migration YAML