CN112015372B - Heterogeneous service arranging method, processing method and device and electronic equipment - Google Patents

Heterogeneous service arranging method, processing method and device and electronic equipment Download PDF

Info

Publication number
CN112015372B
CN112015372B CN202010721314.6A CN202010721314A CN112015372B CN 112015372 B CN112015372 B CN 112015372B CN 202010721314 A CN202010721314 A CN 202010721314A CN 112015372 B CN112015372 B CN 112015372B
Authority
CN
China
Prior art keywords
service
micro
micro service
nodes
heterogeneous
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.)
Active
Application number
CN202010721314.6A
Other languages
Chinese (zh)
Other versions
CN112015372A (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.)
Beijing Percent Technology Group Co ltd
Original Assignee
Beijing Percent Technology Group 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 Beijing Percent Technology Group Co ltd filed Critical Beijing Percent Technology Group Co ltd
Priority to CN202010721314.6A priority Critical patent/CN112015372B/en
Publication of CN112015372A publication Critical patent/CN112015372A/en
Application granted granted Critical
Publication of CN112015372B publication Critical patent/CN112015372B/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/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The embodiment of the specification provides a heterogeneous service arranging method, a heterogeneous service processing method, a heterogeneous service arranging device and electronic equipment. The arranging method comprises the following steps: and creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro-service with at least two protocol frameworks. Configuring at least two micro service nodes required by the target heterogeneous service, a topological path of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting the service request data of the target heterogeneous service based on the protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes. And constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.

Description

