Generating starter code for microservices
You use the code generator to generate starter code to help with implementing the recommended partitions as microservices.
About this task
After you review or customize the partition recommendations, you can have IBM® Mono2Micro™ generate starter code that implements the wiring between classes across partitions to help accelerate the implementation and deployment of partitions without changing any monolith Java® code. To automatically generate the code, use the code generator component of Mono2Micro.
The code generator does the following:
The first step circumvents common problems with converting monoliths to microservices: Classes that are defined in foreign components tend to get copied into all of the components along with all of their dependents. IBM Mono2Micro avoids this cascade copying process by creating API services for classes that are accessed from outside the partition. You then have efficient partitions to implement according to business logic seams or to your customizations.
Results
You have IBM Mono2Micro automatically generated the API services and related code to help you implement and run the partitions.