Hire A Team
Request a Quote

Frequently Asked Questions

What is the strangler fig pattern in legacy system modernization?

The Strangler Fig pattern is an approach to legacy system modernization in which an existing application is gradually replaced with new components. Instead of rebuilding the entire system at once, developers move individual features or services to a modern application while the legacy system continues handling the remaining operations.

Key Takeaways

  • The Strangler Fig pattern allows businesses to replace legacy application components gradually rather than all at once.
  • A routing layer directs requests to either the existing application or the new components.
  • The process generally involves introducing a façade, migrating functionality in stages, and eventually retiring the legacy system.
  • It can reduce migration risk, limit business disruption, and allow new features to be released during modernization.
  • Data consistency, integration dependencies, routing performance, and testing need careful attention throughout the process.

Understanding the Strangler Fig Pattern

The Strangler Fig pattern is a software modernization strategy that helps businesses replace an outdated application without immediately shutting it down or rebuilding everything from scratch.

The name comes from the strangler fig plant, which grows around an existing tree and gradually develops into a separate structure. As it grows, it eventually replaces the original tree.

The same idea is applied to software development. A new application is built alongside the existing legacy system. Developers gradually move selected functionality from the old application to the new one until the legacy system is no longer needed.

The pattern was introduced by software architect Martin Fowler as a way to manage the risks involved in replacing large applications. His explanation of the Strangler Fig application approach describes how functionality can be transferred gradually instead of attempting a complete replacement in one operation.

For businesses planning legacy system transformation, this approach offers a controlled way to introduce modern technologies while preserving existing business operations.

For example, a company may have an old enterprise application that handles customer management, order processing, inventory, and billing. Instead of replacing the entire application, the development team can first move customer management to a new service. The other functions continue operating on the existing system until they are ready to be migrated.

How Does the Strangler Fig Pattern Work?

The Strangler Fig pattern works by placing a routing layer between users and the existing application. This layer determines whether a request should be handled by the legacy system or a newly developed component.

Initially, most requests continue going to the old application. As new components become available, the routing layer directs the relevant requests to the modern application instead.

The process continues until all required functionality has been moved and the legacy application can be retired.

The implementation can be understood through four main stages.

1. Introduce a Routing Layer or Façade

The first step is to introduce a façade, proxy, or routing layer between the users and the existing application.

This layer acts as an intermediary. It receives incoming requests and directs them to the correct application component.

Initially, most or all requests continue going to the legacy system. Users can continue working with the application as they normally do.

The routing layer creates the foundation for gradual migration because developers can redirect individual functions without requiring users to interact directly with two separate applications.

2. Build the New Application Components

The development team identifies which features or modules should be moved first.

These components are developed separately using the selected modern technologies and architecture. The new components should be designed to communicate with the existing application wherever required.

For example, a business may decide to replace its outdated customer management module. Developers build a new customer service with updated functionality while leaving order processing and billing on the legacy system.

The new component is tested before it starts handling live business requests.

3. Redirect Functionality to the New Components

Once a new component is ready, the routing layer is configured to send the relevant requests to it instead of the legacy application.

The old system continues handling all functionality that has not yet been migrated.

As the project progresses, additional components are developed, tested, and connected to the routing layer. The amount of functionality handled by the legacy application gradually decreases.

4. Retire the Legacy Application

The final stage begins when all required functionality has been transferred and the new application can operate independently.

The development team verifies that no critical business process or external integration still depends on the old system. Once the remaining dependencies are resolved, the legacy application can be decommissioned.

Microsoft explains this process in its Strangler Fig pattern documentation, including how the façade gradually directs requests away from the old application until it can be removed.

Example of the Strangler Fig Pattern in Practice

Consider a retail business that operates a legacy eCommerce application. The application manages product information, customer accounts, shopping carts, orders, payments, and inventory through a single architecture.

The system still supports daily operations, but its outdated technology makes it difficult to introduce new features and integrate modern services.

Instead of replacing the entire application, the business can use the Strangler Fig pattern to modernize it gradually.

Illustrative migration stages

Stage Description
Stage 1 All business functions operate through the existing application.
Stage 2 Customer management moves to the new application while the other functions remain on the legacy system.
Stage 3 More functionality is transferred as each new component becomes ready.
Final stage Illustrative architecture. Actual migration stages depend on application dependencies and business requirements.

This approach allows the business to modernize its eCommerce platform without waiting for every component to be rebuilt before introducing improvements.

What Are the Benefits of Using the Strangler Fig Pattern?

The main benefit of the Strangler Fig pattern is that it reduces the need for a risky, large-scale application replacement. Businesses can modernize important components while keeping the remaining system operational.

1. Reduced Migration Risk

Replacing an entire application at once can introduce problems involving data, integrations, application behaviour, and business operations.

The Strangler Fig pattern divides this work into smaller changes. Each component can be developed and tested before it takes over production functionality.

If a migrated component experiences problems, the team can investigate that specific area instead of troubleshooting an entirely new application.

2. Less Disruption to Business Operations

The existing application continues handling functionality that has not yet been migrated.

This means employees and customers can continue using essential business services while the development team works on the replacement components.

It does not guarantee zero downtime, but it can reduce the disruption associated with a complete system cutover.

3. Faster Introduction of New Features

Businesses do not need to wait until the entire modernization programme is complete before releasing improvements.

Once a new component is ready, it can begin handling live requests. This allows the organisation to introduce selected features while other parts of the application are still being modernised.

4. Better Control Over Development Investment

The work can be divided into manageable phases, allowing businesses to prioritise components based on business value, technical risk, and available budgets.

This can make it easier to allocate development resources and review progress before approving the next stage.

5. Gradual Adoption of Modern Technologies

The pattern allows businesses to introduce new frameworks, databases, cloud infrastructure, APIs, or microservices gradually.

The development team can select appropriate technologies for individual components without needing to replace the entire technology stack immediately.

Planning to replace an outdated application without disrupting essential business functions? Bantech can help assess your existing system and plan a phased modernization strategy.

What Are the Challenges of the Strangler Fig Pattern?

Although the Strangler Fig pattern can reduce migration risk, it also introduces technical and operational challenges. Businesses must plan for the period when old and new applications operate together.

1. Managing Data Across Two Systems

During migration, the legacy application and new services may need to access or update related information.

For example, a new customer management service may update customer details while the old order processing module still depends on the original customer database.

Without clear data ownership and synchronisation rules, the two systems can contain inconsistent information.

The development team must decide how data will be shared, updated, replicated, and validated during each migration phase.

2. Managing Application Dependencies

Legacy applications often contain tightly connected modules. Moving one function to a new service may affect other functions that depend on it.

For example, an order management module may depend on customer information, inventory records, and payment details. If customer management is moved first, the new service must continue providing the information required by the old order module.

These dependencies should be mapped before migration begins.

3. Routing Layer Performance and Reliability

The façade or proxy becomes an important part of the application architecture because it handles requests between users and both systems.

If it is poorly designed, it can become a performance bottleneck or a single point of failure.

Businesses should include appropriate monitoring, load management, redundancy, and failure-handling procedures.

4. Increased Maintenance During the Transition

Operating two systems simultaneously requires additional support and coordination.

Developers may need to maintain the old application while building and supporting new services. Infrastructure, monitoring, and testing requirements may also increase temporarily.

This is an expected part of the migration process and should be included in project planning.

5. Testing Cross-System Communication

Individual components may work correctly when tested separately but still experience problems when communicating with each other.

The team must test API communication, data exchange, authentication, transaction handling, and error recovery across both environments.

A component should not be considered ready for migration until its dependencies and related business workflows have been validated.

AWS also highlights these considerations in its Strangler Fig pattern implementation guidance, including the need to manage shared data, routing reliability, and rollback procedures.

When Should Businesses Use the Strangler Fig Pattern?

The Strangler Fig pattern is most useful when a business has a large or complex legacy application that cannot be replaced safely in one operation.

