Glossary

Strangler Fig Pattern

Strangler Fig is a strategy for gradually migrating a monolithic system to a new architecture. New code "grows around" the old system — like a strangler fig tree around its host — progressively replacing it without stopping the system.

How it works

  1. A proxy (API Gateway or Nginx) is placed in front of the monolith
  2. New features are built in new microservices
  3. Portions of monolith functionality are progressively moved to new services
  4. The proxy switches traffic from the monolithic endpoint to the new one
  5. When all functionality is moved, the monolith is shut down

Benefits

Alternative

Big Bang rewrite — rewrite everything at once. Statistically the most failure-prone approach for large systems.