Micro-service arrangement practical operation examination method and system

By configuring exam question information and scoring rules, and utilizing gateway devices to divert exam traffic for automatic scoring, the problem of practical skills assessment in microservice orchestration systems has been solved. This has enabled automated exam and scoring processes, improving the efficiency and accuracy of assessing students' learning outcomes.

CN119273506APending Publication Date: 2025-01-07CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411391856.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing microservice orchestration systems lack practical skills assessment methods, making it difficult to accurately and efficiently assess learners' learning outcomes and affecting their in-depth understanding and practical application of microservice architecture.

Method used

This paper presents a practical examination method and system for microservice orchestration. By acquiring pre-configured exam question information, configuring the exam environment, and using a gateway device to divert exam traffic to a dedicated server, microservice orchestration is performed and scoring is automatically conducted according to scoring rules. This solves the black-box problem inside the aggregation interface and realizes an automated examination and scoring process.

Benefits of technology

It improves the accuracy and efficiency of assessing microservice orchestration learning outcomes, avoids impacting the production environment, ensures the reliability and convenience of exam scoring, and meets the assessment requirements for practical skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273506A_ABST
    Figure CN119273506A_ABST
Patent Text Reader

Abstract

The invention discloses a micro-service arrangement practical operation examination method and system. The method comprises the steps that pre-configured examination question information is acquired, an examination environment is configured, and the examination question information at least comprises requirement information of aggregation interfaces corresponding to a plurality of pre-arranged micro-services; receiving an aggregation interface address for the first object to perform micro-service arrangement and response according to the examination question information in the examination environment, and in the examination environment, the flow related to the examination can be shunted to the special server for the examination by the gateway equipment; and calling the aggregation interface address through the gateway device, obtaining calling process link information and response message information, and scoring the calling process link information and the response message information according to a pre-configured scoring rule to obtain a micro-service orchestration practical operation test score of the first object. According to the invention, a technical problem that it is difficult for students to accurately and efficiently assess learning results of micro-service orchestration in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microservice technology, and more specifically, to a microservice orchestration practical examination method and system. Background Art

[0002] With the rapid development of cloud computing technology and the deepening of enterprise digital transformation, cloud computing has become an important way for many enterprises to optimize resource allocation, reduce operating costs, and improve business agility. At the same time, as a trend in architecture design, system microservices can improve the flexibility and maintainability of the system by breaking down complex applications into a set of small independent services, each of which can be independently developed, deployed, and expanded to achieve specific functions. In order to cope with the new challenges brought about by the introduction of microservice architecture, microservice orchestration systems have emerged. By defining the communication and collaboration rules between microservices, complex business logic can be realized, which has significant advantages in improving development efficiency and promoting service reuse.

[0003] However, microservice orchestration systems involve not only technical integration, but also business process management and optimization, which means that their design and operation and maintenance require professional knowledge and skills. In this context, learning and mastering microservice architecture and orchestration systems becomes particularly important. However, existing education and training resources often focus on the teaching of theoretical knowledge and lack the cultivation and assessment of practical skills. The lack of practical skills not only affects learners' in-depth understanding of microservice architecture, but also limits their ability to apply it in actual work. Therefore, developing an effective practical ability assessment method is of great significance to improving the learning effect of microservice architecture and promoting the widespread application of microservice technology.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a microservice orchestration practical examination method and system to at least solve the technical problem in the related art that it is difficult to accurately and efficiently assess students' learning outcomes on microservice orchestration.

[0006] According to one aspect of an embodiment of the present application, a microservice orchestration practical examination method is provided, comprising: obtaining pre-configured examination question information and configuring an examination environment, wherein the examination question information at least includes: requirement information of an aggregate interface corresponding to a plurality of pre-arranged microservices; receiving an aggregate interface address for a first object to perform microservice orchestration and respond according to the examination question information in an examination environment, wherein in the examination environment, all examination-related traffic will be diverted by a gateway device to an examination-dedicated server; calling the aggregate interface address through the gateway device, obtaining calling process link information and response message information, and scoring the calling process link information and response message information according to pre-configured scoring rules to obtain a microservice orchestration practical examination score for the first object.