It is particularly suitable when:

  • The existing application must remain available during modernization.
  • The system contains modules that can be separated gradually.
  • A complete rewrite would create significant financial or operational risk.
  • The business needs to introduce new features during the migration.
  • The existing application can support communication with new components.
  • The organisation wants to move towards a modern architecture over time.

However, this approach may not be necessary for every application.

A small application with limited functionality and few dependencies may be easier and less expensive to replace directly. The Strangler Fig pattern also becomes difficult to implement when application requests cannot be intercepted or the necessary integration points cannot be modified.

The decision should depend on the application’s complexity, business importance, and migration requirements.

How Do Businesses Implement the Strangler Fig Pattern Successfully?

A successful implementation requires a clear migration plan. Businesses should not start moving components simply because they appear easy to replace. Each component must be evaluated based on its dependencies, business value, and readiness for migration.

The following steps provide a practical starting point:

1. Assess the existing application: Review the architecture, source code, databases, integrations, and business workflows. Identify which components are difficult to maintain or prevent future development.

2. Identify suitable components for migration: Select a component with clear responsibilities and manageable dependencies. Starting with a well-understood component can help the team validate the approach.

3. Define the new architecture: Decide how the new services will communicate with the legacy application. Establish the routing mechanism, APIs, data ownership, and security requirements.

4. Introduce the routing layer: Set up the façade or proxy to direct requests to the correct application. Initially, it may simply pass requests to the existing system.

5. Develop and test the replacement component: Build the selected functionality in the new environment. Validate its behaviour, performance, security, and integration with the remaining legacy components.

6. Transfer production traffic gradually: Redirect the relevant requests to the new component. Monitor application behaviour and maintain a rollback option.

7. Repeat the process: Continue moving functionality in manageable stages until the legacy system no longer handles essential business operations.

8. Retire the old application: Confirm that all required functionality and dependencies have been transferred. Complete data validation, documentation, and operational checks before decommissioning the legacy system.

For a broader understanding of the planning process, businesses can refer to Bantech’s guide to legacy application modernization.

Is the Strangler Fig Pattern Better Than Rewriting a Legacy System?

The Strangler Fig pattern is often a safer option for large applications where a complete replacement would introduce significant operational risk. However, it is not automatically better than rewriting.

A complete rewrite may be more practical when the existing application is relatively small, has limited dependencies, or is so outdated that incremental replacement would require unnecessary complexity.

Evaluation Area Strangler Fig Pattern Complete Rewrite
Migration approach Replaces functionality in stages Rebuilds the application as a whole
Existing system Remains operational during migration Usually remains active until the replacement is ready
Initial delivery New components can be released earlier Major functionality may take longer to become available
Business disruption Can be reduced through gradual migration A major cutover may introduce greater disruption
Technical complexity Requires coordination between old and new systems Requires complete redevelopment and migration
Best suited for Large systems with separable components Smaller systems or applications requiring fundamental replacement

The right choice depends on the application’s condition and the business’s ability to manage a phased migration. Businesses can also use a combination of approaches, rewriting individual components as part of a wider Strangler Fig modernization programme.

Final Thoughts

The Strangler Fig pattern provides a practical way to modernize legacy applications without replacing the entire system in one operation. By gradually transferring functionality to new components, businesses can reduce migration risks, maintain important operations, and introduce modern technologies in manageable stages.

However, the approach requires careful planning around data consistency, integrations, routing, testing, and ongoing maintenance. Both systems must work together reliably during the transition.

For large applications with complex business dependencies, the Strangler Fig pattern can be a useful alternative to a complete rewrite. The best results come from selecting the right components to migrate, defining clear technical boundaries, and validating each stage before moving forward.

Modernize Your Legacy Application One Step at a Time

Planning a gradual transition from an outdated application to a modern technology stack? Bantech can help assess your existing system, identify the right modernization approach, and build a practical implementation plan.

Contact Us Hire a Team Request a Quote

Why Choose BANTECH?

At BANTECH, we don’t just provide technology solutions—we deliver innovation, expertise, and reliability that set us apart. Here’s why businesses trust us as their preferred technology partner:

Contact us