AWS Migration Hub Refactor Spaces Specialized2021年〜
A service that provides the networking environment for incrementally refactoring monolith applications into microservices
What It Does
AWS Migration Hub Refactor Spaces automatically builds the network infrastructure for incrementally migrating monolith applications to microservices using the Strangler Fig pattern. It creates a routing environment combining API Gateway, NLB, and Transit Gateway to split traffic between the monolith and new microservices.
Use Cases
Breaking monolith applications into microservices, incrementally modernizing legacy systems to cloud-native architectures, and safe refactoring using the Strangler Fig pattern.
Everyday Analogy
Think of rerouting traffic during road construction. Instead of closing the existing road (monolith), you build a new road (microservice) alongside it and gradually redirect traffic to the new route.
What Is Refactor Spaces?
Refactor Spaces helps you implement the Strangler Fig pattern. This pattern involves extracting monolith features one by one into microservices and using routing to switch between old and new. Refactor Spaces automatically builds the routing environment (API Gateway + NLB + Transit Gateway) for you.
Environments and Routing
A Refactor Spaces environment is a multi-account networking foundation. You create an application, set the default route (monolith), and add new microservices as services. Creating routes with path-based routing forwards traffic for specific URL paths to the new microservices. For a comprehensive look at environments and routing from basics to advanced topics, specialized books on Amazon provide structured coverage.
Getting Started
In the Refactor Spaces console, create an environment and define an application. Set the monolith endpoint as the default route, then add new microservices as services. Create path-based routes to redirect traffic for specific features to the microservices.
Things to Watch Out For
- You pay for the API Gateway, NLB, and Transit Gateway resources that Refactor Spaces creates
- For simple routing, API Gateway alone may suffice. Refactor Spaces is best suited for incremental migration in multi-account environments