[0007] Optionally, the configuration process of the test question information includes: receiving basic information of the specified aggregation interface configured by the second object, wherein the basic information includes at least: interface name, input parameters, return value and difficulty level; receiving the orchestration relationship information between each microservice corresponding to the specified aggregation interface configured by the second object and metadata information of each microservice, wherein the metadata information includes at least one of the following: request header information, request body content, request address parameters, response header information, response body content; generating test question information based on the basic information of the specified aggregation interface, the orchestration relationship information between each microservice and the metadata information of each microservice.

[0008] Optionally, the configuration process of the scoring rules includes: receiving scoring conditions for different dimensions of the response content configured by the second object and the score values ​​corresponding to each scoring condition, wherein the dimensions include at least one of the following: service, metadata, field, action, and association relationship; generating scoring rules based on the scoring conditions and the score values.

[0009] Optionally, receiving the aggregate interface address of the first object for performing microservice orchestration and responding according to the test question information in the test environment, including: responding to each microservice orchestration request initiated by the first object in the test environment, forwarding each microservice orchestration request to the test-dedicated server through a gateway device, and feeding back the response result of the test-dedicated server to each microservice orchestration request; receiving the aggregate interface address input by the first object as a test response.

[0010] Optionally, the aggregate interface address is called by a gateway device to obtain the calling process link information and the response message information, and the calling process link information and the response message information are scored according to preconfigured scoring rules, including: after a preset time period after the end of the examination, calling the automatic scoring module to send an aggregate interface address calling request to the gateway device, receiving the calling process link information and the response message information fed back by the gateway device, and scoring the calling process link information and the response message information according to the scoring rules, wherein the automatic scoring module is a distributed timed task scheduling system based on remote procedure calls, and the gateway device is used to forward the aggregate interface address calling request to a dedicated server for the examination, track the calling process and record the calling process link information, and receive the response message information fed back by the dedicated server for the examination.

[0011] Optionally, after obtaining the microservice orchestration practical examination score of the first object, the calling process link information, response message information and the microservice orchestration practical examination score are stored in the target database; in response to the score query request of the first object, the microservice orchestration practical examination score is fed back to the first object; in response to the score review request of the first object, the automatic scoring module is re-called to score the calling process link information and the response message information according to the scoring rules, and the newly obtained microservice orchestration practical examination score is fed back to the first object.

[0012] Optionally, in the process of configuring the test question information, and / or in the process of the first object responding to the test question information, the implementation process of the microservice orchestration includes: responding to the interactive operations on the graphics corresponding to each microservice in the visual process editing interface, completing the microservice orchestration, wherein the interactive operations include at least one of the following: dragging, connecting, and parameter editing.

[0013] According to another aspect of an embodiment of the present application, a microservice orchestration practical examination system is also provided, including: an examination device, a gateway device and an examination-specific server, the examination device including: an examination service module and an automatic scoring module, wherein the examination service module is used to obtain pre-configured examination question information and configure the examination environment, the examination question information at least including: requirement information of the aggregation interface corresponding to multiple pre-arranged microservices; receiving the aggregation interface address of the first object that performs microservice orchestration and responds according to the examination question information in the examination environment; the gateway device is used to divert the examination-related traffic to the examination-specific server in the examination environment; in response to the aggregation interface address call request sent by the automatic scoring module, the aggregation interface address call request is forwarded to the examination-specific server, the call process is tracked and the call process link information is recorded, and the response message information fed back by the examination-specific server is received; the call process link information and the response message information are fed back to the automatic scoring module; the automatic scoring module is used to score the call process link information and the response message information according to the pre-configured scoring rules to obtain the microservice orchestration practical examination score of the first object.

[0014] According to another aspect of an embodiment of the present application, a computer program product is also provided, the computer program product comprising: a computer program, wherein when the computer program is executed by a processor, the above-mentioned microservice orchestration practical examination method is implemented.

[0015] According to another aspect of an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned microservice orchestration practical examination method through the computer program.

