CN115617331A - Service arranging method, service arranging device, storage medium and electronic equipment - Google Patents

Service arranging method, service arranging device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115617331A
CN115617331A CN202211224386.5A CN202211224386A CN115617331A CN 115617331 A CN115617331 A CN 115617331A CN 202211224386 A CN202211224386 A CN 202211224386A CN 115617331 A CN115617331 A CN 115617331A
Authority
CN
China
Prior art keywords
service
target
arrangement
arrangement scheme
business
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
CN202211224386.5A
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.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music Technology 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 Hangzhou Netease Cloud Music Technology Co Ltd filed Critical Hangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202211224386.5A priority Critical patent/CN115617331A/en
Publication of CN115617331A publication Critical patent/CN115617331A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure provides a business arrangement method, a business arrangement device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the steps of firstly determining a plurality of target service capabilities required by a service application to be arranged, selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library, arranging and constructing the plurality of target service nodes according to arrangement logic indicated by the service application to be arranged, obtaining an initial service arrangement scheme corresponding to the service to be arranged, and verifying the initial service arrangement scheme by utilizing a preset service logic verification mode and a preset node recursive verification mode to obtain a target service arrangement scheme corresponding to the service application to be arranged. Therefore, the problem that the business capability can not be reused in the existing business arrangement process can be solved, the manpower development cost and the later maintenance cost are reduced, the definition of the business arrangement process is improved, the learning cost of the business arrangement is reduced, and the usability of the business arrangement is improved.

Description

