liveBook · Manning

Strangler pattern

As explained in ASP.NET Core in Action, 3e

The strangler fig pattern is an incremental modernization pattern in which new functionality gradually replaces parts of an existing system until the legacy system can be retired.

The strangler pattern modernizes an existing application through small iterations. New ASP.NET Core functionality gradually replaces selected pages or APIs while the existing application continues operating, reducing the risk of a full conversion. section 2.4.3

A practical migration can use:

  • System.Web adapters to support migration between application generations. section 2.4.3
  • YARP, a .NET reverse proxy, to help direct requests during the transition. section 2.4.3
  • Visual Studio tooling to move one page or API at a time instead of converting everything at once. section 2.4.3

Incremental ASP.NET migration

Move one page or API from an existing ASP.NET application to ASP.NET Core, verify the result, and continue with the next slice until the remaining legacy application can be retired. section 2.4.3

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains the incremental strategy and names supporting tools, but stops short of detailed routing or deployment instructions.
Examples
Uses migration of an existing ASP.NET application one page or API at a time as the concrete example.
What it assumes
Assumes an existing ASP.NET application and distinguishes gradual porting from new greenfield ASP.NET Core development.
What you can do after
Apply the pattern with YARP, System.Web adapters, and Visual Studio tooling to reduce risk during ASP.NET Core migration.
How it connects
Connects ASP.NET Core migration with reverse proxies, YARP, System.Web adapters, and Visual Studio tooling.

Also explained in

Compare how 4 books explain strangler pattern →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.