[0016] In the embodiment of the present application, firstly, the pre-configured test information is obtained and the test environment is configured, wherein the test information at least includes: the requirement information of the aggregation interface corresponding to the pre-arranged multiple microservices; then, the first object is received to perform microservice orchestration and respond to the aggregation interface address according to the test information in the test environment, wherein, in the test environment, the test-related traffic will be diverted to the test-dedicated server by the gateway device; then, the aggregation interface address is called by the gateway device to obtain the call process link information and the response message information, and the call process link information and the response message information are scored according to the pre-configured scoring rules to obtain the microservice orchestration practical test score of the first object. Among them, by diverting the test traffic to the test-dedicated server through the gateway device, the impact on the actual production environment can be avoided; the full-link tracking of the aggregation interface call through the gateway device solves the black box problem inside the aggregation interface in the orchestration practical test and ensures the reliability of the test scoring; and the entire test process and the scoring process are automated, without the intervention of the examiner, which improves the convenience of the test, that is, the present application scheme effectively solves the technical problem in the related technology that it is difficult to accurately and efficiently assess the learning results of students on microservice orchestration. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 It is a structural diagram of an optional microservice orchestration practical examination system according to an embodiment of the present application;

[0019] Figure 2 It is an interactive schematic diagram of an optional microservice orchestration practical test according to an embodiment of the present application;

[0020] Figure 3 It is an interactive schematic diagram of an optional microservice orchestration practical test scoring according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of the structure of an optional computer terminal according to an embodiment of the present application;

[0022] Figure 5 It is a flowchart of an optional microservice orchestration practical examination method according to an embodiment of the present application;

[0023] Figure 6 It is a structural diagram of an optional microservice orchestration practical examination device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] In order to better understand the embodiments of the present application, some nouns or terms that appear in the description of the embodiments of the present application are first translated and explained as follows:

[0027] Microservices Orchestration: Microservices are small, loosely coupled services built around specific business functions that can be independently scaled, deployed, and served. Microservices orchestration is the process of managing and coordinating the interactions between independent microservices in a microservices architecture to ensure that these microservices can work together to support complex business processes and applications.

[0028] Aggregated Interface: In microservice architecture, an aggregated interface refers to combining the interfaces of multiple microservices into a single interface, so that the client can interact with multiple microservices through this single interface. This approach can simplify client logic, hide the complexity of microservices, and provide a consistent interface to external callers. The aggregated interface address is the network address used to access the aggregated interface. The address is usually a URL (Uniform Resource Locator). The client sends a request through the URL. After the aggregated interface service receives the request, it distributes the request to one or more microservices on the backend according to the business logic.

[0029] Example 1

[0030] According to an embodiment of the present application, a microservices orchestration practical examination system is first provided, such as Figure 1 As shown, the test system at least includes: a test device 11, a gateway device 12 and a test-dedicated server 13, and the test device 11 includes: a test service module 111 and an automatic scoring module 112, wherein:

[0031] The examination service module 111 is used to obtain pre-configured examination question information and configure the examination environment, wherein the examination question information at least includes: requirement information of the aggregation interface corresponding to the pre-arranged multiple microservices; receive the aggregation interface address of the first object for microservice arrangement and response according to the examination question information in the examination environment;

[0032] The gateway device 12 is used to divert the test-related traffic to the test-dedicated server 13 in the test environment; in response to the aggregate interface address call request sent by the automatic scoring module 112, forward the aggregate interface address call request to the test-dedicated server 13, track the call process and record the call process link information, receive the response message information fed back by the test-dedicated server 13; feed back the call process link information and the response message information to the automatic scoring module 112;

[0033] The automatic scoring module 112 is used to score the call process link information and the response message information according to the preconfigured scoring rules to obtain the microservice orchestration practical test score of the first object.

[0034] Among them, the first object mentioned above is the candidates taking the microservice orchestration practical examination. The entire examination process and scoring process are automated, without the need for examiner intervention, which can greatly improve the convenience of the examination.

[0035] The following describes the functions of each module in the microservice orchestration practical examination system in combination with the specific implementation process.

[0036] It is understandable that in the preparation stage before the exam, the examiner still needs to configure the test information and scoring rules. As an optional implementation, the configuration process of the test information includes: receiving the basic information of the specified aggregation interface configured by the second object, and the basic information at least includes: interface name, input parameters, return value and difficulty level; receiving the orchestration relationship information between each microservice corresponding to the specified aggregation interface configured by the second object and the metadata information of each microservice, and the metadata information includes at least one of the following: request header information, request body content, request address parameters, response header information, response body content; generating test information based on the basic information of the specified aggregation interface, the orchestration relationship information between each microservice and the metadata information of each microservice.

[0037] Among them, the second object is the examiner. Considering that both the examiner's configuration of test questions and the subsequent test taker's answering stage involve the arrangement of specific microservices, in order to improve the convenience of the arrangement operation, the examination system of the embodiment of the present application provides a visual process editing interface, which can respond to the interactive operations of the corresponding graphics of each microservice in the interface, such as dragging, connecting, parameter editing, etc., to complete the arrangement of microservices.

[0038] Specifically, the examiner first configures the relevant basic information of the specified aggregation interface, then determines the orchestration relationship of the corresponding microservices in the visual process editing interface, and configures the relevant metadata information of each microservice. The system will automatically organize and generate test information based on the relevant information configured by the examiner.

[0039] Optionally, the configuration process of the scoring rules includes: receiving scoring conditions for different dimensions of the response content configured by the second object and the score values ​​corresponding to each scoring condition, wherein the dimensions include at least one of the following: service, metadata, field, action, and association relationship; generating scoring rules based on the scoring conditions and the score values.

[0040] Specifically, assessors can set different scoring conditions and specific scoring values ​​for different dimensions of the response content. For example, you can set "get X points when the response header of service 1 contains field A" or "get Y points when the value of field B in the response body of service 2 is C". The system automatically organizes these scoring conditions and scoring values ​​and generates specific scoring rules.

[0041] As an optional implementation, during the examination stage, the examination service module may receive the aggregate interface address of the first object that performs microservice orchestration and responds based on the examination question information in the examination environment in the following manner: in response to each microservice orchestration request initiated by the first object in the examination environment, forwarding each microservice orchestration request to the examination-dedicated server through a gateway device, and feeding back the response result of the examination-dedicated server to each microservice orchestration request; receiving the aggregate interface address input by the first object as an examination response.

[0042] Figure 2 A schematic diagram showing the interaction between a test taker and a test system during a test phase is shown. Figure 2 As shown, after the candidate starts the exam, the exam service module obtains the pre-configured exam question information and configures the exam environment for the candidate. In the exam environment, the candidate performs microservice orchestration in the provided visual process editing interface based on the exam question information. The gateway device will receive and identify various requests generated by the candidate during the exam. For example, by identifying the HTTP header information in the request, it can be determined that the request is a request generated during the exam. In order to prevent the request from affecting the normal production environment, the corresponding traffic can be diverted to the exam-dedicated server for processing, and the exam-dedicated server returns the response result. Finally, the candidate submits the aggregate interface address to the exam service module as a test response. In order to distinguish it from the aggregate interface address in normal production, the aggregate interface address submitted by the candidate can carry the exam identifier.

[0043] Optionally, after the exam, the automatic scoring module can complete automatic scoring in the following manner: after a preset time period after the exam, send an aggregation interface address call request to the gateway device, receive the call process link information and response message information fed back by the gateway device, and score the call process link information and response message information according to the scoring rules.

[0044] Among them, the automatic scoring module can use a distributed timed task scheduling system based on RPC (Remote Procedure Call), and the examination service module can store the responses submitted by each candidate in a task queue, which will be processed in turn by the automatic scoring module.

[0045] In order to solve the black box problem inside the aggregate interface in the orchestration practical examination, the embodiment of the present application also expands the function of the gateway device so that it can perform full-link tracking of the calling process of the aggregate interface address carrying the examination identifier, that is, the gateway device will forward the aggregate interface address calling request to the examination-dedicated server, track the calling process and record the calling process link information, and at the same time receive the response message information fed back by the examination-dedicated server, and uniformly feed back the calling process link information and the response message information to the automatic scoring module for scoring.

[0046] Figure 3 A schematic diagram showing the interaction between the modules of the examination system during the scoring phase is shown. Figure 3 As shown, the automatic scoring module obtains the aggregate interface address submitted by the examinee from the examination service module, and sends an aggregate interface address call request to the gateway device. The gateway device identifies whether the request has an examination identifier, for example, by identifying the HTTP header information in the request to determine that the request is a call request in the examination scoring process. In order to avoid the request affecting the normal production environment, it can be diverted to the examination-specific server for processing. The gateway device records the call process link information and receives the response message information fed back by the examination-specific server, and feeds the call process link information and the response message information back to the automatic scoring module. The automatic scoring module obtains the pre-configured scoring rules from the examination service module, and scores the call process link information and the response message information according to the scoring rules to obtain the examinee's microservice orchestration practical examination score.

