CN114564294A - Intelligent service arranging method and device, computer equipment and storage medium - Google Patents

Intelligent service arranging method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114564294A
CN114564294A CN202210202884.3A CN202210202884A CN114564294A CN 114564294 A CN114564294 A CN 114564294A CN 202210202884 A CN202210202884 A CN 202210202884A CN 114564294 A CN114564294 A CN 114564294A
Authority
CN
China
Prior art keywords
service
target
result
interface
processing
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.)
Pending
Application number
CN202210202884.3A
Other languages
Chinese (zh)
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202210202884.3A priority Critical patent/CN114564294A/en
Publication of CN114564294A publication Critical patent/CN114564294A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the application belongs to the technical field of cloud, and relates to an intelligent service arranging method which comprises the steps of obtaining a target task flow corresponding to a service request when the service request is received; sequentially calling service nodes according to the target task flow, respectively configuring service interfaces, access information and access information of the service nodes, and processing tasks corresponding to the target task flow based on the configured service nodes to obtain task results; and performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task process is completed, and returning the target result to a front-end display interface. The application also provides an intelligent service arranging device, computer equipment and a storage medium. Furthermore, the target result may be stored in a block chain. The method and the device improve the arranging accuracy and efficiency of the service nodes.

Description

Intelligent service arranging method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of cloud technologies, and in particular, to an intelligent service orchestration method and apparatus, a computer device, and a storage medium.
Background
With the rise of micro services, functional modules are subdivided and refined, the structure of service arrangement tends to be complicated, and when a business target is to be realized, more services are called, and if flexible adjustment cannot be realized, the market change of the day-to-day business cannot be met. The traditional service arrangement has no configurable page and exception handling scheme, which often causes the problems of difficult configuration service arrangement and low service arrangement efficiency.
Disclosure of Invention
An embodiment of the present application provides an intelligent service orchestration method, apparatus, computer device, and storage medium, so as to solve the technical problem of low service orchestration efficiency.
In order to solve the above technical problem, an embodiment of the present application provides an intelligent service orchestration method, which adopts the following technical solutions:
when a service request is received, acquiring a target task flow corresponding to the service request;
sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow by the service nodes configured based on the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task process is completed, and returning the target result to a front-end display interface.
Further, the configuring the service interface of the service node includes:
acquiring an upstream interface of the service interface according to the target task flow, and determining whether a field of the upstream interface is associated with the service interface;
and when the field of the upstream interface is associated with the service interface, acquiring an interface return value of the upstream interface, and configuring the field value of the service interface according to the interface return value.
Further, the configuring the access information and the access information of the service node respectively includes:
acquiring the function information of the target task flow, and configuring the field type and the field code of the access information and the access information of the service node according to the function information;
and when the field type and the field coding configuration are completed, determining that the configuration of the access information and the access information of the service node is completed.
Further, the processing, by the service node configured based on the entry information and the exit information, the task corresponding to the target task process includes:
acquiring the running state of the current target task flow, and analyzing the running state to obtain a target execution task list;
and transmitting the target execution task list into a service queue, and calling the service node to process a task corresponding to the target task flow based on the task sequence of the service queue.
Further, the performing data processing on the task result of each service node to obtain a plurality of processing results includes:
acquiring a target conversion table, and performing format conversion on the task result based on the target conversion table to obtain a task result after format conversion;
and acquiring a target storage path, and transferring the task result after format conversion to the target storage path to obtain the processing result.
Further, the integrating the plurality of processing results into the target result includes:
acquiring a key name of each processing result, and determining the processing result with the same key name as a first sub-processing result;
acquiring a latest processing result and a historical processing result in the first sub-processing result, and covering a key value of the historical processing result as a key value of the latest processing result;
determining the processing results with different key names as second sub-processing results, and performing tiled storage on the second sub-processing results according to the key names to obtain an integrated result;
and generating a target format file corresponding to the integration result to obtain the target result.
Further, after the returning the target result to the front-end display interface, the method includes:
monitoring the service node in real time or in fixed time, and checking the calling parameters of a service interface in the service node;
determining whether the service node has interface calling abnormity according to the calling parameter;
and when the interface calling abnormity exists, feeding back abnormal information corresponding to the interface calling abnormity to the front-end display interface.
In order to solve the above technical problem, an embodiment of the present application further provides an intelligent service orchestration device, which adopts the following technical scheme:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a target task flow corresponding to a service request when the service request is received;
the configuration module is used for sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow on the basis of the service nodes configured by the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and the processing module is used for carrying out data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task flow is processed, and returning the target result to a front-end display interface.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
when a service request is received, acquiring a target task flow corresponding to the service request;
sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow by the service nodes configured based on the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task process is completed, and returning the target result to a front-end display interface.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
when a service request is received, acquiring a target task flow corresponding to the service request;
sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow by the service nodes configured based on the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task process is completed, and returning the target result to a front-end display interface.
According to the intelligent service arranging method, when a service request is received, a target task flow corresponding to the service request is obtained; then, calling service nodes in sequence according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow by the service nodes configured based on the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes, so that the accurate configuration of the service nodes corresponding to different flow nodes in the target task flow is realized; and then, performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task flow processing is completed, and returning the target result to a front-end display interface, so that intelligent arrangement of service nodes is realized, the arrangement accuracy and efficiency of the service nodes are improved, and the service can be accurately and efficiently processed by the nodes after intelligent arrangement.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of an intelligent services orchestration method according to the present application;
FIG. 3 is a schematic block diagram illustrating one embodiment of an intelligent services orchestration device according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Reference numerals: the intelligent service orchestration device 300, an acquisition module 301, a configuration module 302, and a processing module 303.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer iv, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the intelligent service orchestration method provided in the embodiments of the present application is generally executed by a server/terminal device, and accordingly, the intelligent service orchestration apparatus is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a method of intelligent service orchestration according to the present application is shown. The intelligent service arranging method comprises the following steps:
step S201, when a service request is received, a target task flow corresponding to the service request is obtained;
in this embodiment, the target task flow is a task flow that needs to be processed currently, and the target task flow is composed of one or more subtasks. And when the service request is received, analyzing the service request to obtain a target task flow corresponding to the service request.
Step S202, sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow on the basis of the service nodes configured by the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
in this embodiment, the target task process includes a plurality of subtasks, one subtask corresponds to one service node, and the target task process corresponds to a plurality of service nodes. And configuring the service node according to the target task process, wherein the configuration of the service node comprises the configuration of a service interface, the access information and the access information of the service node. Specifically, when a target task flow is obtained, sub-tasks in the target task flow are sequentially configured with corresponding service interfaces, and configuration is performed on entry information and exit information of a service node according to the target task flow. The service interface, the access information and the access information of each service node are configured, so that the corresponding subtasks can be processed by the service node. And then, when the configuration of the service node is completed, processing the task in the target task flow based on the service node to obtain a task result, wherein the task processed by the service node is a subtask in the service flow. In addition, when the service node is configured according to the target task flow, different target task flows can be obtained in advance, and the service node of the target task flow is configured on the canvas in advance according to the target task flow; when a service request of a task corresponding to one of the target task flows is received, the service interfaces of the service nodes corresponding to the target task flow are directly called in a serial connection mode, the subtasks needing to be processed are processed on the basis of the service nodes, and therefore the processing efficiency of the service nodes is further improved.
Step S203, performing data processing on the task result of each service node to obtain a plurality of processing results, when the target task process is completed, integrating the plurality of processing results into a target result, and returning the target result to a front-end display interface.
In this embodiment, when a task result is obtained, data processing is performed on the task result to obtain a plurality of processing results. The data processing comprises operations of format conversion, data unloading and the like. And when a processing result corresponding to each service node is obtained, determining that the target task flow is completed, integrating all the processing results into one target result, and returning the target result to the front-end display interface.
It is emphasized that the target result can also be stored in a node of a blockchain in order to further ensure the privacy and security of the target result.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
According to the method and the device, intelligent arrangement of the service nodes is realized, the arrangement accuracy and efficiency of the service nodes are improved, and the nodes subjected to intelligent arrangement can accurately and efficiently process the service.
In some optional implementation manners of this embodiment, the configuring a service interface of the service node includes:
acquiring an upstream interface of the service interface according to the target task flow, and determining whether a field of the upstream interface is associated with the service interface;
and when the field of the upstream interface is associated with the service interface, acquiring an interface return value of the upstream interface, and configuring the field value of the service interface according to the interface return value.
In this embodiment, when scheduling the service interface of the service node, the service interface is scheduled in series according to the target task flow. Therefore, when the service interface of the service node is configured, the upstream interface of the service interface is obtained according to the target task flow, and whether the field of the upstream interface is associated with the current service interface is determined. The upstream interface is an interface of a service node corresponding to a previous subtask of the current service node, and when the upstream interface finishes processing, the current service interface processes the current subtask. If the upstream interface is a node with a judging function in the target task flow, namely, if the subtask of the upstream interface is judged, or the association between the upstream interface and the current service node is determined through a preset task configuration table, determining the association between the current service interface and the upstream interface; when the current service interface is associated with the upstream interface, acquiring an interface return value of the upstream interface, and configuring a field value of the service interface according to the interface return value, wherein the field value of the service interface is the interface return value of the upstream interface. If the upstream interface is not a node with a judging function in the target task flow, namely, a subtask of the upstream interface is not judged, or the upstream interface is determined to be not associated with the current service node through a preset task configuration table, determining that the current service interface is not associated with the upstream interface; and when the current service interface is not associated with the upstream interface, independently configuring the field value of the current service interface.
In this embodiment, the service interface is configured, so that the configured service interface can accurately process the task of each interface.
In some optional implementation manners of this embodiment, the configuring the access information and the access information of the service node respectively includes:
acquiring the function information of the target task flow, and configuring the field type and the field code of the access information and the access information of the service node according to the function information;
and when the field type and the field coding configuration are completed, determining that the configuration of the access information and the access information of the service node is completed.
In this embodiment, the function information is function parameter information implemented by the current target task flow, the field type is a type of an input or output field of the input or output information, and the field code is code information of the input or output field of the input or output information. And respectively configuring the field type and the field code of the access information and the access information of the service node according to the function information. And when the service interface of the service node, the field type and the field code of the access information and the field type and the field code of the access information are configured, determining that the configuration of the current service node is completed.
In this embodiment, by configuring the access information and the access information of the service node, the service node can accurately process the task.
In some optional implementation manners of this embodiment, the processing, by the service node configured and completed based on the entry parameter information and the exit parameter information, a task corresponding to the target task flow includes:
acquiring the running state of the current target task flow, and analyzing the running state to obtain a target execution task list;
and transmitting the target execution task list into a service queue, and calling the service node to process a task corresponding to the target task flow based on the task sequence of the service queue.
In this embodiment, when a task corresponding to a target task flow is processed according to a service node, an operation state of the current target task flow is obtained, and whether the target task flow is executed is determined according to the operation state. Specifically, the running state is analyzed to obtain a target execution task list, a plurality of target task flows to be executed are stored in the target execution task list, and whether the target execution task list comprises the current target task flow is determined; if the target execution task list comprises the target task flow, determining that the current target task flow is not executed, transmitting the current target task flow into a service queue, and calling a service node corresponding to the current target task flow to process a task corresponding to the service request based on the task sequence of the service queue. If the target task execution list does not include the target task flow, determining that the current target task flow is possibly executed and finishing, and searching an execution record of the target task flow; if the execution record exists, determining that the target task flow is executed and completed; if the execution record does not exist, determining that the target task flow is not executed, and storing the target task flow into a target execution task list.
In the embodiment, the service node is called by the service queue to process the tasks, so that the tasks are processed in order, and the task processing efficiency is improved.
In some optional implementation manners of this embodiment, the performing data processing on the task result of each service node to obtain a plurality of processing results includes:
acquiring a target conversion table, and performing format conversion on the task result based on the target conversion table to obtain a task result after format conversion;
and acquiring a target storage path, and transferring the task result after format conversion to the target storage path to obtain the processing result.
In this embodiment, when performing data processing on a task result, a target conversion table is obtained, where the target conversion table stores conversion formats corresponding to different data types. And converting the task result according to the target conversion table to obtain a task result with a converted format. And then, acquiring a target storage path, and transferring the task result after format conversion to the target storage path to obtain a processing result after the task result data is processed.
In the embodiment, the data processing is performed on the task result of each service node to obtain a plurality of processing results, so that the processing results can be efficiently integrated when being integrated, and the efficiency of obtaining the final target result is improved.
In some optional implementation manners of this embodiment, the integrating a plurality of the processing results into a target result includes:
acquiring a key name of each processing result, and determining the processing result with the same key name as a first sub-processing result;
acquiring a latest processing result and a historical processing result in the first sub-processing result, and covering a key value of the historical processing result as a key value of the latest processing result;
determining the processing results with different key names as second sub-processing results, and performing tiled storage on the second sub-processing results according to the key names to obtain an integrated result;
and generating a target format file corresponding to the integration result to obtain the target result.
In this embodiment, when a processing result corresponding to each service node is obtained, a key name of each processing result is obtained, and a processing result with the same key name is determined as a first sub-processing result. And acquiring the latest processing result and the historical processing result in the first sub-processing result, and covering the key value of the historical processing result as the key value of the latest processing result, so that the key values of the processing results with the same key name are the latest key values. And then, determining the processing result with different key names as a second sub-processing result, and performing tiled storage on the second sub-processing result according to the key names to obtain an integrated result. Then, acquiring a preset generating function, and generating a target format file corresponding to the integration result according to the preset generating function, such as a json format file, to obtain a target result; and returning the target result to the front-end display interface.
According to the embodiment, the processing results are integrated, so that the final result of the service request task is rapidly acquired, and the data processing efficiency is further improved.
In some optional implementations of this embodiment, after the returning the target result to the front-end display interface, the method includes:
monitoring the service node in real time or at regular time, and checking a calling parameter of a service interface in the service node;
determining whether the service node has interface calling abnormity according to the calling parameter;
and when the interface calling abnormity exists, feeding back abnormal information corresponding to the interface calling abnormity to the front-end display interface.
In this embodiment, when the service node processes the target task flow, the service interface of the service node is monitored in real time or at regular time, and whether the service exception exists in the current service node can be determined in time through the real-time or regular monitoring. Specifically, a calling parameter of a service interface of a service node corresponding to the target task flow is checked, and the calling parameter is a parameter called by each service interface when a subtask in the target task flow is processed. Determining whether the current service node has interface calling abnormity according to the calling parameter, and if the calling parameter is not a conventional parameter in a task calling parameter table corresponding to the service interface, determining that the current service node has interface calling abnormity, such as overtime abnormity and null pointer abnormity; and if the calling parameter is a conventional parameter in the task calling parameter table corresponding to the service interface, determining that the interface calling exception does not exist in the current service node. And when the service node has interface calling abnormity, feeding back abnormal information corresponding to the interface calling abnormity to a front-end display interface, wherein the abnormal information comprises abnormal parameters and a service node abnormity processing result.
The embodiment monitors the service node in real time or at regular time, realizes timely detection of the service abnormity and accurate positioning of the abnormity, and further improves the processing efficiency and accuracy of the service abnormity.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, the processes of the embodiments of the methods described above can be included. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an intelligent service orchestration device, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be applied to various electronic devices.
As shown in fig. 3, the intelligent service orchestration device 300 according to this embodiment includes: an acquisition module 301, a configuration module 302, and a processing module 303. Wherein:
an obtaining module 301, configured to obtain a target task flow corresponding to a service request when the service request is received;
in this embodiment, the target task flow is a task flow that needs to be processed currently, and the target task flow is composed of one or more subtasks. And when the service request is received, analyzing the service request to obtain a target task flow corresponding to the service request.
A configuration module 302, configured to sequentially call service nodes according to the target task flow, configure service interfaces of the service nodes, respectively configure access information and access information of the service nodes when the configuration of the service interfaces is completed, and process a task corresponding to the target task flow based on the service nodes configured based on the access information and the access information, so as to obtain a task result, where the target task flow corresponds to a plurality of service nodes;
in some optional implementations of this embodiment, the configuring module 302 includes:
a first confirming unit, configured to obtain an upstream interface of the service interface according to the target task flow, and determine whether a field of the upstream interface is associated with the service interface;
a first configuration unit, configured to, when a field of the upstream interface is associated with the service interface, obtain an interface return value of the upstream interface, and configure a field value of the service interface according to the interface return value.
In some optional implementations of this embodiment, the configuring module 302 further includes:
the second configuration unit is used for acquiring the functional information of the target task flow and configuring the field type and the field code of the access information and the access information of the service node according to the functional information;
and a second confirmation unit, configured to determine that configuration of the entry information and the exit information of the service node is completed when the field type and the field coding configuration are completed.
In some optional implementations of this embodiment, the configuring module 302 further includes:
the analysis unit is used for acquiring the running state of the current target task flow and analyzing the running state to obtain a target execution task list;
and the calling unit is used for transmitting the target execution task list into a service queue and calling the service node to process the task corresponding to the target task flow based on the task sequence of the service queue.
In this embodiment, the target task process includes a plurality of subtasks, one subtask corresponds to one service node, and the target task process corresponds to a plurality of service nodes. And configuring the service node according to the target task process, wherein the configuration of the service node comprises the configuration of a service interface, the access information and the access information of the service node. Specifically, when a target task flow is obtained, sub-tasks in the target task flow are sequentially configured with corresponding service interfaces, and configuration is performed on entry information and exit information of a service node according to the target task flow. The service interface, the access information and the access information of each service node are configured, so that the corresponding subtasks can be processed by the service node. And then, when the configuration of the service node is completed, processing the task in the target task flow based on the service node to obtain a task result, wherein the task processed by the service node is a subtask in the service flow. In addition, when the service node is configured according to the target task flow, different target task flows can be obtained in advance, and the service node of the target task flow is configured on the canvas in advance according to the target task flow; when a service request of a task corresponding to one of the target task flows is received, the service interfaces of the service nodes corresponding to the target task flow are directly called in a serial connection mode, the subtasks needing to be processed are processed on the basis of the service nodes, and therefore the processing efficiency of the service nodes is further improved.
And the processing module 303 is configured to perform data processing on the task result of each service node to obtain a plurality of processing results, integrate the plurality of processing results into a target result when the target task process is completed, and return the target result to a front-end display interface.
In some optional implementations of this embodiment, the processing module 303 includes:
the conversion unit is used for acquiring a target conversion table, and performing format conversion on the task result based on the target conversion table to obtain a task result after format conversion;
and the storage unit is used for acquiring a target storage path, and transferring the task result after the format conversion to the target storage path to obtain the processing result.
In some optional implementations of this embodiment, the processing module 303 further includes:
the third confirming unit is used for acquiring the key name of each processing result and determining the processing result with the same key name as the first sub-processing result;
the covering unit is used for acquiring the latest processing result and the historical processing result in the first sub-processing result and covering the key value of the historical processing result as the key value of the latest processing result;
the storage unit is used for determining that the processing results with different key names are second sub-processing results, and performing flat storage on the second sub-processing results according to the key names to obtain an integrated result;
and the generating unit is used for generating a target format file corresponding to the integration result to obtain the target result.
In this embodiment, when a task result is obtained, data processing is performed on the task result to obtain a plurality of processing results. The data processing comprises operations of format conversion, data unloading and the like. And when a processing result corresponding to each service node is obtained, determining that the target task flow is completed, integrating all the processing results into one target result, and returning the target result to the front-end display interface.
It is emphasized that the target result can also be stored in a node of a blockchain in order to further ensure the privacy and security of the target result.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In some optional implementations of the present embodiment, the intelligent service orchestration device 300 further includes:
the monitoring module is used for monitoring the service node in real time or at regular time and checking the calling parameter of a service interface in the service node;
the confirming module is used for determining whether the service node has interface calling abnormity according to the calling parameters;
and the feedback module is used for feeding back abnormal information corresponding to the abnormal interface calling to the front-end display interface when the abnormal interface calling exists.
In this embodiment, when the service node processes the target task flow, the service interface of the service node is monitored in real time or at regular time, and whether the service exception exists in the current service node can be determined in time through the real-time or regular monitoring. Specifically, a calling parameter of a service interface of a service node corresponding to the target task flow is checked, and the calling parameter is a parameter called by each service interface when a subtask in the target task flow is processed. Determining whether the current service node has interface calling abnormity according to the calling parameter, and if the calling parameter is not a conventional parameter in a task calling parameter table corresponding to the service interface, determining that the current service node has interface calling abnormity, such as overtime abnormity and null pointer abnormity; and if the calling parameter is a conventional parameter in the task calling parameter table corresponding to the service interface, determining that the interface calling exception does not exist in the current service node. And when the service node has interface calling abnormity, feeding back abnormal information corresponding to the interface calling abnormity to a front-end display interface, wherein the abnormal information comprises abnormal parameters and a service node abnormity processing result.
The intelligent service arrangement device provided by the application realizes intelligent arrangement of the service nodes, improves arrangement accuracy and efficiency of the service nodes, and enables the nodes after intelligent arrangement to accurately and efficiently process services.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only a computer device 6 having components 61-63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed in the computer device 6 and various application software, such as computer readable instructions of an intelligent service orchestration method. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute computer readable instructions stored in the memory 61 or process data, for example, execute computer readable instructions of the intelligent service orchestration method.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The computer equipment provided by the application realizes intelligent arrangement of the service nodes, improves arrangement accuracy and efficiency of the service nodes, and enables the nodes after intelligent arrangement to accurately and efficiently process services.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the intelligent service orchestration method as described above.
The computer-readable storage medium realizes intelligent arrangement of the service nodes, improves arrangement accuracy and efficiency of the service nodes, and enables the nodes after intelligent arrangement to accurately and efficiently process services.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that modifications can be made to the embodiments described in the foregoing detailed description, or equivalents can be substituted for some of the features described therein. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields, and all the equivalent structures are within the protection scope of the present application.

