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

Micro-business service process interface generation method and terminal

A business process and microservice technology, applied in the generation of microservice business process interface, can solve the problems of no callback, high access cost, increased system resource investment, etc., and achieve the effect of reducing development cost

Active Publication Date: 2021-08-31
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, everyone defines the business process interface through coding, and develops the business interface according to the requirements. However, this coding method will lead to more and more functions of the business service interface, which increases the resource investment of the system, and does not Conducive to later operation and maintenance
Further, the business can introduce Conductor (an open source microservice orchestration framework) for microservice task orchestration, but the access cost of Conductor is relatively high, for example: developers need to configure the corresponding business process in the Conductor management background, when there is a conflict in function , need to modify its source code; in terms of scalability, this orchestration capability does not provide a callback after a single task is executed, which is not conducive to business expansion; moreover, Conductor includes more modules and relies on more network elements, such as: Conductor The persistence module uses Dynomite (a distributed storage proxy layer), and Elasticsearch (a distributed and RESTful style search and data analysis engine) is used for the index backend, which greatly reduces the availability of the system

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
  • Micro-business service process interface generation method and terminal
  • Micro-business service process interface generation method and terminal
  • Micro-business service process interface generation method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Please refer to figure 1 and image 3 , Embodiment 1 of the present invention is:

[0062] A method for generating a microservice business process interface, comprising:

[0063] S1. According to the preset framework, scan all the methods in the project, and add the methods marked with preset annotations to the execution unit list;

[0064] The annotation attributes of the preset annotation include execution unit name, lower-level execution unit name, parameter conversion function, execution completion stage type, root task attribute and execution unit completion callback function;

[0065] The method of adding the method marked with the preset annotation to the execution unit list in the step S1 is specifically:

[0066] Obtain the information identifying the method with the preset annotation, and add it to the execution unit list in the form of a key-value pair, where the key in the key-value pair is the method name, and the value corresponds to the preset annotati...

Embodiment 2

[0115] Please refer to figure 2 , the second embodiment of the present invention is:

[0116] A generation terminal 1 of a microservice business process interface, including a processor 2, a memory 3, and a computer program stored on the memory 3 and operable on the processor 2, when the processor 2 executes the computer program, the above The steps in the first embodiment.

[0117] To sum up, the generation method and terminal of a microservice business process interface provided by the present invention do not require the introduction of Conductor, and mark the methods of each microservice through preset annotations, which are lightweight and rely on very little. The resource consumption is small, and the annotation attribute contains multiple contents, which can meet the development and operation requirements; the system can analyze the business process required by the aggregation / combination class interface according to the annotation information of the interface to be g...

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 micro-business service process interface generation method and a terminal. According to the method, all methods in a project are scanned according to a preset framework, and the methods marked with preset annotations are added to an execution unit list; obtaining an annotation attribute of the preset annotation defined by the user for the to-be-generated interface, selecting the corresponding execution unit according to the annotation attribute, and splicing to generate a superior and subordinate service process linked list; obtaining input information of the to-be-generated interface and output information of the execution unit at the tail end of the superior and subordinate service process linked list, and generating the to-be-generated interface according to the input information and the output information; according to the method, the method of each micro-service is labeled through the preset annotation, and the service process required by the aggregation / combination interface can be automatically spliced according to the annotation information provided by developers, so that the developers are more focused on atomic development in the field of parts, hard coding of aggregation and combination codes is reduced, and the development cost is reduced.

Description

technical field [0001] The present invention relates to the field of information technology, in particular to a method for generating a microservice business process interface and a terminal. Background technique [0002] Under the microservice architecture of large and medium platforms and small front desks, large and medium platforms are split into corresponding microservices according to different fields, and small front desks rely on the microservices of large and medium platforms to quickly produce new products or projects. However, existing project development always requires the use of various micro-service capabilities of large and medium-sized platforms to assemble new business processes. For example, in the process of implementing an educational product recently, the upgrade operation of educational affairs not only needs to process the upgrade of grade information, but also needs to disband the classes under the current grade after the upgrade is successful, initi...

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/20G06F8/40G06F8/73
CPCG06F8/20G06F8/40G06F8/73Y02D10/00
Inventor 刘德建李勤郑义张琳陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
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