[0047] As an optional implementation, in order to facilitate subsequent examinees to query or review their scores, the automatic scoring module can store the call process link information, response message information and microservice orchestration practical test score to the target database after obtaining the microservice orchestration practical test score of the first subject. Afterwards, the examination system can respond to the score query request of the first subject and feedback the microservice orchestration practical test score to the first subject; it can also respond to the score review request of the first subject and re-call the automatic scoring module to score the call process link information and response message information according to the scoring rules, and feedback the newly obtained microservice orchestration practical test score to the first subject.

[0048] In an embodiment of the present application, the test traffic is diverted to a dedicated test server through a gateway device to avoid affecting the actual production environment; full-link tracking of aggregate interface calls is performed through a gateway device to solve the black box problem inside the aggregate interface in the practical orchestration test, thereby ensuring the reliability of the test scoring; and the entire test process and scoring process are automated without the need for intervention by assessors, thereby improving the convenience of the test. That is, the present application scheme effectively solves the technical problem in related technologies that it is difficult to accurately and efficiently assess students' learning outcomes on microservice orchestration.

[0049] Example 2

[0050] Based on the microservice orchestration practical examination system provided in Example 1, the embodiment of the present application provides a microservice orchestration practical examination method implemented by an examination device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0051] In an embodiment of the present application, the examination device for implementing the microservice orchestration practical examination method can be embodied in the form of a mobile terminal, a computer terminal or a similar computing device. Figure 4 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a microservice orchestration practical examination method is shown. Figure 4 As shown, the computer terminal 40 (or mobile device 40) may include one or more (402a, 402b, ..., 402n are used to illustrate) processors 402 (the processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 404 for storing data, and a transmission device 406 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown.

[0052] It should be noted that the one or more processors 402 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 40 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0053] The memory 404 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the microservice orchestration practical examination method in the embodiment of the present application. The processor 402 executes various functional applications and data processing by running the software programs and modules stored in the memory 404, that is, realizing the vulnerability detection method of the above-mentioned application. The memory 404 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 404 may further include a memory remotely arranged relative to the processor 402, and these remote memories may be connected to the computer terminal 40 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0054] The transmission device 406 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 40. In one example, the transmission device 406 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0055] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 40 (or mobile device).

[0056] In the above operating environment, the embodiment of the present application provides a microservice orchestration practical examination method, such as Figure 5 As shown, the method comprises the following steps:

[0057] Step S502, obtaining pre-configured test information and configuring the test environment, wherein the test information at least includes: requirement information of the aggregation interface corresponding to the pre-arranged plurality of microservices;

[0058] Step S504, receiving the aggregation interface address of the first object for performing microservice orchestration and responding according to the test question information in the test environment, wherein in the test environment, all test-related traffic will be diverted by the gateway device to the test-dedicated server;

[0059] Step S506, calling the aggregation interface address through the gateway device, obtaining the calling process link information and the response message information, and scoring the calling process link information and the response message information according to the preconfigured scoring rules to obtain the microservice orchestration practical test score of the first object.

[0060] The following describes the various steps of the microservice orchestration practical examination method in conjunction with the specific implementation process.

[0061] Understandably, in the preparation stage before the exam, the examiner needs to configure the exam information and scoring rules. Considering that both the examiner's configuration of the exam questions and the subsequent test taker answering stage involve the arrangement of specific microservices, in order to improve the convenience of the arrangement operation, the embodiment of the present application provides a visual process editing interface for the arrangement of microservices.

[0062] Specifically, in the process of configuring the test question information, and / or in the process of the first object responding to the test question information, microservice orchestration can be achieved in the following way: in response to the interactive operation of the graphics corresponding to each microservice in the visual process editing interface, the microservice orchestration is completed, wherein the interactive operation includes at least one of the following: dragging, connecting, and parameter editing.

