Tool for moving API code from monolith to micro-service

48 views Asked by At

We are currently in the process of moving code from our monoliths to different micro-services. There are 2 monoliths one using express, the other using sails on top of nodejs. I have already moved a few APIs at this point to one of the services. However I notice that it takes a lot of time copying code from the monolith to the micro-service manually for each API. Note that we are not using classes in the monolith, its all individual methods.

I feel there might be tools for moving relevant code from one repo to another. I am assuming say I input the repository and the starting function for an API the tool should be able to detect all functions required for executing any call made to the API and should be able to move them to the micro-service. If there are no such tools what can I use to build one for my use case, or am I oversimplifying the problem and am better off copy pasting code from one repo to another and then refactoring it.

0

There are 0 answers