Heterogeneous service arranging method, processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, a device and an electronic device for arranging heterogeneous services.
Background
The microservice is an emerging software architecture, namely a large single application service program is split into a plurality of microservices with independent support. The strategy of microservices can make work easier, it can extend a single component rather than the entire application stack, to meet service level agreements.
Heterogeneous services can be viewed as a collection of diverse types of microservices. These microservices in a heterogeneous service are not uniform in data protocol and data format and therefore do not communicate with each other. Therefore, how to arrange the engine aiming at the heterogeneous services and realize the heterogeneous services according to the engine is a technical problem to be solved by the application.
Disclosure of Invention
An embodiment of the specification aims to provide a heterogeneous service arrangement method, a heterogeneous service processing method, a heterogeneous service arrangement device and electronic equipment, which can be implemented by aiming at a heterogeneous service arrangement engine and according to the engine.
In order to achieve the above purpose, the embodiments of the present specification are implemented as follows:
in a first aspect, a method for arranging heterogeneous services is provided, including:
creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro service of at least two protocol frameworks;
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service based on protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes;
and constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
In a second aspect, a method for processing a heterogeneous service is provided, including:
calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service from the execution engine;
and analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the at least two corresponding micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
In a third aspect, an apparatus for orchestrating heterogeneous services is provided, including:
the service creating module is used for creating target heterogeneous services, and the target heterogeneous services comprise at least two types of micro services;
the node arranging module is used for configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarizing logic between the at least two micro service nodes and a virtual adapter, and the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service and inputting the service request data into the corresponding at least two micro service nodes;
and the engine construction module is used for constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
In a fourth aspect, an electronic device is provided comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program executed by the processor:
creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro service of at least two protocol frameworks;
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service based on protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes;
and constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
In a fifth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro service of at least two protocol frameworks;
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service based on protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes;
and constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
In a sixth aspect, an apparatus for processing a heterogeneous service is provided, including:
the engine calling module is used for calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
the engine analysis module is used for analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service from the execution engine;
and the engine execution module is used for analyzing the request data carried in the service request through the virtual adapter and sorting and inputting the request data to the corresponding at least two micro service nodes so as to perform data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes and obtain the output result of the target heterogeneous service.
In a seventh aspect, an electronic device is provided that includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program executed by the processor:
calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service from the execution engine;
and analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the at least two corresponding micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
In an eighth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are needed by the target heterogeneous service, from the execution engine;
and analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the at least two corresponding micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
The scheme of the embodiment of the specification constructs the execution engine of the heterogeneous service by configuring at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are required by the heterogeneous service. When the heterogeneous service is requested, the virtual adapter of the execution engine can analyze and sort the service request data based on the protocol language of the multi-protocol framework set by the virtual adapter of the execution engine and input the service request data to the micro service node corresponding to the execution engine, so that the service request data is processed according to the topological path corresponding to the execution engine and the data summarization logic between the micro service nodes, and the output result of the heterogeneous service is obtained. The whole scheme can efficiently and flexibly integrate micro service resources to realize the deployment of heterogeneous services.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative efforts.
Fig. 1 is a first flowchart of a heterogeneous service orchestration method provided by an embodiment of the present disclosure.
Fig. 2 is a first flowchart of a processing method for a heterogeneous service according to an embodiment of the present disclosure.
Fig. 3 is a second flowchart of an orchestration method for heterogeneous services according to an embodiment of the present disclosure.
Fig. 4 is a second flowchart of a method for processing a heterogeneous service according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an orchestration device for heterogeneous services according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a processing device for heterogeneous services according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of this specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
As previously mentioned, heterogeneous services can be viewed as a collection of diverse types of microservices. These micro-services in the heterogeneous services are not uniform in data protocol and data format and therefore do not communicate with each other. Currently, there is no engine orchestration scheme for heterogeneous services.
Against the above background, the present document aims to provide a scheme for engine orchestration of heterogeneous services and subsequent implementation of heterogeneous services based on the orchestrated engines.
Fig. 1 is a flowchart of an arrangement method of heterogeneous services according to an embodiment of the present disclosure. The method shown in fig. 1 may be performed by a corresponding apparatus below, comprising the steps of:
s102, creating target heterogeneous services, wherein the target heterogeneous services comprise microservices with at least two protocol frameworks.
It should be understood that different protocol frameworks correspond to different protocol languages, and data communication cannot be performed between the different protocol frameworks.
S104, configuring at least two micro service nodes required by the target heterogeneous service, a topological path of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting the service request data of the target heterogeneous service based on the protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted data into the corresponding at least two micro service nodes.
It should be understood that when a service user requests a target heterogeneous service, an initiated service request may carry service request data of a different protocol architecture. For this purpose, the virtual adapter may match the corresponding micro service node for the service request data based on different protocol architecture protocol languages configured by the virtual adapter.
S106, constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
The method of the embodiment of the specification constructs an execution engine of a heterogeneous service by configuring at least two micro service nodes, topology paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are required by the heterogeneous service. When the heterogeneous service is requested, the virtual adapter of the execution engine can analyze and sort the service request data based on the protocol language of the multi-protocol framework set by the virtual adapter of the execution engine and input the service request data to the micro service node corresponding to the execution engine, so that the service request data is processed according to the topological path corresponding to the execution engine and the data summarization logic between the micro service nodes, and the output result of the heterogeneous service is obtained. The whole scheme can efficiently and flexibly integrate micro service resources to realize the deployment of heterogeneous services.
Corresponding to the method shown in fig. 1, an embodiment of the present specification further provides a processing method of a heterogeneous service, which can implement a target heterogeneous service based on the execution engine. Fig. 2 is a flowchart of a processing method of a heterogeneous service according to an embodiment of the present disclosure. The method shown in fig. 2 may be performed by a corresponding apparatus below, comprising the steps of:
s202, based on the service request of the target heterogeneous service, an execution engine of the preset target heterogeneous service is called.
S204, analyzing and obtaining at least two micro service nodes, topology paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are needed by the target heterogeneous service, from the execution engine.
And S206, analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the corresponding at least two micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
The following describes the arrangement method and processing method of the heterogeneous service in detail in conjunction with an actual application scenario.
The application scene comprises a service arrangement flow and a heterogeneous service request flow.
As shown in fig. 3, the service orchestration process includes:
step 1: and registering the target heterogeneous service.
The purpose of the registration in this step is to integrate the required microservices for the target heterogeneous service. The detailed information of the target heterogeneous service, such as protocol, parameter, request mode, etc., needs to be registered, so that the data analysis operation is performed on the target heterogeneous service when the target heterogeneous service is requested.
Step 2: and arranging micro service nodes of the target heterogeneous service.
The step can display the layout interface of the target heterogeneous service to the user, the user can create the micro service nodes required by the micro service in a user-defined mode, and the micro service nodes are added into the layout interface through dragging operation to serve as the micro service nodes of the target heterogeneous service.
Further, the user can form a topological structure among the microservice nodes through a connection function of the topological relation provided by the arrangement interface. For example, the micro service nodes provided by the editing interface are connected according to a topological mode of the directed acyclic graph to form a topological path of the micro service nodes.
And step 3: and setting the micro service nodes.
The step sets up the micro service nodes dragged into the arrangement interface, including inputting parameters, outputting results and the like.
For the micro service nodes with output results having screening logic and complex data conversion logic, dynamic script programs can be written in a programming interface for data processing.
And 4, step 4: data summarization logic setup for microservice nodes
The step sets data summarization logic for the microservice nodes forming the topological connection in the arrangement interface. For example, the horizontally-connected data summarization logic (horizontally-connected is a process of reconstructing data sets by combining the data sets based on a certain column-value relationship of the two or more data sets, and is an operation of taking an intersection), and the vertically-connected data summarization logic (vertically-connected is a process of combining two or more data sets into one data set, and there is no need for a column-value relationship between the data sets, and only an operation of merging the data sets) and the like.
For the micro service nodes with complex summarizing logic, dynamic script programs can be written in the editing interface to summarize the data of the output of each micro service node.
And 5: setting an output node for a target heterogeneous service
Specifically, in this step, a node, that is, an output node, that is, a final output node of the target heterogeneous service is generated in the layout interface, and data output configuration, such as data format, data arrangement, and the like, is written for the output node.
And 6: virtual adapter for setting target heterogeneous service
In the step, a user can add a virtual adapter in the editing interface and set micro-service protocols, such as http \ webservice \ tcp \ dubbo and the like, required by the target heterogeneous service for the virtual adapter.
It should be appreciated that after the target heterogeneous service is requested, the virtual adapter can parse the service request data from the different protocol frameworks even based on the protocols set by the virtual adapter itself.
And 7: generating an execution engine
In the step, based on all the settings in the arrangement interface, an execution engine of the target heterogeneous service is generated and stored.
Then, as shown in fig. 4, the heterogeneous service request flow includes:
step 1: request resolution for targeted heterogeneous services
The request analysis is the most basic step for analyzing the request information sent by the requester and inquiring the related arranged microservices and the parameters related to the microservices.
Step 2: parsing execution engine
In the step, an execution engine for marking heterogeneous services is called, and micro services, related topological relevant paths, data summarization logic and a virtual adapter in the execution engine are analyzed.
And 3, step 3: data processing of microservice nodes
In the step, parameters of the micro service nodes are sent to the virtual adapter, and the virtual adapter determines the protocol configured by each micro service node. And then, the virtual adapter analyzes the service request data of the target heterogeneous service, determines the micro service nodes matched with the service request data, sorts and inputs the service request data to the corresponding micro service nodes, and performs related micro service processing on the request data distributed by the virtual adapter by the micro service nodes based on self configuration (a data processing mode, a script program and the like).
And 4, step 4: data summarization between microservice nodes
The step summarizes the output data of each micro service node according to the topological path and the data summarization logic among the micro service nodes.
And 5: outputting request results of target heterogeneous services
In this step, based on the output node of the execution engine, the final result of data summarization, that is, the output result of the target heterogeneous service is output, and the output result is fed back to the requester.
The above is an introduction to the method of the embodiments of the present specification. It will be appreciated that appropriate modifications may be made without departing from the principles outlined herein, and such modifications are intended to be included within the scope of the embodiments herein.
Corresponding to the arrangement method shown in the above figures, the embodiments of the present specification further provide an arrangement apparatus for heterogeneous services. FIG. 5 is a block diagram of orchestration device 500 comprising:
the service creation module 510 creates a target heterogeneous service, which contains at least two types of micro-services.
A node arranging module 520, configured with at least two micro service nodes required by the target heterogeneous service, a topological path of the at least two micro service nodes, a data summarization logic between the at least two micro service nodes, and a virtual adapter, where the virtual adapter is configured to analyze and sort service request data of the target heterogeneous service and input the service request data to the corresponding at least two micro service nodes;
the engine building module 530 is configured to build an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topology paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes, and the virtual adapter.
Optionally, the node arranging module 520 is specifically configured to: the method comprises the steps of displaying an arrangement interface of target heterogeneous services, and generating at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous services in the arrangement interface based on user operation aiming at the arrangement interface.
Correspondingly, the engine building module 530 is specifically configured to: converting at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are required by the generation of the target heterogeneous service in the editing interface generated in the editing interface, into an execution engine of the target heterogeneous service
Optionally, the configured micro service node includes a script program required by the micro service node to execute the corresponding function in the target heterogeneous service.
Optionally, the node orchestration module 520 configures the topology paths of the at least two microservice nodes in a topological manner of a directed acyclic graph.
Obviously, the arranging device shown in fig. 5 in the embodiments of the present description can implement the steps and functions in the arranging method shown in fig. 1 and fig. 3 described above. Since the principle is the same, the detailed description is omitted here.
Corresponding to the processing method shown in fig. 2, an embodiment of the present specification further provides a processing apparatus for heterogeneous services. Fig. 6 is a block diagram of a processing device 600, including:
the engine invoking module 610 invokes a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
an engine parsing module 620, configured to parse, from the execution engine, to obtain at least two micro service nodes, topology paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes, and a virtual adapter, where the at least two micro service nodes are required by the target heterogeneous service;
the engine executing module 630 analyzes the request data carried in the service request through the virtual adapter, and sorts and inputs the request data to the at least two corresponding micro service nodes, so as to perform data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes, and obtain the output result of the target heterogeneous service.
Obviously, the processing device shown in fig. 6 in the embodiment of the present specification can implement the steps and functions in the processing method shown in fig. 2 and fig. 4 described above. Since the principle is the same, the detailed description is omitted here.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present specification. Referring to fig. 7, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and the heterogeneous service arranging device is formed on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro service of at least two protocol frameworks;
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service based on protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes;
and constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
Or the processor reads the corresponding computer program from the nonvolatile memory into the memory and runs the computer program to form the heterogeneous service arranging device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
based on a service request of a target heterogeneous service, a preset execution engine of the target heterogeneous service is called.
At least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter are obtained through analysis of the execution engine.
And analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the corresponding at least two micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
Based on the electronic device in the embodiment of the present specification, an execution engine of a heterogeneous service may be constructed by configuring at least two micro service nodes, topology paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes, and a virtual adapter that are required by the heterogeneous service. When the heterogeneous service is requested, the virtual adapter of the execution engine can analyze and sort the service request data based on the protocol language of the multi-protocol framework set by the virtual adapter of the execution engine and input the service request data to the micro service node corresponding to the execution engine, so that the service request data is processed according to the topological path corresponding to the execution engine and the data summarization logic between the micro service nodes, and the output result of the heterogeneous service is obtained. The whole scheme can efficiently and flexibly integrate micro service resources to realize the deployment of heterogeneous services.
The above-mentioned arranging method disclosed in the embodiment of fig. 1 or the processing method disclosed in the embodiment of fig. 2 may be applied to and implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It should be understood that the electronic device of the embodiment in this specification may enable the arrangement apparatus shown in fig. 5 to implement the functions of the embodiment shown in fig. 1 and 3, or enable the processing apparatus shown in fig. 6 to implement the functions of the embodiment shown in fig. 2 and 4.
Of course, besides the software implementation, the electronic device in the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Furthermore, the present specification embodiments also propose a computer-readable storage medium storing one or more programs, the one or more programs including instructions.
Wherein the above instructions, when executed by a portable electronic device comprising a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and are specifically configured to perform the following steps:
and creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro-service with at least two protocol frameworks.
And configuring at least two micro service nodes required by the target heterogeneous service, a topological path of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting the service request data of the target heterogeneous service based on the protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes.
And constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
Alternatively, the above instructions, when executed by a portable electronic device comprising a plurality of application programs, can cause the portable electronic device to perform the method of the embodiment shown in fig. 2, and is specifically configured to perform the following steps:
based on a service request of a target heterogeneous service, a preset execution engine of the target heterogeneous service is called.
At least two micro service nodes needed by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter are obtained through analysis of the execution engine.
And analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the corresponding at least two micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification. Moreover, all other embodiments obtained by a person skilled in the art without making any inventive step shall fall within the scope of protection of this document.