[0063] As an optional implementation, the configuration process of the test question information includes: receiving basic information of a specified aggregation interface configured by a second object, the basic information including at least: interface name, input parameters, return value and difficulty level; receiving orchestration relationship information between each microservice corresponding to the specified aggregation interface configured by the second object and metadata information of each microservice, the metadata information including at least one of the following: request header information, request body content, request address parameters, response header information, response body content; generating test question information based on the basic information of the specified aggregation interface, the orchestration relationship information between each microservice and the metadata information of each microservice.

[0064] Specifically, the examiner first configures the relevant basic information of the specified aggregation interface, then determines the orchestration relationship of the corresponding microservices in the visual process editing interface, and configures the relevant metadata information of each microservice. The examination equipment will automatically organize and generate examination question information based on the relevant information configured by the examiner.

[0065] Optionally, the configuration process of the scoring rules includes: receiving scoring conditions for different dimensions of the response content configured by the second object and the score values ​​corresponding to each scoring condition, wherein the dimensions include at least one of the following: service, metadata, field, action, and association relationship; generating scoring rules based on the scoring conditions and the score values.

[0066] Specifically, examiners can set different scoring conditions and specific scoring values ​​for different dimensions of the response content. For example, they can set "get X points when the response header of service 1 contains field A" or "get Y points when the value of field B in the response body of service 2 is C". The test equipment automatically organizes these scoring conditions and scoring values ​​to generate specific scoring rules.

[0067] As an optional implementation, during the examination stage, the examination device may receive the aggregate interface address of the first object that performs microservice orchestration and responds based on the examination question information in the examination environment in the following manner: in response to each microservice orchestration request initiated by the first object in the examination environment, forwarding each microservice orchestration request to the examination-dedicated server through a gateway device, and feeding back the response result of the examination-dedicated server to each microservice orchestration request; receiving the aggregate interface address input by the first object as an examination response.

[0068] For example, after the candidate starts the exam, the test device obtains the pre-configured test question information and configures the test environment for the candidate. In the test environment, the candidate performs microservice orchestration in the provided visual process editing interface based on the test question information. The gateway device will receive and identify various requests generated by the candidate during the test. For example, by identifying the HTTP header information in the request, it can be determined that the request is a request generated during the test. In order to avoid the request affecting the normal production environment, the corresponding traffic can be diverted to the test-dedicated server for processing, and the test-dedicated server returns the response result. Finally, the candidate submits the aggregation interface address to the test device as a test response. In order to distinguish it from the aggregation interface address in normal production, the aggregation interface address submitted by the candidate can carry the test identifier.

[0069] Optionally, after the exam, the test device can complete automatic scoring in the following manner: after a preset time period after the exam, call the automatic scoring module to send an aggregation interface address call request to the gateway device, receive the call process link information and response message information fed back by the gateway device, and score the call process link information and response message information according to the scoring rules.

[0070] Among them, the automatic scoring module can use a distributed timed task scheduling system based on RPC, and the test device can store the responses submitted by each candidate in the task queue, which will be processed in sequence by the automatic scoring module. In order to solve the black box problem inside the aggregate interface in the practical operation test, the embodiment of the present application also expands the function of the gateway device so that it can perform full-link tracking of the call process of the aggregate interface address carrying the test identifier, that is, the gateway device will forward the aggregate interface address call request to the test-dedicated server, track the call process and record the call process link information, and receive the response message information fed back by the test-dedicated server at the same time, and uniformly feed back the call process link information and response message information to the automatic scoring module for scoring.

[0071] For example, the test device calls the automatic scoring module to obtain the aggregate interface address submitted by the examinee, and sends an aggregate interface address call request to the gateway device. The gateway device identifies whether the request has an exam identifier, for example, by identifying the HTTP header information in the request to determine that the request is a call request in the test scoring process. In order to avoid the request affecting the normal production environment, it can be diverted to the test-dedicated server for processing. The gateway device records the call process link information and receives the response message information fed back by the test-dedicated server, and feeds the call process link information and the response message information back to the automatic scoring module. The automatic scoring module obtains the pre-configured scoring rules, and scores the call process link information and the response message information according to the scoring rules, thereby obtaining the examinee's microservice orchestration practical test score.

