Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for micro service of monolithic application

A microservice and monolithic technology, applied in the field of microservices, to avoid huge costs, reduce learning costs, and reduce investment

Active Publication Date: 2018-07-13
浙江网新恒天软件有限公司
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (2) Bounded: related functions will be integrated into a separate business unit and implemented in the form of a service
[0010] Although microservices bring huge benefits, it is not easy to transition from a traditional monolithic architecture to a microservices architecture

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for micro service of monolithic application
  • Method for micro service of monolithic application
  • Method for micro service of monolithic application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] A single application micro-service method provided in this embodiment mainly includes four steps: call analysis, module splitting, manual correction, and framework adaptation:

[0026] Call analysis: the method of the present invention analyzes the bytecode of the packaged file provided in the call analysis stage, and uses the dynamic loading of the class loader and the open-source Javassist class library to obtain the method call relationship between classes in the application code, thereby analyzing the application code. In the call chain, generate a call graph in which the ball represents the class node and the arrow represents the call relationship. In the call analysis stage, the analysis is done through the call logic of the code, which does not involve system business at all.

[0027] Module splitting: For the call graph generated in the call analysis phase, all nodes with an in-degree of 0 are used as entries, and then the breadth-first traversal of the directed...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for micro service of monolithic application. The method mainly comprises the steps of a call analysis stage, a module resolution stage and a framework adaptation stage, wherein a method call relationship among classes in application codes is obtained by analyzing byte codes in a package file, and thereby a call chain in the application is analyzed and a call graphis generated; for the call graph, all codes of which in-degree is zero are taken as entries, the entries are taken as starting points in turn to conduct breadth first search on a digraph to find all lower nodes, the starting point and the search result are taken as a to-be-split out micro service module together, according to the rule, an integrated item is divided into a plurality of independentmicro service modules, each module can be separately conducted with development and deployment, and the monolithic application also achieves quick micro service. The method for micro service of the monolithic application has the advantages that the input of the process for a monolithic framework to be converted into a micro service framework is reduced, the learning cost of the development is reduced, and the method can help the item be smoothly transferred into the micro service framework.

Description

technical field [0001] The present invention provides a simple and fast micro-service method, which mainly involves micro-service and micro-service transformation of single application, and can help non-micro-service single projects to be micro-serviced quickly and smoothly. Background technique [0002] The traditional code framework packs all functions (such as product display, product order, product payment, etc. of an e-commerce system) in a WAR package, basically without external dependencies, and deployed in a J2EE container (Tomcat, JBoss, WebLogic) contains all logic such as DO / DAO, Service, UI, etc. With the expansion of business scale, the software system implemented by this single-block architecture becomes more and more difficult to select technology, the maintenance cost increases sharply, and the scalability and continuous delivery capabilities become worse. The failure of any module may lead to The overall collapse of the system and the overload of any module...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/72G06F8/76
CPCG06F8/72G06F8/76
Inventor 周晓勇李善平李明华朱维阳
Owner 浙江网新恒天软件有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products