Convert Application into Microservices

In the life cycle of an application, project development teams usually start with a tightly-coupled application. When that application evolves into a large suite, it makes sense to decouple the application into microservices. With Canvas, you can convert form actions into microservices in an efficient way. Doing so will enable handling of additional request loads on your application by scaling the microservices through container deployment. Thereby, requests to your microservices will be distributed among the containers.

At a high level, to convert form actions into microservices, the steps to be performed are:

  1. Specify the microservice name for the keys in the configuration file.
  2. Generate the microservice source code using codeGen JAR.
  3. In the generated code, perform code refactoring for SQL Map, forward mapping, handler properties, error (log) messages etc.
  4. Update the build properties to map the source and JARs folders.
  5. Update the app server configuration files.
  6. In Canvas Studio, map the form action to microservice.
  7. Build the microservice WAR and deploy.
  8. Verify that the form action is redirected to the microservice in the browser console.