Architecture & BFF

Strangler Fig Pattern

Direct Definition

The strangler fig pattern is a migration strategy where a proxy layer is placed in front of a legacy system, and individual routes are gradually redirected to new implementations. Over time the new system replaces the old one entirely without a high-risk big-bang rewrite.

Technical Architecture & Deep-Dive

Named by Martin Fowler after vines that slowly envelop a host tree, the pattern relies on an interception layer. Clients keep calling the same URLs while the proxy decides, route by route, whether the legacy backend or the new service handles each request.

Edge proxies make strangler migrations straightforward: routing rules change instantly worldwide, response mapping can keep legacy payload shapes for old clients, and traffic can shift gradually to validate the new implementation.

Key Architectural Benefits

Reduces migration risk by moving one endpoint at a time.
Keeps client URLs and contracts stable throughout the migration.
Allows instant rollback by changing a routing rule.
REALCOMPOSER EDGE WORKSPACE

Implement Strangler Fig Pattern at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:When should I use the strangler fig pattern?

Use it when a legacy API is too large or critical to rewrite at once, and you need to deliver improvements continuously while keeping existing clients working.