Service arranging method, service arranging device, storage medium and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and more particularly, to a business arrangement method, a business arrangement device, a storage medium and an electronic device.
Background
With the development of strategic modes of large-medium stations and small-medium stations, the medium stations need to provide combined innovation capability to deposit general service capability and enable foreground business. The scenes of the service application are more and more varied, for example, live broadcast scenes include service requirements which are not provided by gift sending requirements, lottery play requirements, red envelope requirements and the like, and the service requirements are characterized by high iteration speed, complex service logic, personalized service flow and the like.
In order to meet such service requirements, the following three methods are mainly adopted in the prior art: one way is to adopt business logic customization processing, and when the business requirement is accessed again, secondary development is needed, however, the business logic customization processing often causes that the business capability can not be reused, and the manpower development cost and the later maintenance cost are increased. The other mode is to abstract a universal service logic, expand based on a strategy mode, when the service requirement is accessed again, the universal service logic does not need to be developed, but the personalized logic needs to be developed for the second time, so that the service requirement is complex, and the problem that the service processing logic is unclear is often caused.
This section is intended to provide a background or context to the embodiments of the disclosure recited in the claims and the description herein is not admitted to be prior art by inclusion in this section.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a service orchestration method, apparatus, storage medium, and electronic device.
According to a first aspect of the present disclosure, there is provided a business orchestration method, including:
determining a plurality of target business capabilities required by business applications to be scheduled;
selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library;
arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged;
and verifying the initial service arrangement scheme by utilizing a preset service logic verification mode and a preset node recursion verification mode to obtain a target service arrangement scheme corresponding to the service application to be arranged.
Optionally, the selecting, from a preset configuration library, a plurality of target service nodes matching the plurality of target service capabilities includes:
determining the execution service characteristics corresponding to the target service capabilities;
and determining target service nodes respectively corresponding to the plurality of target service capabilities from the preset configuration library according to the execution service characteristics corresponding to each target service capability.
Optionally, the arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged, includes:
determining a target arrangement mode corresponding to the service application to be arranged;
and arranging the plurality of target service nodes according to the target arrangement mode, and constructing and obtaining an initial service arrangement scheme corresponding to the service to be arranged.
Optionally, the verifying the initial service arrangement scheme by using a preset service logic verification manner and a preset node recursive verification manner to obtain a target service arrangement scheme corresponding to the service application to be arranged includes:
verifying the service logic contained in the initial service arrangement scheme by using the preset service logic verification mode;
verifying the node information contained in the initial service arrangement scheme in a preset node recursive verification mode;
and taking the initial service arrangement scheme as the target service arrangement scheme, wherein the check result of the service logic and the check result of the node information both accord with preset check conditions.
Optionally, the method further includes:
subscribing the updating information of the target service arrangement scheme in the preset configuration library;
and carrying out recursive analysis on the updated information of the target business arrangement scheme, and taking the analyzed business arrangement scheme as the updated target business arrangement scheme.
Optionally, after the obtaining of the target service orchestration scheme corresponding to the service application to be orchestrated, the method further includes:
and displaying the target service arrangement scheme according to a preset display style.
According to a second aspect of the present disclosure, there is provided a business orchestration apparatus, the apparatus comprising:
the system comprises a determining module, a scheduling module and a scheduling module, wherein the determining module is used for determining a plurality of target business capabilities required by business applications to be scheduled;
the selecting module is used for selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library;
the construction module is used for arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged;
and the checking module is used for checking the initial service arrangement scheme by utilizing a preset service logic checking mode and a preset node recursion checking mode to obtain a target service arrangement scheme corresponding to the service application to be arranged.
Optionally, the selecting module is further configured to:
determining the execution service characteristics corresponding to the target service capabilities;
and determining target service nodes respectively corresponding to the plurality of target service capabilities from the preset configuration library according to the execution service characteristics corresponding to each target service capability.
Optionally, the building module is further configured to:
determining a target arrangement mode corresponding to the service application to be arranged;
and arranging the plurality of target service nodes according to the target arrangement mode, and constructing and obtaining an initial service arrangement scheme corresponding to the service to be arranged.
Optionally, the verification module is further configured to:
verifying the service logic contained in the initial service arrangement scheme by using the preset service logic verification mode;
verifying the node information contained in the initial service arrangement scheme in a preset node recursive verification mode;
and taking the initial service arranging scheme of which the verification result of the service logic and the verification result of the node information both accord with preset verification conditions as the target service arranging scheme.
Optionally, the apparatus further comprises:
the subscription module is used for subscribing the update information of the target business arrangement scheme in the preset configuration library;
and the analysis module is used for carrying out recursive analysis on the updated information of the target business arrangement scheme and taking the analyzed business arrangement scheme as the updated target business arrangement scheme.
Optionally, after obtaining the target business arrangement scheme corresponding to the business application to be arranged, the apparatus further includes:
and the display module is used for displaying the target business arrangement scheme according to a preset display style.
According to an aspect of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the above-described business orchestration method.
According to an aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform any of the above-described business orchestration methods via execution of the executable instructions.
To sum up, the service orchestration method provided by the embodiment of the present disclosure may determine a plurality of target service capabilities required by a service application to be orchestrated, select a plurality of target service nodes matching the plurality of target service capabilities from a preset configuration library, orchestrate and construct the plurality of target service nodes according to an orchestration logic indicated by the service application to be orchestrated, obtain an initial service orchestration scheme corresponding to the service to be orchestrated, and verify the initial service orchestration scheme by using a preset service logic verification manner and a preset node recursive verification manner, to obtain a target service orchestration scheme corresponding to the service application to be orchestrated. Therefore, the corresponding service node is determined based on the service capability required by the service application to be arranged, the service arrangement scheme is constructed, the problem that the service capability cannot be reused in the conventional service arrangement process can be solved, the manpower development cost and the later maintenance cost are reduced, the definition of the service arrangement process is improved, the learning cost of the service arrangement is reduced, and the usability of the service arrangement is improved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 is a flow chart schematically illustrating steps of a service orchestration method according to an embodiment of the present disclosure;
fig. 2 schematically illustrates a flowchart of selecting a target service node according to an embodiment of the present disclosure;
FIG. 3 is a flow chart schematically illustrating a method for obtaining an initial business orchestration scheme according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram schematically illustrating an initial business orchestration scheme provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram that schematically illustrates yet another initial orchestration scenario provided by implementations of the present disclosure;
FIG. 6 is a flow diagram that schematically illustrates a method for obtaining a targeted business orchestration scheme, in accordance with an embodiment of the present disclosure;
FIG. 7 is a flow diagram schematically illustrating an update target business orchestration scheme provided by an embodiment of the present disclosure;
FIG. 8 is a block diagram that schematically illustrates a orchestration mechanism, according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates a schematic diagram of a storage medium provided in the practice of the present disclosure; and
fig. 10 schematically illustrates a block diagram of an electronic device provided in an implementation of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present disclosure will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present disclosure, and are not intended to limit the scope of the present disclosure in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software, the data involved in the present disclosure may be data that is authorized by the user or sufficiently authorized by various parties.
In this document, any number of elements in the drawings is by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present disclosure are explained in detail below with reference to several representative embodiments thereof.
Fig. 1 schematically illustrates a flowchart of steps of a service orchestration method provided by an embodiment of the present disclosure, and as shown in fig. 1, the method may include:
step S101, determining a plurality of target business capabilities required by business applications to be scheduled.
In the embodiment of the present disclosure, the target service capability required by the service application to be deployed may be decomposed according to the service content related to the service application to be deployed. The service application to be scheduled may be a service application requiring service scheduling, and the service application may be a server application supporting service requirements, and the service application to be scheduled may be applied to different application environments, for example, a test environment, a regression environment, a pre-release environment, an online environment, and the like, and the service application to be scheduled may be an application requiring online music, live broadcast, and the like. The target business capability may be a business content required for representing a business application to be arranged in an operation process, for example, when the business application to be arranged is a direct-broadcast gift, the plurality of target business capabilities required for the business application to be arranged may include user gift sending information verification, order information processing, gift sending limit verification, asset balance verification, purchase limit verification, risk verification, currency balance verification, backpack balance verification, and the like. It should be noted that the service capability may be determined according to a service scenario or may be determined according to a service logic, and the service capability may be predefined, and then, the reuse of the service capability may be realized only by adjusting according to specific service application contents.
And S102, selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library.
In this embodiment of the present disclosure, the preset configuration library may be a preset database in which a corresponding relationship between the service capability and the service node is stored. The plurality of target service nodes matched with the plurality of target service capabilities are selected from the preset configuration library, and the plurality of target service nodes matched with the plurality of target service capabilities may be selected according to the correspondence between the service capabilities and the service nodes stored in the preset configuration library. For example, the service nodes defined based on service capabilities may include component nodes, conditional nodes, capability points, and extension points, where the component nodes may execute fine-grained service logic and the conditional nodes may perform service decisions and routing.
Step S103, arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged, and obtaining an initial service arrangement scheme corresponding to the service to be arranged.
In the embodiment of the present disclosure, the orchestration logic may be an orchestration pattern for characterizing business capabilities, and the corresponding orchestration logic may be determined according to the complexity of business applications. The method includes the steps of arranging and constructing a plurality of target service nodes according to arrangement logic indicated by service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged, wherein the arrangement mode can be determined according to the arrangement logic indicated by the service application to be arranged, and then arranging and constructing the plurality of target service nodes based on the arrangement mode to obtain the initial service arrangement scheme corresponding to the service to be arranged.
And step S104, verifying the initial business arrangement scheme by utilizing a preset business logic verification mode and a preset node recursion verification mode to obtain a target business arrangement scheme corresponding to the business application to be arranged.
In this embodiment of the present disclosure, the preset service logic checking manner may be a preset manner for checking the service logic, for example, may be a Directed Acyclic Graph (DAG) checking manner, and may also be another logic checking manner. The preset node recursive check mode may be a Depth-First-Search (DFS) check mode, or a preset node recursive check mode that circulates according to a tree structure, where the preset node recursive check mode may be used to check an execution sequence of each node in the service orchestration scheme. The initial service arrangement scheme is verified in a preset service logic verification mode and a preset node recursion verification mode to obtain a target service arrangement scheme corresponding to the service application to be arranged, the loop verification is performed on the initial service arrangement scheme in the preset service logic verification mode, then the service execution circulation process of the initial service arrangement scheme is verified in the preset node recursion verification mode, the arrangement scheme meeting preset conditions is used as the target service arrangement scheme corresponding to the service application to be arranged, and the service application to be arranged arranges services according to the target service arrangement scheme.
To sum up, the service orchestration method provided by the embodiment of the present disclosure may determine a plurality of target service capabilities required by a service application to be orchestrated, select a plurality of target service nodes matching the plurality of target service capabilities from a preset configuration library, orchestrate and construct the plurality of target service nodes according to an orchestration logic indicated by the service application to be orchestrated, obtain an initial service orchestration scheme corresponding to the service to be orchestrated, and verify the initial service orchestration scheme by using a preset service logic verification manner and a preset node recursive verification manner, to obtain a target service orchestration scheme corresponding to the service application to be orchestrated. Therefore, the corresponding service node is determined based on the service capacity required by the service application to be arranged, the service arrangement scheme is constructed, the problem that the service capacity cannot be reused in the conventional service arrangement process can be solved, the manpower development cost and the later maintenance cost are reduced, the definition of the service arrangement process is improved, the learning cost of the service arrangement is reduced, and the usability of the service arrangement is improved.
Optionally, the operation of selecting multiple target service nodes matching the multiple target service capabilities from the preset configuration library in the embodiment of the present disclosure may specifically include, as shown in fig. 2:
and step S1021, determining the execution service characteristics corresponding to the target service capabilities.
In this embodiment of the present disclosure, the service performance characteristic may be determined according to an attribute of the service capability, for example, if the service capability is determined to be a new user, the service performance characteristic corresponding to the service capability may be determined to be a determination condition. Determining the execution service features corresponding to the multiple target service capabilities may be determining the execution service features corresponding to the multiple target service capabilities according to the attributes corresponding to the target service capabilities. It should be noted that, the preset configuration library may be pre-labeled with the execution service features corresponding to each service capability, and when the execution service features corresponding to a plurality of target service capabilities are determined, it is only necessary to query the execution service features labeled to each target service capability from the preset configuration library.
Step S1022, determining, from the preset configuration library, target service nodes corresponding to the plurality of target service capabilities respectively according to the execution service characteristics corresponding to each target service capability.
In the embodiment of the present disclosure, the target service node corresponding to each target service capability may be determined in the preset configuration library based on the execution service feature labeled corresponding to each target service capability, so as to obtain a plurality of target service nodes corresponding to a plurality of target service capabilities respectively.
Optionally, in the embodiment of the present disclosure, the arranging and constructing the multiple target service nodes according to the arranging logic indicated by the service application to be arranged to obtain an operation of an initial service arranging scheme corresponding to the service to be arranged, as shown in fig. 3, may specifically include:
and step S1031, determining a target arrangement mode corresponding to the business application to be arranged.
In the embodiment of the present disclosure, the target arrangement mode may be preset according to an actual situation, for example, the target arrangement mode may be a three-layer mode, and the three-layer mode may specifically include: the target arrangement mode can also be a five-layer mode, and the five-layer mode can specifically include: service domain, arrangement scheme, service node, capability point and extension point. The target arrangement mode corresponding to the service application to be arranged is determined, and may be determined according to the complexity of the service application to be arranged, for example, the target arrangement mode may be set as a three-layer mode for the service application to be arranged with simple service content, and the target arrangement mode may be set as a five-layer mode for the service application to be arranged with complex service content. And determining a target arrangement mode corresponding to the service application to be arranged, and taking the arrangement mode indicated by the operation selected by the user as the target arrangement mode corresponding to the service application to be arranged.
Step S1032, the target service nodes are arranged according to the target arrangement pattern, and an initial service arrangement scheme corresponding to the service to be arranged is constructed.
In the embodiment of the present disclosure, a plurality of target service nodes may be arranged based on the node arrangement order indicated by the target arrangement mode and the service processing logic, and a service processing flow composed of the plurality of target service nodes and obtained by construction may be used as an initial service arrangement scheme corresponding to a service to be arranged.
For example, fig. 4 schematically illustrates a schematic diagram of an initial business arrangement scheme provided by an embodiment of the present disclosure, as shown in fig. 4, an object arrangement mode of the initial business arrangement scheme is a three-layer mode, and includes a business domain 01, a business arrangement scheme 02, and a business node 03, where a node corresponding to the business domain 01 is a lottery domain 11, a node corresponding to the business arrangement scheme 02 is a blind box lottery scheme 12 and a rotating disk lottery scheme 13, and a node corresponding to the business node 03 is a base probability lottery 14, a new user 15, and a weight lottery 16. Specifically, the lottery field 11 of the initial business arrangement scheme includes a blind box lottery scheme 12 and a rotary table lottery scheme 13, where the blind box lottery scheme 12 includes a base probability lottery 14 and whether a new user 15 is available, and the rotary table lottery scheme 13 includes whether a new user 15 is available and a weight lottery 16.
For example, fig. 5 schematically illustrates a schematic diagram of another initial business arrangement scheme provided by an embodiment of the present disclosure, as shown in fig. 5, a target arrangement mode of the initial business arrangement scheme is a five-layer mode, and includes a business domain 21, a business arrangement scheme 22, a node 23, a capability point 24, and an extension point 25, where a node corresponding to the business domain 21 is a gift sending domain 30, a node corresponding to the business arrangement scheme 22 is a user gift sending scheme 31, a node corresponding to the node 23 is a user gift sending information check 32 and an order information process 33, a node corresponding to the capability point 24 is a gift sending limit check 34 and an asset balance check 35, and a node corresponding to the extension point 25 is a limited purchase check 36, a pneumatic control check 37, a currency balance check 38, and a knapsack balance check 39. Specifically, the user gift-offering scheme 31 corresponding to the gift-offering domain 30 of the initial business arrangement scheme includes user gift-offering information verification 32 and order information processing 33, the user gift-offering information verification 32 includes gift-offering limitation verification 34 and asset balance verification 35, the gift-offering limitation verification 34 includes limited-purchase verification 36 and wind control verification 37, and the asset balance verification 35 includes currency balance verification 38 and backpack balance verification 39. In the five-layer mode, a single capability point can integrate a plurality of different extension points to complete differentiated service logic.
In practical application, taking a target arrangement mode as a five-layer mode as an example, a service Development access arrangement engine Development Kit (SDK) defines service nodes, capability points and extension points according to the target arrangement mode and by combining service logic, and then in the service arrangement process, the arrangement engine SDK provides a set of standard annotations including condition node annotations, component node annotations, capability point annotations and extension point annotations. The specific content is as follows:
conditional node annotations may contain the node name, the node description desc, the number of children nodes childrenNum, the supported condition types (an enumerated type may contain greater than, less than, equal to, not equal to, greater than, equal to, less than, etc.), the current conditional node return value type value (an enumerated type may contain numbers, strings, boolean, etc.).
Further, in practical applications, when an accessed service application is started, after the defined service capability is identified by the scheduling engine SDK and loaded into the cache, the service capability may be reported to the preset configuration library in an http manner before the service is started, and a scheduling scheme of the preset configuration library is subscribed at the same time. The layout engine SDK has three trigger points which can load, analyze and layout schemes, and the first one is that when the service is started, all the layout schemes in a preset configuration library are pulled to be analyzed; the second is that if the subscription configuration is updated, the updated arrangement scheme is loaded and analyzed; and thirdly, when the scheduling arrangement scheme is executed, if the analyzed arrangement scheme cannot be found in the cache, the arrangement scheme of the preset configuration library is pulled to carry out loading analysis. The steps of analyzing the arrangement scheme are as follows: 1. acquiring an arrangement scheme key and arrangement scheme information from a cache; 2. adding a synchronous lock to the arrangement scheme key to prevent the same arrangement scheme from being analyzed simultaneously; 3. generating an incremental version number of the arranging scheme key, and then creating a local cache for storing node information, so that the same node is prevented from being analyzed for multiple times, and the recursion efficiency is improved; 4. recursive analytic arrangement scheme: 4.1. checking whether the current node exists, if so, finding a corresponding implementation class, and if not, discarding the exception; 4.2. checking whether a power point list is mounted under the current node or not, if so, going to step 4.3, and if not, going to step 4.7;4.3. and traversing the verification capability point list, verifying whether the capability point exists, and if so, finding the implementation class corresponding to the capability point. If the throwing abnormity does not exist; the extension point is mounted under the capacity point, whether the extension point exists is checked, and if the extension point does not exist, the throwing abnormity does not exist; 4.5. analyzing the extension point, finding out an implementation class corresponding to the extension point, and setting the implementation class into the current capability point; 4.6. setting the analyzed capability point into the current node; 4.7. checking whether a child node exists under the current node, if so, going to step 4.8, and if not, completing the analysis of the current node; 4.8. checking the type of the current node, if the current node is a component node or a condition node, inquiring local cache, checking whether the current node is analyzed, if the current node is analyzed, setting the current node, and if the current node is not analyzed, recursively analyzing the current node in the step 4;4.9. returning to the node which is analyzed currently; 5. and setting the parsed arrangement scheme into a cache.
Optionally, in the embodiment of the present disclosure, the verifying the initial service arrangement scheme by using a preset service logic verification manner and a preset node recursive verification manner to obtain an operation of a target service arrangement scheme corresponding to the service application to be arranged, as shown in fig. 6, may specifically include:
step S1041, verifying the service logic included in the initial service arrangement scheme by using the preset service logic verification manner.
In this embodiment of the present disclosure, the preset service logic checking manner may be a Directed Acyclic Graph (DAG) checking manner, and may be checking whether the service logic included in the initial service orchestration scheme includes a loop. After a service loop occurs in the service arrangement scheme, the service application is likely to get into the loop in the actual execution process, so that the execution of the service application enters a dead cycle, and therefore, the service logic included in the initial service arrangement scheme needs to be checked by using a preset service logic checking mode, thereby avoiding the condition that the service application cannot normally run due to the loop occurring in the service logic.
Step S1042, verifying the node information included in the initial service orchestration scheme by the preset node recursive verification.
In the embodiment of the present disclosure, the preset node recursive checking manner may be a tree model (FTree), and may be used to check whether the execution position of each node in the initial service orchestration scheme matches with the execution content of the node. If the execution position of the node in the service arrangement scheme is not matched with the execution content of the node, the execution content of the node cannot be normally operated when the service application is operated to the node, so that the execution position of each node in the initial service arrangement scheme can be ensured to be matched with the execution content of the node by verifying the node information contained in the initial service arrangement scheme in a preset node recursive verification mode, and the condition that the operation of the service application fails due to the fact that the execution position of the node is not matched with the execution content of the node is avoided.
In an example, when the node recursive check mode is preset as a tree model FTree, the specific contents are as follows: traversing each node in the initial service arrangement scheme, taking each node as a tree node, and determining whether the tree node is a root node, a type nodeType of the tree node, a tree node name nodeName, child nodes childrenNodes of the tree node and an ability point list abilityNodeList mounted under the tree node. The type of the tree node may be a component node or a condition node, child nodes of the tree node may include a subtree node childrenNode and condition information condition, the subtree node may also serve as a tree node, and the condition information may include a condition type, a type of a condition value, and a condition value. The capability points may contain the execution order, the capability point name, and the extension point to mount under the capability point. By checking each node according to a preset node recursive checking mode, the execution position of each node in the initial service arrangement scheme can be ensured to be matched with the execution content of the node, and thus, the condition that the service application fails to operate can be avoided.
Step S1043, taking an initial service orchestration scheme that both the verification result of the service loop and the verification result of the node information meet a preset verification condition as the target service orchestration scheme.
In the embodiment of the present disclosure, the preset check condition may be a condition for characterizing normal operation of the service application, that is, the preset check condition may be a condition that no loop is included in the service route and that the execution position of each node matches with the execution content of the node. When the verification result of the service loop is that the service route does not include the loop and the verification result of the node information is that the execution position of the node is matched with the execution content of the node, it is determined that both the verification result of the service loop and the verification result of the node information meet the preset verification condition, and the initial service arrangement scheme meeting the preset verification condition is determined as the target service arrangement scheme.
In practical application, the verification of the initial service orchestration scheme may be implemented by scheduling of an orchestration engine, specifically, the initial service orchestration scheme in the preset configuration library may be loaded into a cache by parsing, and the initial service orchestration scheme is directly obtained from the cache when the orchestration engine is scheduled, where the step of executing scheduling by the orchestration engine may be represented as follows: 1. initializing a service context; 2. generating a unique request Id;3. acquiring the maximum version number of the layout scheme key, if the maximum version number cannot be found, actively pulling the layout scheme of the configuration center, and then entering an analysis process; 4. if the analyzed arrangement scheme cannot be found, the abnormal return configuration center cannot be found, and the return to the upper layer is stopped; 5. acquiring an analyzed executable arrangement scheme, serially executing each node of the arrangement scheme, and firstly acquiring a first node of the arrangement scheme; 6. executing the current node; 6.1. acquiring a service context; 6.2. checking whether the condition node main node is a condition judgment or not, if so, setting corresponding condition attributes in advance, including child nodes, judgment condition types, types of condition values and condition value information; 6.2. setting the capability point list information of the current node; 6.3. node pre-processing, namely setting a reserved port at the time of starting to execute the service flow so as to expand other nodes later; 6.4. executing the service logic of the component node or the condition node; 6.4.1. acquiring a capability point list of a current node, executing a capability point, acquiring a mounted extension point in the process of executing the capability point, and then executing the extension point; 6.4.2. checking whether the node is a condition node, if so, going to step 6.4.3, and if not, going to step 6.5;6.4.3. acquiring condition attribute information set in advance from the context, and acquiring a condition execution strategy according to the condition type of the child node; 6.4.4. checking whether the condition value of the child node meets the return value of the condition node, if so, setting the current child node as the next execution node, and setting the current child node in the service context; 6.5. node post-processing, namely, setting a reserved port at the time of finishing executing the service flow so as to expand other nodes later; 6.6. checking whether the current node is a condition node, if not, walking to step 6.7, if so, checking whether the current node exists, if so, walking to step 6, and if not, returning to abnormal operation; 6.7. if the current node is a component node, inquiring whether a child node exists, if the child node does not exist, ending the process, and if the child node exists, going to step 6;7. and returning an execution result.
Optionally, as shown in fig. 7, the service orchestration method in the embodiment of the present disclosure may further include:
and S21, subscribing the updating information of the target service arrangement scheme in the preset configuration library.
In the embodiment of the present disclosure, the update information of the target service orchestration scheme in the preset configuration library may be periodically subscribed according to a preset interval time, and the updated service orchestration scheme is generated according to analysis of the update information of the target service orchestration scheme, and the latest version number of the service orchestration scheme is generated. Specifically, the update information of the target service orchestration scheme may be obtained by parsing an update value in a subscription preset configuration library, and the update information of the target service orchestration scheme may be an update of processing service content in a service node, or an update of a node operation sequence in the service orchestration scheme.
And S22, carrying out recursive analysis on the updated information of the target business arrangement scheme, and taking the analyzed business arrangement scheme as the updated target business arrangement scheme.
In the embodiment of the present disclosure, each node in the target service arrangement scheme may be analyzed by recursively analyzing the update information of the target service arrangement scheme, so as to obtain an analyzed service arrangement scheme, and the analyzed service arrangement scheme may be used as the updated target service arrangement scheme. Specifically, when the target service arrangement scheme in the preset configuration library has an updating operation, the updating information of the target service arrangement scheme in the preset configuration library can be acquired through periodic subscription, then, the target service arrangement scheme is loaded and analyzed based on the updating information, the latest version number of the target service arrangement scheme is generated, the information of component nodes, condition nodes, capability points and extension points in the arrangement scheme is recursively analyzed in a preset node recursive check mode, and finally, the analyzed service arrangement scheme is used as the updated target service arrangement scheme.
Optionally, in this embodiment of the present disclosure, after obtaining the target business arrangement scheme corresponding to the business application to be arranged, the method further includes:
and displaying the target service arrangement scheme according to a preset display style.
In the embodiment of the present disclosure, the preset display style may be a display style set according to an actual situation. The target service arrangement scheme may be displayed on a preset interface according to a preset display style. Specifically, each service node in the target service arrangement scheme may be movable, and after the target service arrangement scheme is displayed, the user may update the target service arrangement scheme by dragging and modifying each service node in the displayed target service arrangement scheme. It should be noted that, the embodiment of the present disclosure may improve a display interface for visually configuring the target business arrangement scheme, where the interface may display related information of each business node and the constructed target business arrangement scheme, so that the business processing flow may be displayed in a graphical manner, and is clearer and more intuitive.
It should be noted that, in the service orchestration method provided in the embodiment of the present disclosure, the execution main body may be a service orchestration device, or, a control module in the service orchestration device for executing the loading service orchestration method. In the embodiment of the present disclosure, a service orchestration device is taken as an example to execute a method for loading service orchestration, which illustrates the method for scheduling services provided in the embodiment of the present disclosure. Next, a business orchestration device according to an exemplary embodiment of the present disclosure is described with reference to fig. 6.
Fig. 8 schematically illustrates a block diagram of a business orchestration device according to an embodiment of the present disclosure, and as shown in fig. 8, the business orchestration device 50 may include:
a determining module 501, configured to determine multiple target service capabilities required by a service application to be deployed;
a selecting module 502, configured to select, from a preset configuration library, a plurality of target service nodes that match the plurality of target service capabilities;
a constructing module 503, configured to perform arrangement and construction on the plurality of target service nodes according to an arrangement logic indicated by the service application to be arranged, so as to obtain an initial service arrangement scheme corresponding to the service to be arranged;
a checking module 504, configured to check the initial service orchestration scheme by using a preset service logic checking manner and a preset node recursive checking manner, to obtain a target service orchestration scheme corresponding to the service application to be orchestrated.
To sum up, the service arrangement device provided in the embodiment of the present disclosure may determine a plurality of target service capabilities required by a service application to be arranged, select a plurality of target service nodes matching the plurality of target service capabilities from a preset configuration library, arrange and construct the plurality of target service nodes according to an arrangement logic indicated by the service application to be arranged, obtain an initial service arrangement scheme corresponding to the service to be arranged, check the initial service arrangement scheme by using a preset service logic check mode and a preset node recursive check mode, and obtain a target service arrangement scheme corresponding to the service application to be arranged. Therefore, the corresponding service node is determined based on the service capability required by the service application to be arranged, the service arrangement scheme is constructed, the problem that the service capability cannot be reused in the conventional service arrangement process can be solved, the manpower development cost and the later maintenance cost are reduced, the definition of the service arrangement process is improved, the learning cost of the service arrangement is reduced, and the usability of the service arrangement is improved.
Optionally, the selecting module 502 is further configured to:
determining the execution service characteristics corresponding to the target service capabilities;
and determining target service nodes respectively corresponding to the plurality of target service capabilities from the preset configuration library according to the execution service characteristics corresponding to each target service capability.
Optionally, the building module 503 is further configured to:
determining a target arrangement mode corresponding to the service application to be arranged;
and arranging the plurality of target service nodes according to the target arrangement mode, and constructing and obtaining an initial service arrangement scheme corresponding to the service to be arranged.
Optionally, the checking module 504 is further configured to:
checking the service logic contained in the initial service arrangement scheme by using the preset service logic checking mode;
verifying the node information contained in the initial service arrangement scheme in a preset node recursive verification mode;
and taking the initial service arranging scheme of which the verification result of the service logic and the verification result of the node information both accord with preset verification conditions as the target service arranging scheme.
Optionally, the apparatus 50 further includes:
the subscription module is used for subscribing the update information of the target business arrangement scheme in the preset configuration library;
and the analysis module is used for carrying out recursive analysis on the update information of the target business arrangement scheme and taking the analyzed business arrangement scheme as the updated target business arrangement scheme.
Optionally, after obtaining the target business arrangement scheme corresponding to the business application to be arranged, the apparatus 50 further includes:
and the display module is used for displaying the target business arrangement scheme according to a preset display style.
Having described the business orchestration method and apparatus of the exemplary embodiments of the present disclosure, a computer-readable storage medium of the exemplary embodiments of the present disclosure is described next with reference to fig. 9.
Referring to fig. 9, a computer readable storage medium 600 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer signal storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Having described the storage medium of the exemplary embodiment of the present disclosure, next, an electronic device of the exemplary embodiment of the present disclosure will be described with reference to fig. 10.
The electronic device 700 shown in fig. 10 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 10, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, a bus 730 connecting different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
Wherein the storage unit stores program code that is executable by the processing unit 710 to cause the processing unit 710 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification. For example, the processing unit 710 may execute step S101, determine a plurality of target business capabilities required by the business application to be scheduled; step S102, selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library; step S103, arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged, and obtaining an initial service arrangement scheme corresponding to the service to be arranged; and step S104, verifying the initial business arrangement scheme by utilizing a preset business logic verification mode and a preset node recursive verification mode to obtain a target business arrangement scheme corresponding to the business application to be arranged.
The memory unit 720 may include volatile memory units such as a random access memory unit (RAM) 7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory unit 720 may also include programs/utilities 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may include a data bus, an address bus, and a control bus.
The electronic device 700 may also communicate with one or more external devices 80 (e.g., keyboard, pointing device, bluetooth device, etc.) via an input/output (I/O) interface 750. The electronic device 700 further comprises a display unit 740 connected to the input/output (I/O) interface 750 for displaying. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 over the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several modules or sub-modules of the traffic orchestration device and the audio sharing device are mentioned, such partitioning is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
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 disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., 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 disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (10)