Claims (10)

1. An intelligent service orchestration method, comprising the steps of:
when a service request is received, acquiring a target task flow corresponding to the service request;
sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow by the service nodes configured based on the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and performing data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task process is completed, and returning the target result to a front-end display interface.
2. The intelligent service orchestration method according to claim 1, wherein the configuring the traffic interface of the traffic node comprises:
acquiring an upstream interface of the service interface according to the target task flow, and determining whether a field of the upstream interface is associated with the service interface;
and when the field of the upstream interface is associated with the service interface, acquiring an interface return value of the upstream interface, and configuring the field value of the service interface according to the interface return value.
3. The intelligent service orchestration method according to claim 1, wherein the respectively configuring access information and access information of the service nodes comprises:
acquiring the function information of the target task flow, and configuring the field type and the field code of the access information and the access information of the service node according to the function information;
and when the field type and the field coding configuration are completed, determining that the configuration of the access information and the access information of the service node is completed.
4. The intelligent service orchestration method according to claim 1, wherein the processing of the task corresponding to the target task flow by the service node configured based on the entry information and the exit information comprises:
acquiring the running state of the current target task flow, and analyzing the running state to obtain a target execution task list;
and transmitting the target execution task list into a service queue, and calling the service node to process a task corresponding to the target task flow based on the task sequence of the service queue.
5. The intelligent service orchestration method according to claim 1, wherein the performing data processing on the task result of each service node to obtain a plurality of processing results comprises:
acquiring a target conversion table, and performing format conversion on the task result based on the target conversion table to obtain a task result after format conversion;
and acquiring a target storage path, and transferring the task result after format conversion to the target storage path to obtain the processing result.
6. The intelligent service orchestration method according to claim 1, wherein the integrating the plurality of processing results into a target result comprises:
acquiring a key name of each processing result, and determining the processing result with the same key name as a first sub-processing result;
acquiring a latest processing result and a historical processing result in the first sub-processing result, and covering a key value of the historical processing result as a key value of the latest processing result;
determining the processing results with different key names as second sub-processing results, and performing tiled storage on the second sub-processing results according to the key names to obtain an integrated result;
and generating a target format file corresponding to the integration result to obtain the target result.
7. The intelligent services orchestration method according to claim 1, comprising, after the returning the target results to a front-end display interface:
monitoring the service node in real time or in fixed time, and checking the calling parameters of a service interface in the service node;
determining whether the service node has interface calling abnormity according to the calling parameter;
and when the interface calling abnormity exists, feeding back abnormal information corresponding to the interface calling abnormity to the front-end display interface.
8. An intelligent service orchestration device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a target task flow corresponding to a service request when the service request is received;
the configuration module is used for sequentially calling service nodes according to the target task flow, configuring service interfaces of the service nodes, respectively configuring access information and access information of the service nodes when the service interface configuration is completed, and processing tasks corresponding to the target task flow on the basis of the service nodes configured by the access information and the access information to obtain task results, wherein the target task flow corresponds to a plurality of service nodes;
and the processing module is used for carrying out data processing on the task result of each service node to obtain a plurality of processing results, integrating the plurality of processing results into a target result when the target task flow is processed, and returning the target result to a front-end display interface.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the intelligent services orchestration method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer-readable instructions stored thereon which, when executed by a processor, implement the steps of the intelligent services orchestration method according to any one of claims 1-7.
CN202210202884.3A 2022-03-03 2022-03-03 Intelligent service arranging method and device, computer equipment and storage medium Pending CN114564294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210202884.3A CN114564294A (en) 2022-03-03 2022-03-03 Intelligent service arranging method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210202884.3A CN114564294A (en) 2022-03-03 2022-03-03 Intelligent service arranging method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114564294A true CN114564294A (en) 2022-05-31

