CN112416318A - Micro-service development method and device, storage medium and electronic equipment - Google Patents

Micro-service development method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112416318A
CN112416318A CN202011212465.5A CN202011212465A CN112416318A CN 112416318 A CN112416318 A CN 112416318A CN 202011212465 A CN202011212465 A CN 202011212465A CN 112416318 A CN112416318 A CN 112416318A
Authority
CN
China
Prior art keywords
target
service
micro
user
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011212465.5A
Other languages
Chinese (zh)
Other versions
CN112416318B (en
Inventor
陈定玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd
Original Assignee
Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd filed Critical Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd
Priority to CN202011212465.5A priority Critical patent/CN112416318B/en
Publication of CN112416318A publication Critical patent/CN112416318A/en
Priority to PCT/CN2021/094960 priority patent/WO2022095412A1/en
Application granted granted Critical
Publication of CN112416318B publication Critical patent/CN112416318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to a micro-service development method, apparatus, storage medium and electronic device, the method comprising: displaying a micro-service development interface, wherein a plurality of alternative components are loaded on the micro-service development interface for a user to select; in response to the selection operation of the user on the micro service development interface, adding a plurality of target components selected by the user to a development editing area of the micro service development interface; according to the received configuration instruction of the user for the target component, generating flow information of the target micro service formed by the target component to obtain a service package of the target micro service, wherein the service package does not contain source code information of the target component. Therefore, the micro-service development can be carried out in a visual mode, developers do not need to pay attention to the realization and code writing of the target component, the technical requirements on the developers are reduced, the workload of the developers is reduced, and the development efficiency of the micro-service is improved.

Description

Micro-service development method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for micro-service development, a storage medium, and an electronic device.
Background
In the prior art, the use of micro services is more and more extensive, and the problem of access load of a single application architecture can be effectively solved. In order to improve the development efficiency of the micro-services, various micro-service development frameworks, such as a distributed agile development system framework, are presented, and workers can develop the micro-services based on the framework. However, in the development process, workers are generally required to understand the depth of codes, interfaces and the like in the architecture, the technical requirements on the developers are high, and the micro-service development efficiency is low.
There is currently no good solution to solve the above problems.
Disclosure of Invention
The purpose of the present disclosure is to provide a method, an apparatus, a storage medium and an electronic device for developing a micro service, which are simple and efficient.
In order to achieve the above object, according to a first aspect of the present disclosure, there is provided a microservice development method, the method including:
displaying a micro-service development interface, wherein a plurality of alternative components are loaded on the micro-service development interface for a user to select;
in response to the selection operation of the user on the micro service development interface, adding a plurality of target components selected by the user to a development editing area of the micro service development interface;
according to the received configuration instruction of the target component by the user, generating flow information of the target micro service formed by the target component to obtain a service package of the target micro service, wherein the service package does not contain source code information of the target component.
Optionally, the generating, according to the received configuration instruction of the user for the target component, flow information of the target microservice formed by the target component includes:
determining association information of the target component according to a configuration instruction of the target component, wherein the association information comprises an association component corresponding to the target component and association parameters corresponding to the target component and the association component;
and associating each target assembly according to the association information of each target assembly to obtain the process information.
Optionally, the method further comprises:
determining parameter information of the target component according to a received parameter setting instruction of a user for the target component;
the generating of the flow information of the target micro-service formed by the target component according to the received configuration instruction of the user for the target component comprises:
and generating flow information of the target micro service formed by the target component according to the received configuration instruction of the user for the target component and the parameter information of the target component.
Optionally, the method further comprises:
under the condition that a test case corresponding to the target micro service exists, displaying a test case selection interface, wherein the test case selection interface carries the test case corresponding to the target micro service for a user to select;
responding to the selection operation of the user on the test case selection interface, and determining a target test case for the test case selected by the user;
executing the target test case;
and determining whether the target micro service is abnormal or not according to a result obtained by executing the target test case.
Optionally, the method further comprises:
determining a component corresponding to the abnormality and abnormality information in the target micro service under the condition that the target micro service is determined to have the abnormality;
and displaying the process information corresponding to the target micro-service, and identifying the component corresponding to the abnormality and the abnormality information in the process information.
Optionally, the method further comprises:
displaying graph information corresponding to the process information corresponding to the target micro service, wherein each node in the graph information corresponds to one target assembly in the target micro service;
in response to receiving a test instruction input by a user for a target node, determining a test mode of a target component corresponding to the target node, wherein the test mode is to execute a test or skip the test, and the target node is one or more of the nodes.
Optionally, in a case that the test mode of the target component corresponding to the target node is to execute a test, the method further includes:
and responding to a received test configuration instruction of a user for the target node, and executing the target micro service according to the test parameters indicated by the test configuration instruction so as to test the target micro service.
According to a second aspect of the present disclosure, there is provided a microservice development apparatus, the apparatus comprising:
the system comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a micro-service development interface, and a plurality of alternative components are loaded on the micro-service development interface for a user to select;
the adding module is used for responding to the selection operation of the user on the micro service development interface and adding a plurality of target components selected by the user to the development editing area of the micro service development interface;
the generating module is used for generating flow information of the target micro-service formed by the target component according to the received configuration instruction of the target component by the user so as to obtain a service package of the target micro-service, wherein the service package does not contain source code information of the target component.
Optionally, the generating module includes:
the determining submodule is used for determining the associated information of the target assembly according to the configuration instruction of the target assembly, wherein the associated information comprises the associated assembly corresponding to the target assembly and the associated parameters corresponding to the target assembly and the associated assembly;
and the association submodule is used for associating each target assembly according to the association information of each target assembly so as to obtain the process information.
Optionally, the apparatus further comprises:
the first determining module is used for determining the parameter information of the target component according to the received parameter setting instruction of the user aiming at the target component;
the generation module is configured to:
and generating flow information of the target micro service formed by the target component according to the received configuration instruction of the user for the target component and the parameter information of the target component.
Optionally, the apparatus further comprises:
the first display module is used for displaying a test case selection interface under the condition that a test case corresponding to the target micro service exists, wherein the test case selection interface carries the test case corresponding to the target micro service for a user to select;
the second determination module is used for determining a target test case from the test case selected by the user in response to the selection operation of the user on the test case selection interface;
the first execution module is used for executing the target test case;
and the third determining module is used for determining whether the target micro service is abnormal or not according to a result obtained by executing the target test case.
Optionally, the apparatus further comprises:
the fourth determining module is used for determining a component corresponding to the abnormity in the target micro service and abnormity information under the condition that the target micro service is determined to have the abnormity;
and the second display module is used for displaying the process information corresponding to the target micro-service and identifying the component corresponding to the abnormity and the abnormity information in the process information.
Optionally, the apparatus further comprises:
a third display module, configured to display graph information corresponding to process information corresponding to the target microservice, where each node in the graph information corresponds to one target component in the target microservice;
the fifth determining module is used for determining a test mode of a target component corresponding to a target node in response to receiving a test instruction input by a user for the target node, wherein the test mode is to execute a test or skip the test, and the target node is one or more of the nodes.
Optionally, the apparatus further comprises:
and the second execution module is used for responding to a received test configuration instruction of a user aiming at the target node under the condition that the test mode of the target component corresponding to the target node is the execution test, and executing the target micro service according to the test parameters indicated by the test configuration instruction so as to test the target micro service.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods of the first aspect described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of the first aspects above.
In the technical scheme, a micro-service development interface is displayed, a plurality of target components selected by a user are added to a development editing area of the micro-service development interface in response to selection operation of the user on the micro-service development interface, and flow information of a target micro-service formed by the target components is generated according to a received configuration instruction of the user for the target components, so that a service package of the target micro-service is obtained. Through the technical scheme, the target components can be selected in a visual mode, and the association between the target components is configured to obtain the flow information, so that the corresponding micro-service is generated, developers do not need to pay attention to the realization and code writing of the target components, the technical requirements on the developers are reduced, the workload of the developers is reduced, and the development efficiency of the micro-service is improved. Meanwhile, developers do not need to compile codes, and the service pack difference caused by human factors can be reduced to a certain extent, so that follow-up maintenance of the micro-service is facilitated, and the running stability of the micro-service is improved. Moreover, the source code can be prevented from being analyzed based on decompiling of the service package, so that the safety of information can be protected, and code information leakage can be avoided.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart of a microservice development method provided according to an embodiment of the present disclosure.
Fig. 2 is a block diagram of a microservice development device provided in accordance with one embodiment of the present disclosure.
FIG. 3 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 4 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart illustrating a microservice development method according to an embodiment of the present disclosure. As shown in fig. 1, the method may include:
in step 11, a microservice development interface is displayed, wherein a plurality of alternative components are loaded on the microservice development interface for a user to select.
The method can be applied to a development platform, a system and the like, the alternative components can be components developed by different users, and the alternative components can be uploaded through the development platform, so that the sharing of the components among multiple users can be realized, the utilization rate of the components is improved, and the workload of the users is reduced. In this step, the components in the development platform can be scanned, so that the currently available components can be displayed through the micro-service development interface, and thus, when a user develops the micro-service, the user can directly select the required components from the micro-service development interface according to specific service requirements.
In step 12, in response to the user's selection operation on the micro service development interface, the plurality of target components selected by the user are added to the development editing area of the micro service development interface.
As an example, the selection operation may be a drag operation, that is, a user may select a candidate component in the micro-service development interface, so as to drag the selected candidate component to the development editing area, and in response to the drag operation, a target component corresponding to the drag operation may be added to the development editing area. As another example, the selection operation may be a double-click operation, i.e., the user may double-click on their desired target component in the microservice development interface, and the corresponding target component may be added to the development editing interface in response to the double-click operation. In addition, the foregoing is only an example, and other selection operations may be adopted to select the target component in the embodiment of the present invention, which is not limited in this disclosure.
In step 13, according to the received configuration instruction of the user for the target component, generating flow information of the target micro service formed by the target component to obtain a service package of the target micro service, wherein the service package does not include the source code information of the target component.
Illustratively, a microservice is typically used to address a business problem. In this embodiment, after the target components are determined, each target component may be configured to determine a relationship between the target components, so as to associate the target components together, and generate flow information of the target microservice, where the flow information is used to indicate processing logic of the target microservice, so as to obtain a service package of the target microservice, and implement development of the target microservice.
In a possible embodiment, the service package does not include the source code information of the target component, and the service package of the target micro service includes the flow information and the flow execution engine of the target micro service, so that the service package can parse the flow information through the flow execution engine to start the target micro service, thereby facilitating the publishing and deployment of the target micro service.
Therefore, in the above technical solution, a micro service development interface is displayed, in response to a selection operation of a user on the micro service development interface, a plurality of target components selected by the user are added to a development editing area of the micro service development interface, and according to a received configuration instruction of the user for the target components, flow information of a target micro service formed by the target components is generated to obtain a service package of the target micro service. Through the technical scheme, the target components can be selected in a visual mode, and the association between the target components is configured to obtain the flow information, so that the corresponding micro-service is generated, developers do not need to pay attention to the realization and code writing of the target components, the technical requirements on the developers are reduced, the workload of the developers is reduced, and the development efficiency of the micro-service is improved. Meanwhile, developers do not need to compile codes, and the service pack difference caused by human factors can be reduced to a certain extent, so that follow-up maintenance of the micro-service is facilitated, and the running stability of the micro-service is improved. Moreover, the source code can be prevented from being analyzed based on decompiling of the service package, so that the safety of information can be protected, and code information leakage can be avoided.
In order to make those skilled in the art understand the technical solutions provided by the embodiments of the present disclosure, the following detailed descriptions are provided for the above steps.
In step 13, according to the received configuration instruction of the user for the target component, an exemplary implementation manner of generating the flow information of the target microservice formed by the target component is as follows, and the step may include:
determining association information of the target component according to the configuration instruction of the target component, wherein the association information comprises an association component corresponding to the target component and association parameters corresponding to the target component and the association component. The association component may be a previous association component and a next association component directly associated with the target component, and the association parameter is a parameter transferred in the target component and the association component, for example, a parameter output by the target component is an input parameter of the next association component associated therewith, and the parameter is an association parameter corresponding to the target component and the association component.
In a possible embodiment, the configuration instruction may be generated by a connecting line, that is, a user may connect two target components from among the target components displayed in the development editing area through the connecting line to trigger generation of the configuration instruction, for example, a target component corresponding to a starting point of the connecting line is denoted as a first component, a target component corresponding to an ending point of the connecting line is denoted as a second component, and parameters for associating the first component and the second component are determined, so that the configuration instruction for the first component and the second component may be triggered through the connecting line.
Then, for the first component, according to the configuration instruction corresponding to the first component, where the configuration instruction is used to indicate that the parameter input by the second component is the parameter a output by the first component, the second component may be determined as the next associated component of the first component, and the associated parameter corresponding to both of them is the parameter a. For a second component, according to a configuration instruction corresponding to the second component, where the configuration instruction is used to indicate a parameter a output by the first component as a parameter input by the second component, the first component may be determined as a last associated component of the second component, and the associated parameter corresponding to both the first component and the second component is the parameter a.
In another embodiment, the target component may be selected first, so that the configuration instruction may be triggered by selecting and inputting the last association component and/or the next association component and the corresponding association parameters respectively. For example, selecting a target component M in a configuration item corresponding to a previous associated component, and selecting a parameter N output by the target component M in a corresponding associated parameter, so that a configuration instruction for the target component and the previous associated component may be triggered and generated, and then, in response to the configuration instruction, a manner of determining an association relationship of the target component is similar to that described above, and is not described herein again.
And associating each target assembly according to the association information of each target assembly to obtain the process information.
For example, after the association information of each target component is determined, the order between the target components may be determined according to the association information, so that the flow information formed by the target components, that is, the flow information for characterizing the execution flow of the target microservice may be obtained.
Therefore, according to the technical scheme, a user can determine the association relation of each target component through the association operation of the target components, so that the sequence of each target component is determined, the user can automatically realize the development of the target micro-service only through the mode of configuring the flow chart, code coding is not needed, the technical requirements on developers are greatly reduced, and the application range of the micro-service development method is widened.
Optionally, the method further comprises:
and determining the parameter information of the target component according to the received parameter setting instruction of the user aiming at the target component.
The user can perform custom configuration on the parameters of the target component. For example, a user may select a target component, so that a configurable item corresponding to the target component may be displayed at a position corresponding to the target component in a development editing area, and then the user may input a corresponding parameter for the target configurable item that needs to be configured, so as to trigger generation of the parameter setting instruction, and then may determine a parameter indicated by the parameter setting instruction as a parameter corresponding to the target configurable item in the target component, where the parameter may be an assignment parameter or a condition comparison parameter, and is determined according to meta information of a specific configurable item, which is not limited in this disclosure.
Accordingly, in step 13, according to the received configuration instruction of the user for the target component, an exemplary implementation manner of generating the flow information of the target microservice formed by the target component is as follows, and the step may include:
and generating flow information of the target micro service formed by the target component according to the received configuration instruction of the user for the target component and the parameter information of the target component.
In this embodiment, the process information includes each target component, associated information between the target components, and parameter information of the target components, so that accurate execution of a function corresponding to the target microservice can be realized based on the process information, and accuracy of the generated process information is ensured, thereby ensuring accuracy and diversity of the target microservice obtained by development, and improving user experience.
Alternatively, in an actual usage scenario, a problem may occur in which the target microservice cannot execute due to a parameter configuration error of a user or a logical association error between target components, or the target microservice has difficulty in achieving a desired function. Based on this, the present disclosure also provides the following embodiments.
In one possible embodiment, the method may further comprise:
and displaying a test case selection interface under the condition that the test case corresponding to the target micro service exists, wherein the test case selection interface carries the test case corresponding to the target micro service for a user to select.
The test case can be created and maintained on the platform by a user, and the test case and the corresponding micro service are stored in an associated manner, so that whether the test case corresponding to the target micro service exists or not can be automatically determined through the identification information of the target micro service, and the determined test case is displayed so as to be selected by the user.
Responding to the selection operation of the user on the test case selection interface, and determining a target test case for the test case selected by the user, wherein the selection operation can be single-click operation, double-click operation or collusion operation and the like aiming at the target test case;
executing the target test case;
and determining whether the target micro service is abnormal or not according to a result obtained by executing the target test case, wherein the result comprises output parameters corresponding to the one or more target components.
If the result obtained by executing the target test case is the same as the prediction result of the target test case, it indicates that the target micro service is not abnormal, and if the result obtained by executing the target test case is not the same as the prediction result of the target test case, it can be determined that the target micro service is abnormal.
Therefore, by the technical scheme, the developed target micro-service can be automatically tested by selecting the test case, so that whether the target micro-service is abnormal or not can be timely and accurately determined, the accuracy and effectiveness of the developed target micro-service can be ensured to a certain extent, and the accurate service is provided for follow-up.
Optionally, the method further comprises:
and under the condition that the target micro service is determined to have the abnormity, determining a component corresponding to the abnormity in the target micro service and abnormity information.
The position of the abnormality can be determined through the execution log information of the test case, so that the component corresponding to the abnormality and the abnormality information can be determined, and the abnormality information can be used for indicating the reason of the abnormality. The method for analyzing the test log and determining the abnormal position and the abnormal reason is a conventional technique in the art, and is not described herein again.
And then displaying the process information corresponding to the target micro service, and identifying the component corresponding to the abnormality and the abnormality information in the process information, wherein the process information can be displayed on a micro service development interface or a test result display interface, and the test result display interface is different from the micro service development interface.
As an example, the process information corresponding to the target micro service can be directly displayed in the micro service development interface used by the user to develop the micro service, so that the abnormal component and the abnormal information can be directly displayed based on the process information formed by the target component edited by the user, the display efficiency is improved, and when the abnormal component exists in the target micro service, the abnormal component can be directly modified, and the operation simplicity and flexibility of the user are improved. As another example, the display may be performed through another test result display interface, so that the precision of the exception prompt is improved, and meanwhile, occupation of the micro-service development page may be avoided.
As an example, the component corresponding to the exception and the exception information are identified in the flow information, which may be a target component for highlighting the exception, or may be a component for determining the exception type of the target component according to the exception information, so that different display may be performed for different exception types, for example, a component corresponding to a logical error exception may be displayed in red, and a component corresponding to a parameter configuration error exception may be displayed in yellow, etc. It should be noted that the above description is only exemplary, and the present disclosure is not limited thereto.
Therefore, by the technical scheme, the problems or risks possibly existing in the target micro-service can be timely and accurately found. And through the abnormal component identified in the flow information, the user can conveniently and timely position the abnormal position, so that the user can conveniently and timely make modification, and the user experience is improved.
In one possible embodiment, the method may further comprise:
and displaying graph information corresponding to the process information corresponding to the target micro service, wherein each node in the graph information corresponds to one target assembly in the target micro service. The graph information or the display in another interface may be displayed in the micro service development interface, which is not limited in this disclosure.
In response to receiving a test instruction input by a user for a target node, determining a test mode of a target component corresponding to the target node, wherein the test mode is to execute a test or skip the test, and the target node is one or more of the nodes.
For example, in the embodiment of the present disclosure, a user may set a test mode of a target component through a test instruction, wherein a default test model may be set to perform a test. Therefore, by means of the technical scheme, the user can selectively test partial components in the target microservice, the testing efficiency and diversity are improved, meanwhile, the testing precision and diversity can also be improved, the user does not need to write testing codes, and the user use experience is improved.
Optionally, in a case that the test mode of the target component corresponding to the target node is to execute a test, the method further includes:
and responding to a received test configuration instruction of a user for the target node, and executing the target micro service according to the test parameters indicated by the test configuration instruction so as to test the target micro service.
For example, a target node may be selected to display a test configuration area of the target node, a test configuration item of a target component corresponding to the target node may be displayed in the test configuration area, and then a user may input a test parameter in the corresponding test configuration item in the test configuration area, thereby triggering generation of the test configuration instruction. And then, in response to the test configuration instruction, assigning a value to the test configuration item of the target component corresponding to the target node according to the test parameter indicated by the test configuration instruction, and implementing the test by executing the target micro-service, wherein a process of determining the test result is similar to the test process described above, and is not repeated here. For example, in an embodiment, a test configuration instruction may be triggered directly by inputting a test parameter in the test configuration area, and the test configuration instruction may simultaneously instruct setting the test mode of the target component to execute the test, so that the test instruction does not need to be triggered, and user operation is saved.
In the technical scheme, a user can set corresponding simulation test parameters aiming at a target component, so that a test with finer granularity is realized, the test precision can be provided, the test accuracy and efficiency can be improved, and data support is provided for improving the stability of the target micro service.
The present disclosure also provides a micro-service development apparatus, as shown in fig. 2, the apparatus 10 including:
the system comprises a first display module 100, a second display module and a third display module, wherein the first display module is used for displaying a micro-service development interface, and a plurality of alternative components are loaded on the micro-service development interface for a user to select;
the adding module 200 is used for responding to the selection operation of the user on the micro service development interface, and adding a plurality of target components selected by the user to the development editing area of the micro service development interface;
a generating module 300, configured to generate, according to a received configuration instruction of a user for the target component, flow information of a target micro service formed by the target component, so as to obtain a service package of the target micro service, where the service package does not include source code information of the target component.
Optionally, the generating module includes:
the determining submodule is used for determining the associated information of the target assembly according to the configuration instruction of the target assembly, wherein the associated information comprises the associated assembly corresponding to the target assembly and the associated parameters corresponding to the target assembly and the associated assembly;
and the association submodule is used for associating each target assembly according to the association information of each target assembly so as to obtain the process information.
Optionally, the apparatus further comprises:
the first determining module is used for determining the parameter information of the target component according to the received parameter setting instruction of the user aiming at the target component;
the generation module is configured to:
and generating flow information of the target micro service formed by the target component according to the received configuration instruction of the user for the target component and the parameter information of the target component.
Optionally, the apparatus further comprises:
the first display module is used for displaying a test case selection interface under the condition that a test case corresponding to the target micro service exists, wherein the test case selection interface carries the test case corresponding to the target micro service for a user to select;
the second determination module is used for determining a target test case from the test case selected by the user in response to the selection operation of the user on the test case selection interface;
the first execution module is used for executing the target test case;
and the third determining module is used for determining whether the target micro service is abnormal or not according to a result obtained by executing the target test case.
Optionally, the apparatus further comprises:
the fourth determining module is used for determining a component corresponding to the abnormity in the target micro service and abnormity information under the condition that the target micro service is determined to have the abnormity;
and the second display module is used for displaying the process information corresponding to the target micro-service and identifying the component corresponding to the abnormity and the abnormity information in the process information.
Optionally, the apparatus further comprises:
a third display module, configured to display graph information corresponding to process information corresponding to the target microservice, where each node in the graph information corresponds to one target component in the target microservice;
the fifth determining module is used for determining a test mode of a target component corresponding to a target node in response to receiving a test instruction input by a user for the target node, wherein the test mode is to execute a test or skip the test, and the target node is one or more of the nodes.
Optionally, the apparatus further comprises:
and the second execution module is used for responding to a received test configuration instruction of a user aiming at the target node under the condition that the test mode of the target component corresponding to the target node is the execution test, and executing the target micro service according to the test parameters indicated by the test configuration instruction so as to test the target micro service.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 3 is a block diagram illustrating an electronic device 700 according to an example embodiment. As shown in fig. 3, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the microservice development method. The memory 702 is used to store various types of data to support operation at the electronic device 700, such as instructions for any application or method operating on the electronic device 700 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 705 may thus include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described microservice development method.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the microservice development method described above is also provided. For example, the computer readable storage medium may be the memory 702 described above that includes program instructions executable by the processor 701 of the electronic device 700 to perform the microservice development method described above.
Fig. 4 is a block diagram illustrating an electronic device 1900 according to an example embodiment. For example, the electronic device 1900 may be provided as a server. Referring to fig. 4, an electronic device 1900 includes a processor 1922, which may be one or more in number, and a memory 1932 for storing computer programs executable by the processor 1922. The computer program stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processor 1922 may be configured to execute the computer program to perform the above-described microservice development method.
Additionally, electronic device 1900 may also include a power component 1926 and a communication component 1950, the power component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 1900. In addition, the electronic device 1900 may also include input/output (I/O) interfaces 1958. The electronic device 1900 may operate based on an operating system, such as Windows Server, stored in memory 1932TM,Mac OS XTM,UnixTM,LinuxTMAnd so on.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the microservice development method described above is also provided. For example, the computer readable storage medium may be the memory 1932 described above that includes program instructions that are executable by the processor 1922 of the electronic device 1900 to perform the microservice development method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned microservice development method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A method for microservice development, the method comprising:
displaying a micro-service development interface, wherein a plurality of alternative components are loaded on the micro-service development interface for a user to select;
in response to the selection operation of the user on the micro service development interface, adding a plurality of target components selected by the user to a development editing area of the micro service development interface;
according to the received configuration instruction of the target component by the user, generating flow information of the target micro service formed by the target component to obtain a service package of the target micro service, wherein the service package does not contain source code information of the target component.
2. The method of claim 1, wherein the generating flow information of the target microservice formed by the target component according to the received configuration instruction of the target component by the user comprises:
determining association information of the target component according to a configuration instruction of the target component, wherein the association information comprises an association component corresponding to the target component and association parameters corresponding to the target component and the association component;
and associating each target assembly according to the association information of each target assembly to obtain the process information.
3. The method of claim 1, further comprising:
determining parameter information of the target component according to a received parameter setting instruction of a user for the target component;
the generating of the flow information of the target micro-service formed by the target component according to the received configuration instruction of the user for the target component comprises:
and generating flow information of the target micro service formed by the target component according to the received configuration instruction of the user for the target component and the parameter information of the target component.
4. The method of claim 1, further comprising:
under the condition that a test case corresponding to the target micro service exists, displaying a test case selection interface, wherein the test case selection interface carries the test case corresponding to the target micro service for a user to select;
responding to the selection operation of the user on the test case selection interface, and determining a target test case for the test case selected by the user;
executing the target test case;
and determining whether the target micro service is abnormal or not according to a result obtained by executing the target test case.
5. The method of claim 4, further comprising:
determining a component corresponding to the abnormality and abnormality information in the target micro service under the condition that the target micro service is determined to have the abnormality;
and displaying the process information corresponding to the target micro-service, and identifying the component corresponding to the abnormality and the abnormality information in the process information.
6. The method of claim 1, further comprising:
displaying graph information corresponding to the process information corresponding to the target micro service, wherein each node in the graph information corresponds to one target assembly in the target micro service;
in response to receiving a test instruction input by a user for a target node, determining a test mode of a target component corresponding to the target node, wherein the test mode is to execute a test or skip the test, and the target node is one or more of the nodes.
7. The method of claim 6, wherein in the case that the test mode of the target component corresponding to the target node is to perform a test, the method further comprises:
and responding to a received test configuration instruction of a user for the target node, and executing the target micro service according to the test parameters indicated by the test configuration instruction so as to test the target micro service.
8. A microservice development apparatus, the apparatus comprising:
the system comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a micro-service development interface, and a plurality of alternative components are loaded on the micro-service development interface for a user to select;
the adding module is used for responding to the selection operation of the user on the micro service development interface and adding a plurality of target components selected by the user to the development editing area of the micro service development interface;
the generating module is used for generating flow information of the target micro-service formed by the target component according to the received configuration instruction of the target component by the user so as to obtain a service package of the target micro-service, wherein the service package does not contain source code information of the target component.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 7.
CN202011212465.5A 2020-11-03 2020-11-03 Micro-service development method and device, storage medium and electronic equipment Active CN112416318B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011212465.5A CN112416318B (en) 2020-11-03 2020-11-03 Micro-service development method and device, storage medium and electronic equipment
PCT/CN2021/094960 WO2022095412A1 (en) 2020-11-03 2021-05-20 Microservice development method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011212465.5A CN112416318B (en) 2020-11-03 2020-11-03 Micro-service development method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112416318A true CN112416318A (en) 2021-02-26
CN112416318B CN112416318B (en) 2021-10-08

Family

ID=74827482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011212465.5A Active CN112416318B (en) 2020-11-03 2020-11-03 Micro-service development method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112416318B (en)
WO (1) WO2022095412A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238733A (en) * 2021-04-25 2021-08-10 天津易和信息科技有限公司 Method, device and system for generating microservice
WO2022095412A1 (en) * 2020-11-03 2022-05-12 前海飞算云智软件科技(深圳)有限公司 Microservice development method and apparatus, storage medium, and electronic device
CN115756450A (en) * 2022-12-05 2023-03-07 广州玖晔网络科技有限公司 Micro-service development method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938332A (en) * 2022-06-29 2022-08-23 上海喜马拉雅科技有限公司 Model parameter configuration method and device, electronic equipment and readable storage medium
CN115408055B (en) * 2022-11-01 2022-12-27 北京领雁科技股份有限公司 Method and system for generating micro-service item based on single body

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897207A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Ui testing method and apparatus
US20180026984A1 (en) * 2016-07-22 2018-01-25 Box, Inc. Access authentication for cloud-based shared content
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device
CN108322351A (en) * 2018-03-05 2018-07-24 北京奇艺世纪科技有限公司 Generate method and apparatus, fault determination method and the device of topological diagram
CN108628746A (en) * 2018-05-04 2018-10-09 艺龙网信息技术(北京)有限公司 Automatic interface testing method and system
CN108681451A (en) * 2018-05-14 2018-10-19 浪潮软件集团有限公司 Visual kubernets micro-service arrangement implementation method
US20180307524A1 (en) * 2016-11-17 2018-10-25 Red Hat, Inc. Executing code referenced from a microservice registry
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Service Component formula development approach, device, computer equipment and storage medium
KR101909420B1 (en) * 2018-04-17 2018-12-19 부산대학교 산학협력단 Device and method for constructing monolithic application as microservice based unit
CN109491916A (en) * 2018-11-12 2019-03-19 北京东土科技股份有限公司 A kind of test method of operating system, device, equipment, system and medium
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110888755A (en) * 2019-11-15 2020-03-17 亚信科技(中国)有限公司 Method and device for searching abnormal root node of micro-service system
CN111708528A (en) * 2020-06-15 2020-09-25 中国建设银行股份有限公司 Method, device and equipment for generating small program and storage medium
CN111831269A (en) * 2020-07-21 2020-10-27 腾讯科技(深圳)有限公司 Application development system, operation method, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461895B (en) * 2014-12-17 2017-11-24 广东欧珀移动通信有限公司 The edit methods and system and automatization test system of cycle tests
US10628290B2 (en) * 2018-01-30 2020-04-21 Red Hat, Inc. Generating an inner cloud environment within an outer cloud environment for testing a microservice application
CN108804113B (en) * 2018-06-07 2022-03-22 东软集团股份有限公司 Method, device and storage medium for deploying microservice application and electronic equipment
CN112416318B (en) * 2020-11-03 2021-10-08 前海飞算云智软件科技(深圳)有限公司 Micro-service development method and device, storage medium and electronic equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897207A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Ui testing method and apparatus
US20180026984A1 (en) * 2016-07-22 2018-01-25 Box, Inc. Access authentication for cloud-based shared content
US20180307524A1 (en) * 2016-11-17 2018-10-25 Red Hat, Inc. Executing code referenced from a microservice registry
CN107888681A (en) * 2017-11-09 2018-04-06 北京中电普华信息技术有限公司 A kind of business flow processing method and device
CN108322351A (en) * 2018-03-05 2018-07-24 北京奇艺世纪科技有限公司 Generate method and apparatus, fault determination method and the device of topological diagram
KR101909420B1 (en) * 2018-04-17 2018-12-19 부산대학교 산학협력단 Device and method for constructing monolithic application as microservice based unit
CN108628746A (en) * 2018-05-04 2018-10-09 艺龙网信息技术(北京)有限公司 Automatic interface testing method and system
CN108681451A (en) * 2018-05-14 2018-10-19 浪潮软件集团有限公司 Visual kubernets micro-service arrangement implementation method
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Service Component formula development approach, device, computer equipment and storage medium
CN109491916A (en) * 2018-11-12 2019-03-19 北京东土科技股份有限公司 A kind of test method of operating system, device, equipment, system and medium
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110888755A (en) * 2019-11-15 2020-03-17 亚信科技(中国)有限公司 Method and device for searching abnormal root node of micro-service system
CN111708528A (en) * 2020-06-15 2020-09-25 中国建设银行股份有限公司 Method, device and equipment for generating small program and storage medium
CN111831269A (en) * 2020-07-21 2020-10-27 腾讯科技(深圳)有限公司 Application development system, operation method, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李明等: "传统架构升级微服务的设计与实现", 《科技传播 信息科技探索》 *
黄弋澔: "基于OSGi技术的Web应用组件化研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095412A1 (en) * 2020-11-03 2022-05-12 前海飞算云智软件科技(深圳)有限公司 Microservice development method and apparatus, storage medium, and electronic device
CN113238733A (en) * 2021-04-25 2021-08-10 天津易和信息科技有限公司 Method, device and system for generating microservice
CN115756450A (en) * 2022-12-05 2023-03-07 广州玖晔网络科技有限公司 Micro-service development method and system

Also Published As

Publication number Publication date
WO2022095412A1 (en) 2022-05-12
CN112416318B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN112416318B (en) Micro-service development method and device, storage medium and electronic equipment
US9268672B1 (en) Automated test case generation for applications
US20100017812A1 (en) Deploy Anywhere Framework For Heterogeneous Mobile Application Development
US9904524B2 (en) Method and device for visually implementing software code
US20120204160A1 (en) Managing Non-Common Features for Program Code Translation
CN108459792B (en) Flow switching method and device and computer equipment
JP2008176793A (en) Software test system, method, and computer-readable recording medium having program stored for executing this method
CN111695827B (en) Business process management method and device, electronic equipment and storage medium
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
US9582270B2 (en) Effective feature location in large legacy systems
KR20070058954A (en) Apparatus and method for prototype development of embedded system
CN115686631B (en) Random instruction generation method and device based on knowledge base and storage medium
EP1548581A2 (en) Methods, apparatus and programs for system development
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN112698974A (en) Fault injection test method, device and storage medium
CN112416757B (en) Component development method, device, storage medium and electronic equipment
CN113986270A (en) Distributed application deployment method and device, storage medium and electronic equipment
CN113590593A (en) Method and device for generating data table information, storage medium and electronic device
CN112685040A (en) Method, device, equipment and storage medium for generating interface file in android system
KR101794016B1 (en) Method of analyzing application objects based on distributed computing, method of providing item executable by computer, server performing the same and storage media storing the same
CN115599618B (en) Register dynamic change-allocation verification method and device, storage medium and processor
CN111026651A (en) Test method, test device, storage medium and electronic equipment
KR20120111618A (en) Apparatus and method for testing plc command
CN115269285A (en) Test method and device, equipment and computer readable storage medium
CN108897677B (en) Log construction method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant