...
Microservice can be decoupled from applications
Effect: The application does not need to know the implementation details of the Passer, only need to pay attention to the results of the analysis.
Current status: As a Library, an application can use parser only after understanding the internal implementation of Parser.
Multi-language support
Effect: Parser provides services through restful, language-independent, and can support any language such as python and java.
Current Status: There are different Parser tools for different languages, and cross-language support is difficult.
Easy Easy to upgrade
Effect: Parser upgrades independently, only keep the external restful interface unchanged.
Current Status: The current Parser as Library, the application sees the internal implementation details of Parser, if Lib upgrade, it will affect the application.
Easy to deploy, support horizontal expansion
Current Status: With the application deployment, it is not easy to support horizontal expansion, and there is basically no flexibility.
Effect: After Parser is as a service, it conforms to Cloud Native idea, can utilize platform advantages, flexible deployment, and horizontal expansion.
...