System Design
11. Microservices ArchitectureAnimated
Strangler Fig Pattern
Replace a monolith piece by piece.
The idea
A façade routes some traffic to new services while the rest goes to the old system, until the old one is gone.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Put a facade in front of the legacy system.
- step:
- 1/4
- at:
- Client
1/8
The green dot is a request moving through the system.
Step by step
- 1Put a router in front
- 2Build one capability as a new service
- 3Route that traffic to it
- 4Repeat until the monolith is empty
Where it is used
Legacy migration.
Watch out for
Keep data in sync during the transition.