Claims (11)

1. A method for orchestrating heterogeneous services, comprising:
creating a target heterogeneous service, wherein the target heterogeneous service comprises a micro service of at least two protocol frameworks;
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service based on protocol languages of the at least two protocol frameworks and inputting the analyzed and sorted service request data into the corresponding at least two micro service nodes;
constructing an execution engine of the target heterogeneous service based on at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, wherein the topological paths are obtained through configuration;
the arrangement process of the heterogeneous service comprises the following steps:
registering a target heterogeneous service;
arranging micro service nodes of the target heterogeneous service; displaying an arrangement interface of the target heterogeneous service to a user, creating a micro service node required by executing the micro service in a user-defined manner, and adding the micro service node to the arrangement interface through dragging operation to serve as the micro service node of the target heterogeneous service; the user also forms a topological structure among the micro service nodes through the connection function of the topological relation provided by the arrangement interface;
setting up a micro service node; setting the micro service nodes dragged into the arrangement interface; for the micro service nodes with the output results having the screening logic and the complex data conversion logic, a dynamic script program is also compiled in the programming interface for data processing;
setting data summarization logic of the micro service nodes; setting data summarization logic for the microservice nodes forming topological connection in the arrangement interface; for the micro service nodes with complex summarizing logic, a dynamic script program is also compiled in a compiling and arranging interface to be used for summarizing the data of the output of each micro service node;
setting an output node of the target heterogeneous service; generating a node of the final output of the target heterogeneous service, namely an output node, in the arrangement interface, and compiling data output configuration for the output node;
setting a virtual adapter of a target heterogeneous service; adding a virtual adapter in the arrangement interface, and setting a micro-service protocol required by the target heterogeneous service for the virtual adapter;
generating an execution engine; generating an execution engine of the target heterogeneous service based on all the settings in the layout interface, and storing the execution engine;
the request flow of the heterogeneous service comprises the following steps:
request analysis of the target heterogeneous service; the system is used for analyzing request information sent by a requester and inquiring related arranged micro services and parameters related to the micro services;
a parsing execution engine; calling an execution engine of the target heterogeneous service, and analyzing the micro-service, the related topological path, the data summarization logic and the virtual adapter in the execution engine;
data processing of the micro service node; specifically, parameters of micro service nodes are sent to a virtual adapter, the virtual adapter determines protocols configured by the micro service nodes, then the virtual adapter analyzes service request data of target heterogeneous services, the micro service nodes matched with the service request data are determined, the service request data are sorted and input to the corresponding micro service nodes, and the micro service nodes further perform related micro service processing on the request data distributed by the virtual adapter based on self configuration;
summarizing data among the micro service nodes; summarizing the output data of each micro service node according to the topological path and the data summarizing logic among the micro service nodes;
outputting a request result of the target heterogeneous service; and outputting a final data summarization result, namely an output result of the target heterogeneous service, based on the output node of the execution engine, and feeding the output result back to the requester.
2. The method of claim 1,
configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, comprising:
displaying an arrangement interface of a target heterogeneous service, and generating at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service in the arrangement interface based on user operation aiming at the arrangement interface;
an execution engine for constructing the target heterogeneous service, comprising:
converting at least two micro service nodes, topology paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter, which are required by the generation of the target heterogeneous service in the layout interface generated in the layout interface, into an execution engine of the target heterogeneous service.
3. The method of claim 1,
the configured micro service node comprises a script program required by the micro service node to execute the corresponding function in the target heterogeneous service.
4. The method of claim 1,
configuring the topological paths of the at least two microservice nodes comprises:
and configuring the topological paths of the at least two micro service nodes according to the topological mode of the directed acyclic graph.
5. A method for processing heterogeneous services, for use in conjunction with the method for orchestrating heterogeneous services according to claim 1,
calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service from the execution engine;
and analyzing the request data carried in the service request through the virtual adapter, sorting and inputting the request data to the corresponding at least two micro service nodes, and performing data processing according to the topological paths of the at least two micro service nodes and the data summarization logic between the at least two micro service nodes to obtain the output result of the target heterogeneous service.
6. An orchestration device of heterogeneous services for implementing the orchestration method of heterogeneous services of claim 1, comprising:
the service creating module is used for creating target heterogeneous services, and the target heterogeneous services comprise at least two types of micro services;
the node arranging module is used for configuring at least two micro service nodes required by the target heterogeneous service, topological paths of the at least two micro service nodes, data summarizing logic between the at least two micro service nodes and a virtual adapter, and the virtual adapter is used for analyzing and sorting service request data of the target heterogeneous service and inputting the service request data into the corresponding at least two micro service nodes;
and the engine construction module is used for constructing an execution engine of the target heterogeneous service based on the at least two micro service nodes required by the target heterogeneous service, the topological paths of the at least two micro service nodes, the data summarization logic between the at least two micro service nodes and the virtual adapter.
7. An electronic device includes: memory, processor and computer program stored on said memory and executable on said processor, characterized in that said computer program is executed by said processor for performing the method of orchestrating heterogeneous services according to claim 1.
8. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the heterogeneous service orchestration method of claim 1.
9. A processing apparatus for a heterogeneous service, configured to implement the processing method for the heterogeneous service according to claim 5, and comprising:
the engine calling module is used for calling a preset execution engine of the target heterogeneous service based on a service request of the target heterogeneous service;
the engine analysis module is used for analyzing and obtaining at least two micro service nodes, topological paths of the at least two micro service nodes, data summarization logic between the at least two micro service nodes and a virtual adapter which are needed by the target heterogeneous service from the execution engine;
and the engine execution module analyzes the request data carried in the service request through the virtual adapter and sorts and inputs the request data to the corresponding at least two micro service nodes so as to perform data processing according to the topological paths of the at least two micro service nodes and the data summarizing logic between the at least two micro service nodes and obtain the output result of the target heterogeneous service.
10. An electronic device includes: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the computer program is executed by the processor the method of processing a heterogeneous service according to claim 5.
11. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the processing method of a heterogeneous service according to claim 5.
CN202010721314.6A 2020-07-24 2020-07-24 Heterogeneous service arranging method, processing method and device and electronic equipment Active CN112015372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010721314.6A CN112015372B (en) 2020-07-24 2020-07-24 Heterogeneous service arranging method, processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010721314.6A CN112015372B (en) 2020-07-24 2020-07-24 Heterogeneous service arranging method, processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112015372A CN112015372A (en) 2020-12-01
CN112015372B true CN112015372B (en) 2022-12-23