1. A method for orchestrating services, the method comprising:
determining a plurality of target business capabilities required by business applications to be scheduled;
selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library;
arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged;
and verifying the initial service arrangement scheme by utilizing a preset service logic verification mode and a preset node recursion verification mode to obtain a target service arrangement scheme corresponding to the service application to be arranged.
2. The method of claim 1, wherein the selecting the target service nodes matching the target service capabilities from a preset configuration library comprises:
determining the execution service characteristics corresponding to the target service capabilities;
and determining target service nodes respectively corresponding to the plurality of target service capabilities from the preset configuration library according to the execution service characteristics corresponding to each target service capability.
3. The method according to claim 1, wherein said arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged, comprises:
determining a target arrangement mode corresponding to the service application to be arranged;
and arranging the plurality of target service nodes according to the target arrangement mode, and constructing and obtaining an initial service arrangement scheme corresponding to the service to be arranged.
4. The method of claim 1, wherein the verifying the initial service arrangement scheme by using a preset service logic verification manner and a preset node recursive verification manner to obtain a target service arrangement scheme corresponding to the service application to be arranged comprises:
verifying the service logic contained in the initial service arrangement scheme by using the preset service logic verification mode;
verifying the node information contained in the initial service arrangement scheme in a preset node recursive verification mode;
and taking the initial service arrangement scheme as the target service arrangement scheme, wherein the check result of the service logic and the check result of the node information both accord with preset check conditions.
5. The method of claim 1, further comprising:
subscribing the updating information of the target service arrangement scheme in the preset configuration library;
and carrying out recursive analysis on the updated information of the target business arrangement scheme, and taking the analyzed business arrangement scheme as the updated target business arrangement scheme.
6. The method according to any one of claims 1 to 5, wherein after the obtaining of the target business arrangement scheme corresponding to the business application to be arranged, the method further comprises:
and displaying the target service arrangement scheme according to a preset display style.
7. A transaction orchestration device, the device comprising:
the system comprises a determining module, a scheduling module and a scheduling module, wherein the determining module is used for determining a plurality of target business capabilities required by business applications to be scheduled;
the selecting module is used for selecting a plurality of target service nodes matched with the plurality of target service capabilities from a preset configuration library;
the construction module is used for arranging and constructing the plurality of target service nodes according to the arrangement logic indicated by the service application to be arranged to obtain an initial service arrangement scheme corresponding to the service to be arranged;
and the checking module is used for checking the initial service arrangement scheme by utilizing a preset service logic checking mode and a preset node recursion checking mode to obtain a target service arrangement scheme corresponding to the service application to be arranged.
8. The apparatus of claim 7, wherein the selecting module is further configured to:
determining the execution service characteristics corresponding to the target service capabilities;
and determining target service nodes respectively corresponding to the plurality of target service capabilities from the preset configuration library according to the execution service characteristics corresponding to each target service capability.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the business orchestration method according to any one of claims 1-6.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the business orchestration method of any one of claims 1-6 via execution of the executable instructions.
CN202211224386.5A 2022-10-08 2022-10-08 Service arranging method, service arranging device, storage medium and electronic equipment Pending CN115617331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211224386.5A CN115617331A (en) 2022-10-08 2022-10-08 Service arranging method, service arranging device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211224386.5A CN115617331A (en) 2022-10-08 2022-10-08 Service arranging method, service arranging device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115617331A true CN115617331A (en) 2023-01-17

Family

ID=84860030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211224386.5A Pending CN115617331A (en) 2022-10-08 2022-10-08 Service arranging method, service arranging device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115617331A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107561A (en) * 2023-04-14 2023-05-12 湖南云畅网络科技有限公司 Low-code-based action node rapid construction method, system and storage medium
CN117132088A (en) * 2023-10-26 2023-11-28 四川省致链数字科技有限公司 Order scheduling method, system and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107561A (en) * 2023-04-14 2023-05-12 湖南云畅网络科技有限公司 Low-code-based action node rapid construction method, system and storage medium
CN116107561B (en) * 2023-04-14 2023-06-23 湖南云畅网络科技有限公司 Low-code-based action node rapid construction method, system and storage medium
CN117132088A (en) * 2023-10-26 2023-11-28 四川省致链数字科技有限公司 Order scheduling method, system and readable storage medium
CN117132088B (en) * 2023-10-26 2024-01-26 四川省致链数字科技有限公司 Order scheduling method, system and readable storage medium

Similar Documents

Publication Publication Date Title
CN115617331A (en) Service arranging method, service arranging device, storage medium and electronic equipment
CN109840429A (en) Intelligent contract deployment, call method and device
US9959201B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
CN104765621B (en) A kind of method and system of the deployment program in clustered node
US20070220509A1 (en) System and method for deploying software based on matching provisioning requirements and capabilities
US11487584B2 (en) Rule generation and tasking resources and attributes to objects system and method
US9201692B2 (en) System and method for generating a plan to complete a task in computing environment
WO2023061874A1 (en) Checking source code validity at time of code update
CN110704749B (en) Recommendation engine customization system, recommendation method, recommendation system and electronic equipment
US20160292581A1 (en) Minimized processing of streaming changes into a semantic reasoner
CN113641591A (en) Test case generation method and device and test method and device
US20120109708A1 (en) Evaluating pattern-based constraints on business process models
CN109614312A (en) Method for generating test case, device, electronic equipment and storage medium
CN112000343B (en) Method and system for deploying multi-version services in Kubernetes by using Devops
US10547565B2 (en) Automatic determination and just-in-time acquisition of data for semantic reasoning
US11388039B1 (en) Identifying problem graphs in an information technology infrastructure network
CN116127154A (en) Knowledge tag recommendation method and device, electronic equipment and storage medium
CN115840598A (en) Micro front-end architecture system, development method, device and medium based on application market
CN115291928A (en) Task automatic integration method and device of multiple technology stacks and electronic equipment
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
CN113283742A (en) Task allocation method and device
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
US20190220252A1 (en) System and method for defining and generating requirement data from input
CN108874625A (en) Information processing method and device, electronic equipment, 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