Fastruby iconFastrubyAug 28, 2026 ~1 min source read

Repay Tech Debt with the Strangler Fig Pattern

Replacing a business-critical legacy system does not have to mean committing to a risky, all-at-once rewrite. The strangler fig pattern offers a practical alternative: migrate one capability at a time, run the old and new systems side by side, and gradually retire the legacy code as each replacement is validated.

Repay Tech Debt with the Strangler Fig Pattern

Share this story

Send the public story page.

Useful takeaways from this story.

Replacing a business-critical legacy system does not have to mean committing to a risky, all-at-once rewrite.

The strangler fig pattern offers a practical alternative: migrate one capability at a time, run the old and new systems side by side, and gradually retire the legacy code as each replacement is validated.

This post walks through how it works, where it fits, and a practical Rails-based example of migrating one piece of functionality without stopping the business to do it.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

Replacing a business-critical legacy system does not have to mean committing to a risky, all-at-once rewrite. The strangler fig pattern offers a practical alternative: migrate one capability at a time, run the old and new systems side by side, and gradually retire the legacy code as each replacement is validated. This post walks through how it works, where it fits, and a practical Rails-based example of migrating one piece of functionality without stopping the business to do it.

How it works

  • The Problem: A Business-Critical System You're Afraid to Touch Most organizations don't wake up one day and decide to replace a legacy system.

What to take from it

It happens gradually, as the cost and risk of maintaining the system…

Details worth keeping

Originally appeared on The Rails Tech Debt Blog.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app