Family

ID=73500276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010721314.6A Active CN112015372B (en) 2020-07-24 2020-07-24 Heterogeneous service arranging method, processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112015372B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220481A (en) * 2021-04-30 2021-08-06 平安壹钱包电子商务有限公司 Request processing and feedback method and device, computer equipment and readable storage medium
CN114518908B (en) * 2022-02-17 2024-03-22 杭州网易云音乐科技有限公司 Service orchestration method, medium, device and computing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息***有限公司 Enterprise application deployment and management system for multiple tenants
CN107612959A (en) * 2017-07-21 2018-01-19 哈尔滨工程大学 A kind of cloud service platform based on cloud micro services Self management
CN108604334A (en) * 2016-02-13 2018-09-28 At&T知识产权部有限合伙公司 Method and apparatus for autonomous services composition
CN109313571A (en) * 2016-06-10 2019-02-05 施耐德电器工业公司 For providing the method and system of agency service in industrial system
CN109347676A (en) * 2018-11-02 2019-02-15 杭州云霁科技有限公司 A kind of isomery, integrated mixed cloud resource management platform
CN110780914A (en) * 2018-07-31 2020-02-11 ***通信集团浙江有限公司 Service publishing method and device
CN111142867A (en) * 2019-12-31 2020-05-12 谷云科技(广州)有限责任公司 Service visual arrangement system and method under micro-service architecture

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息***有限公司 Enterprise application deployment and management system for multiple tenants
CN108604334A (en) * 2016-02-13 2018-09-28 At&T知识产权部有限合伙公司 Method and apparatus for autonomous services composition
CN109313571A (en) * 2016-06-10 2019-02-05 施耐德电器工业公司 For providing the method and system of agency service in industrial system
CN107612959A (en) * 2017-07-21 2018-01-19 哈尔滨工程大学 A kind of cloud service platform based on cloud micro services Self management
CN110780914A (en) * 2018-07-31 2020-02-11 ***通信集团浙江有限公司 Service publishing method and device
CN109347676A (en) * 2018-11-02 2019-02-15 杭州云霁科技有限公司 A kind of isomery, integrated mixed cloud resource management platform
CN111142867A (en) * 2019-12-31 2020-05-12 谷云科技(广州)有限责任公司 Service visual arrangement system and method under micro-service architecture

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于微服务架构的基础设施设计;蒋勇;《软件》;20160515(第05期);第101-105页 *