Family

ID=81718240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210202884.3A Pending CN114564294A (en) 2022-03-03 2022-03-03 Intelligent service arranging method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114564294A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527254A (en) * 2020-12-04 2021-03-19 佰聆数据股份有限公司 Service arrangement-based business strategy design method, system and computer equipment
CN115150474A (en) * 2022-06-15 2022-10-04 阿里巴巴(中国)有限公司 Information processing method, device, equipment and storage medium
CN116528178A (en) * 2023-04-11 2023-08-01 广州易尊网络科技股份有限公司 Traffic packet service processing system, method, device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527254A (en) * 2020-12-04 2021-03-19 佰聆数据股份有限公司 Service arrangement-based business strategy design method, system and computer equipment
CN115150474A (en) * 2022-06-15 2022-10-04 阿里巴巴(中国)有限公司 Information processing method, device, equipment and storage medium
CN116528178A (en) * 2023-04-11 2023-08-01 广州易尊网络科技股份有限公司 Traffic packet service processing system, method, device and readable storage medium

Similar Documents

Publication Publication Date Title
CN114564294A (en) Intelligent service arranging method and device, computer equipment and storage medium
CN112052111B (en) Processing method, device and equipment for server abnormity early warning and storage medium
CN112631751A (en) Task scheduling method and device, computer equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN115936895A (en) Risk assessment method, device and equipment based on artificial intelligence and storage medium
CN111813418A (en) Distributed link tracking method, device, computer equipment and storage medium
CN112860662B (en) Automatic production data blood relationship establishment method, device, computer equipment and storage medium
CN112364187B (en) Automobile accessory database building method, device and equipment based on big data
CN117251228A (en) Function management method, device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN114615325A (en) Message pushing method and device, computer equipment and storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN114374737A (en) Message pushing method and device, computer equipment and storage medium
CN114545328B (en) Tracking method and system for optical cable inspection equipment, computer equipment and storage medium
CN115577867B (en) Method and system for creating spot check task, computer equipment and storage medium
CN111327513B (en) Message data pushing method and device, computer equipment and storage medium
CN115904657A (en) Document generation method and device, computer equipment and storage medium
CN115731057A (en) Information generation method and device, computer equipment and storage medium
CN115080045A (en) Link generation method and device, computer equipment and storage medium
CN117395309A (en) Data reporting method, device, computer equipment and storage medium
CN115756640A (en) Method for automatically generating job scheduling configuration and related equipment thereof
CN116894736A (en) Mail management method, device, computer equipment and storage medium
CN117829897A (en) Data prediction method, device, computer equipment and storage medium
CN115905224A (en) Working hour data processing method and device, computer equipment and storage medium

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