[0072] As an optional implementation, in order to facilitate subsequent examinees to query or review scores, after obtaining the microservice orchestration practical test score of the first subject, the test device can store the call process link information, response message information and microservice orchestration practical test score in the target database. Afterwards, the test device can respond to the score query request of the first subject and feedback the microservice orchestration practical test score to the first subject; it can also respond to the score review request of the first subject and re-call the automatic scoring module to score the call process link information and response message information according to the scoring rules, and feedback the newly obtained microservice orchestration practical test score to the first subject.

[0073] In the embodiment of the present application, firstly, the pre-configured test information is obtained and the test environment is configured, wherein the test information at least includes: the requirement information of the aggregation interface corresponding to the pre-arranged multiple microservices; then, the first object is received to perform microservice orchestration and respond to the aggregation interface address according to the test information in the test environment, wherein, in the test environment, the test-related traffic will be diverted to the test-dedicated server by the gateway device; then, the aggregation interface address is called by the gateway device to obtain the call process link information and the response message information, and the call process link information and the response message information are scored according to the pre-configured scoring rules to obtain the microservice orchestration practical test score of the first object. Among them, by diverting the test traffic to the test-dedicated server through the gateway device, the impact on the actual production environment can be avoided; the full-link tracking of the aggregation interface call through the gateway device solves the black box problem inside the aggregation interface in the orchestration practical test and ensures the reliability of the test scoring; and the entire test process and the scoring process are automated, without the intervention of the examiner, which improves the convenience of the test, that is, the present application scheme effectively solves the technical problem in the related technology that it is difficult to accurately and efficiently assess the learning results of students on microservice orchestration.

[0074] Example 3

[0075] According to an embodiment of the present application, a microservice orchestration practical examination device for implementing the microservice orchestration practical examination method in Example 2 is also provided. Figure 6 As shown, the microservice orchestration practical examination device at least includes: a configuration module 61, a receiving module 62 and a scoring module 63, wherein:

[0076] Configuration module 61, used to obtain pre-configured test information and configure the test environment, wherein the test information at least includes: requirement information of the aggregation interface corresponding to the pre-arranged plurality of microservices;

[0077] The receiving module 62 is used to receive the aggregate interface address of the first object for performing microservice orchestration and responding according to the test question information in the test environment, wherein in the test environment, all test-related traffic will be diverted by the gateway device to the test-dedicated server;

[0078] The scoring module 63 is used to call the aggregation interface address through the gateway device, obtain the calling process link information and the response message information, and score the calling process link information and the response message information according to the preconfigured scoring rules to obtain the microservice orchestration practical test score of the first object.

[0079] It should be noted that each module in the microservice orchestration practical examination device in the embodiment of the present application corresponds one by one to each implementation step of the microservice orchestration practical examination method in Example 1. Since a detailed description has been given in Example 1, some details not reflected in this embodiment can be referred to Example 1, and will not be repeated here.

[0080] Example 4

[0081] According to an embodiment of the present application, a computer program product is also provided, which includes a computer program, wherein when the computer program is executed by a processor, the microservice orchestration practical examination method in Example 2 is implemented.

[0082] According to an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the microservice orchestration practical examination method in Example 2 by running the computer program.

[0083] According to an embodiment of the present application, a processor is also provided, which is used to run a computer program, wherein the microservice orchestration practical examination method in Example 2 is executed when the computer program is running.

[0084] According to an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the microservice orchestration practical examination method in Example 2 through the computer program.

[0085] Specifically, the computer program executes the following steps when it is running: obtaining pre-configured test question information and configuring the test environment, wherein the test question information at least includes: requirement information of the aggregation interface corresponding to multiple pre-arranged microservices; receiving the aggregation interface address of the first object that performs microservice orchestration and responds according to the test question information in the test environment, wherein in the test environment, all test-related traffic will be diverted by the gateway device to the test-dedicated server; calling the aggregation interface address through the gateway device, obtaining the calling process link information and the response message information, and scoring the calling process link information and the response message information according to the pre-configured scoring rules to obtain the microservice orchestration practical test score of the first object.

[0086] The serial numbers of the above embodiments are only for description and do not represent the advantages or disadvantages of the embodiments.