Also Published As

Publication number Publication date
CN112015372A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN110198247B (en) Interface test method and system
CN112015372B (en) Heterogeneous service arranging method, processing method and device and electronic equipment
CN111026634A (en) Interface automation test system, method, device and storage medium
CN109492301B (en) Software and hardware switching method and system
CN111679886A (en) Heterogeneous computing resource scheduling method, system, electronic device and storage medium
CN109683890B (en) Method, device, storage medium and equipment for modularizing cascading style sheet
CN115934097A (en) Method, device, storage medium and electronic device for generating executable statement
CN109840074B (en) Service generation method, device and network equipment
WO2022228156A1 (en) Policy orchestration processing method, apparatus, device and system and storage medium
CN106708854B (en) Data export method and device
CN110554877A (en) JSON data analysis method, device, equipment and storage medium
CN114237594A (en) Form interface generation method, device and system and readable storage medium
CN111580821B (en) Script binding method and device, electronic equipment and computer readable storage medium
CN113254014A (en) Sketch plug-in-based interface development method, device and system
CN113297449A (en) Method and system for realizing streaming crawler
CN105068926A (en) Program test method and device thereof
CN110768860B (en) Test method, test device and electronic equipment
CN112527459A (en) Log analysis method and device based on Kubernetes cluster
CN111596905A (en) Method, device, storage medium and terminal for generating java object
KR100930962B1 (en) Remote security testing device and method of RPC-based software
CN112947900A (en) Web application development method and device, server and development terminal
CN115113869A (en) Online webpage development method and device based on browser
CN109814916B (en) IVR flow configuration method, device, storage medium and server
CN116056120A (en) Operation and maintenance operation method, system and network equipment
CN111126931A (en) Node generation method and device based on data processing and computer equipment

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
CB02 Change of applicant information

Address after: No.27, 1st floor, building 14, Haidian Road, zhongjiancai District, Beijing 100096

Applicant after: Beijing PERCENT Technology Group Co.,Ltd.

Address before: 100096 101 / F, building 14, 27 Jiancai Middle Road, Haidian District, Beijing

Applicant before: BEIJING BAIFENDIAN INFORMATION SCIENCE & TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant