

# Wave-based refactoring examples
<a name="wave-based-refactoring-examples"></a>

The following diagrams show examples of how you can implement a wave-based refactoring workflow to modernize legacy system components.

**Note**  
The AWS services shown in the diagrams are for example purposes only. There are many other AWS services that can be used for each implementation phase.

## Legacy database migration and modernization example
<a name="legacy-database-migration-modernization-example"></a>

![\[Wave-based refactoring approach diagram showing legacy on-premises IT system migration to AWS Cloud services.\]](http://docs.aws.amazon.com/prescriptive-guidance/latest/wave-based-refactoring/images/wave_diagram2.png)


**Note**  
In the previous example, a proxy layer handles the handshakes between legacy interfaces and new AWS microservices.

## Legacy IT system migration and modernization example
<a name="legacy-it-system-migration-modernization-example"></a>

![\[AWS Cloud architecture diagram showing microservices waves and data flow across various services.\]](http://docs.aws.amazon.com/prescriptive-guidance/latest/wave-based-refactoring/images/wave_diagram3.png)