[0087] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0088] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0092] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A microservice orchestration practical examination method, characterized in that: include: Obtaining pre-configured test information and configuring a test environment, wherein the test information at least includes: requirement information of aggregation interfaces corresponding to a plurality of pre-arranged microservices; Receiving the aggregation interface address of the first object for performing microservice orchestration and responding according to the test question information in the test environment, wherein, in the test environment, all test-related traffic will be diverted by the gateway device to the test-dedicated server; The aggregation interface address is called by the gateway device to obtain the calling process link information and the response message information, and the calling process link information and the response message information are scored according to a preconfigured scoring rule to obtain the microservice orchestration practical test score of the first object.

2. The method according to claim 1, characterized in that: The configuration process of the test question information includes: Receive basic information of a designated aggregation interface configured by the second object, wherein the basic information includes at least: an interface name, input parameters, a return value, and a difficulty level; Receive the orchestration relationship information between each microservice corresponding to the specified aggregation interface configured by the second object and the metadata information of each microservice, wherein the metadata information includes at least one of the following: request header information, request body content, request address parameters, response header information, and response body content; The test question information is generated according to the basic information of the designated aggregation interface, the orchestration relationship information between the microservices, and the metadata information of the microservices.

3. The method according to claim 1, characterized in that The configuration process of the scoring rule includes: Receive scoring conditions for different dimensions of the response content configured by the second object and the score value corresponding to each of the scoring conditions, wherein the dimensions include at least one of the following: service, metadata, field, action, and association relationship; The scoring rule is generated according to the scoring condition and the scoring value.

4. The method according to claim 1, characterized in that: Receiving the aggregation interface address of the first object for performing microservice orchestration and responding according to the test question information in the test environment, including: In response to each microservice orchestration request initiated by the first object in the examination environment, forward each microservice orchestration request to the examination-specific server through the gateway device, and feed back a response result of the examination-specific server to each microservice orchestration request; The aggregate interface address input by the first object as a test response is received.

5. The method according to claim 1, characterized in that Calling the aggregation interface address through the gateway device, obtaining calling process link information and response message information, and scoring the calling process link information and the response message information according to a preconfigured scoring rule, including: After a preset time period after the end of the examination, the automatic scoring module is called to send an aggregate interface address call request to the gateway device, the call process link information and the response message information fed back by the gateway device are received, and the call process link information and the response message information are scored according to the scoring rules, wherein the automatic scoring module is a distributed timed task scheduling system based on remote procedure calls, and the gateway device is used to forward the aggregate interface address call request to the examination-dedicated server, track the call process and record the call process link information, and receive the response message information fed back by the examination-dedicated server.

6. The method according to claim 5, characterized in that After obtaining the microservice orchestration practical test score of the first object, the method further includes: The calling process link information, the response message information and the microservice orchestration practical test score are stored in a target database; In response to the score query request of the first object, feeding back the microservice orchestration practical examination score to the first object; In response to the score review request of the first object, the automatic scoring module is re-invoked to score the call process link information and the response message information according to the scoring rule, and the newly obtained microservice orchestration practical examination score is fed back to the first object.

7. The method according to any one of claims 1 to 6, characterized in that: In the process of configuring the test question information, and / or in the process of the first object responding to the test question information, the implementation process of microservice orchestration includes: responding to interactive operations on graphics corresponding to each microservice in the visual process editing interface, completing microservice orchestration, wherein the interactive operations include at least one of the following: dragging, connecting, and parameter editing.

8. A microservice orchestration practical examination system, characterized in that: include: The test device, the gateway device and the test dedicated server, the test device includes: a test service module and an automatic scoring module, wherein: The test service module is used to obtain pre-configured test information and configure the test environment, wherein the test information at least includes: requirement information of the aggregation interface corresponding to the pre-arranged multiple microservices; receive the address of the aggregation interface to which the first object performs microservice orchestration and responds according to the test information in the test environment; The gateway device is used to divert the test-related traffic to the test-dedicated server in the test environment; in response to the aggregate interface address call request sent by the automatic scoring module, forward the aggregate interface address call request to the test-dedicated server, track the call process and record the call process link information, receive the response message information fed back by the test-dedicated server; feed back the call process link information and the response message information to the automatic scoring module; The automatic scoring module is used to score the call process link information and the response message information according to a preconfigured scoring rule to obtain the microservice orchestration practical test score of the first object.

9. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the microservice orchestration practical examination method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the microservice orchestration practical examination method according to any one of claims 1 to 7 through the computer program.