CN110750246B - Method and related device for generating multi-flow system - Google Patents

Method and related device for generating multi-flow system Download PDF

Info

Publication number
CN110750246B
CN110750246B CN201911008820.4A CN201911008820A CN110750246B CN 110750246 B CN110750246 B CN 110750246B CN 201911008820 A CN201911008820 A CN 201911008820A CN 110750246 B CN110750246 B CN 110750246B
Authority
CN
China
Prior art keywords
flow
node
key
module
flow system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911008820.4A
Other languages
Chinese (zh)
Other versions
CN110750246A (en
Inventor
黄立尧
陈光尧
陈实
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Quwan Network Technology Co Ltd
Original Assignee
Guangzhou Quwan Network 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 Guangzhou Quwan Network Technology Co Ltd filed Critical Guangzhou Quwan Network Technology Co Ltd
Priority to CN201911008820.4A priority Critical patent/CN110750246B/en
Publication of CN110750246A publication Critical patent/CN110750246A/en
Application granted granted Critical
Publication of CN110750246B publication Critical patent/CN110750246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The application provides a method and a related device for generating a multi-flow system. The method comprises the steps of determining the system type of a multi-flow system to be generated; configuring a flow key and a node key of the system type according to the system type; acquiring a system frame and a configuration file template of a multi-flow system; writing the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework; and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated. The method generates the configuration file corresponding to the system type by determining the type of the needed multi-flow system, and configures the system framework according to the configuration file to obtain the multi-flow system.

Description

Method and related device for generating multi-flow system
Technical Field
The present application relates to the field of system development technologies, and in particular, to a method and an apparatus for generating a multi-flow system.
Background
The multi-flow system is a system with a plurality of flows, each flow has a plurality of nodes, and each node can be an access object of a service request, so that the multi-flow system can be used for constructing a multi-service system for processing the service request of each service.
At present, a generating method of a multi-flow system exists, a developer determines the type of the multi-flow system to be established according to the application scene of the actual service, further determines the multi-flow system frame, the developer creates the multi-flow system frame through manually writing codes, and the developer completes configuration of the multi-flow system frame by combining with the application scene of the actual service.
However, for different application scenarios, the developer needs to manually write the code again to generate the corresponding multi-flow system, which is too complicated and has low development efficiency.
Disclosure of Invention
In view of this, the embodiment of the application provides a method for generating a multi-process system, so as to realize efficient development of the multi-process system. In addition, the application also provides a generating device of the multi-flow system so as to realize the application and the realization of the method in practice.
In order to achieve the above object, the embodiment of the present application provides the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for generating a multi-flow system, including:
determining the system type of a multi-flow system to be generated;
configuring a flow key and a node key of the system type according to the system type;
acquiring a system frame and a configuration file template of the multi-flow system;
writing the flow key and the node key into the configuration file template to obtain a configuration file of the multi-flow system framework;
and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated.
Optionally, the configuring the flow key and the node key of the system type according to the system type includes:
determining each flow and each node corresponding to the system type;
a unique flow key is configured for each flow and a unique node key is configured for each node.
Optionally, the configuring the multi-flow system framework according to the configuration file includes:
extracting a flow key and a node key in the configuration file;
and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
Optionally, the configuration file includes storage module configuration information, response module configuration information and deduplication module configuration information, then
Configuring the multi-flow system framework according to the configuration file, wherein the configuration file comprises the following steps:
according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing node keys and service data;
configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data;
according to the configuration information of the duplication eliminating module, configuring a duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing repeated business data only once in a preset time period.
Optionally, setting a state query interface in the multi-flow system framework; the state query interface is used for querying the processing state of the node to the service data.
In a second aspect, the present application provides a generating device of a multi-flow system, including:
the type determining module is used for determining the system type of the multi-flow system to be generated;
the key configuration module is used for configuring a flow key and a node key of the system type according to the system type;
the acquisition module is used for acquiring a system frame and a configuration file template of the multi-flow system;
the configuration file generation module is used for writing the flow secret key and the node secret key into the configuration file template to obtain a configuration file of the multi-flow system framework;
and the system generation module is used for configuring the multi-flow system framework according to the configuration file to obtain a multi-flow system to be generated.
Optionally, the system generation module is specifically configured to, when configuring the flow key and the node key of the system type according to the system type:
determining each flow and each node corresponding to the system type;
a unique flow key is configured for each flow and a unique node key is configured for each node.
Optionally, when configuring the multi-flow system framework according to the configuration file, the system generation module is specifically configured to:
extracting a flow key and a node key in the configuration file;
and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
Optionally, the configuration file includes storage module configuration information, response module configuration information and deduplication module configuration information, then
The system generation module is specifically configured to, when configuring the multi-flow system framework according to the configuration file:
according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing node keys and service data;
configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data;
according to the configuration information of the duplication eliminating module, configuring a duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing repeated business data only once in a preset time period.
Optionally, the generating device of the multi-flow system further includes:
the state query module is used for setting a state query interface in the multi-flow system framework; the state query interface is used for querying the processing state of the node to the service data.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; wherein:
the memory is used for storing computer instructions;
the processor is configured to execute the computer instructions stored in the memory, and specifically execute the method for generating the multi-flow system according to any one of claims 1 to 5.
In a fourth aspect, the present application provides a storage medium having stored thereon a program which, when executed by a processor, implements a method of generating a multi-flow system according to any one of claims 1 to 5.
As can be seen from the above technical solution, the present application provides a method for generating a multi-flow system, where the method determines a system type of the multi-flow system to be generated; configuring a flow key and a node key of the system type according to the system type; acquiring a system frame and a configuration file template of a multi-flow system; writing the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework; and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated. The method generates the configuration file corresponding to the system type by determining the type of the needed multi-flow system, and configures the system framework according to the configuration file to obtain the multi-flow system.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a flow chart of a method of generating a multi-flow system provided by the present application;
FIG. 2 shows a block diagram of a generating device of the multi-flow system provided by the application;
fig. 3 shows a block diagram of an electronic device provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the present disclosure, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The multi-flow system is a system for realizing various services, each flow has a plurality of nodes, and a manager configures corresponding functions for each node according to service requirements. A user can initiate a service request to the system through a client, the service request comprises a flow to be accessed and a target node, and the service request can be acquired by the target node only through forwarding of a plurality of nodes in the flow. And the processing operation of each node on the service is a function module configured in the node by the manager.
At present, there is a method for generating a multi-process system, which is realized by a programmer manually writing codes according to a required multi-process system, and the multi-process system is not a fixed set of system, and the generated multi-process system is different according to different service requirements. Therefore, the multi-flow system needs to be rewritten every time new business occurs, and the multi-flow system generated in this way is too cumbersome.
To this end, the application provides a method for generating a multi-flow system. Referring to fig. 1, the method includes steps S101-S105. Wherein:
s101: the system type of the multi-flow system to be generated is determined.
It should be noted that the difference between the multiple-process systems depends on the system type of the multiple-process systems, and the multiple-process systems of the same system type have the same number of processes, the same number of nodes, and other functional modules.
Therefore, before the multi-process system is developed, it is necessary to determine what system type the multi-process system to be developed belongs to, i.e. determine the number of required multi-process system processes and the number of nodes.
S102: and configuring a flow key and a node key of the system type according to the system type.
It should be noted that, in the multi-flow system, each flow and the process of receiving the service request by each node are implemented according to the corresponding key matching, for example: when a service request wants to access a node 2 of a flow 1, firstly writing keys of the flow 1, the node 1 and the node 2 into the service request, firstly identifying a flow key of the flow 1 in the service request by a multi-flow system, thereby determining a flow to be accessed, then exporting the service request into the flow, namely detecting whether the node key of the node 1 exists in the flow, if so, carrying out key matching, storing the service request by the node 1, forwarding the service request to the node 2, detecting whether the node key of the node 2 exists in the service request again, if so, carrying out key matching, and returning a response result to a client after the node 2 responds to the request.
Specifically, in the multi-process node, each node and each process should set a corresponding access key, and perform key matching with the service request, and after the matching is passed, the service data requested by the service request can be responded. For this purpose, the access key for matching needs to be designed first, and the design process can be any implementation manner, for example: the identification mark is obtained through calculation by a certain algorithm or is customized by a manager.
In addition, the number of flows and the number of nodes in the multi-flow system are determined by the system type of the system, for example: the number of the processes of a certain multi-process system is 2, the number of the nodes of the process 1 is 2, the number of the nodes of the process 2 is one, the system is a system type, and the corresponding number of the process keys and the node keys are designed according to the required system type.
S103: a system frame and a configuration file template of the multi-flow system are obtained.
It should be noted that, the system frame is a frame template pre-written by a manager, and the specific process is to extract modules with the same function from a plurality of mature multi-flow systems, and form the modules into the system frame; the configuration file template is manually written by a manager according to the configuration file obtained in the existing multi-flow system or according to the mature multi-flow system.
S104: and writing the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework.
Specifically, if the configuration file template is extracted from the existing multi-process system, the process key and the node key configured in step S102 are replaced by the process key and the node key in the configuration file template; if the configuration file template is newly established, the flow key and the node key configured in step S102 are filled into the configuration file template to obtain a configuration file corresponding to the multi-flow system framework.
S105: and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated.
It should be noted that, the multi-flow system framework is a combination of package codes with flows, nodes and other functional modules, where the package codes have no actual parameters and cannot run, and the configuration file is a code that configures parameters into each package code so that each functional module can execute.
Specifically, according to the parameters of each functional module in the configuration file, parameter importing is performed on the packaging codes of each functional module in the multi-flow system framework, so that the configuration of the multi-flow system is completed.
As can be seen from the above technical solution, the present application provides a method for generating a multi-flow system, where the method determines a system type of the multi-flow system to be generated; configuring a flow key and a node key of the system type according to the system type; acquiring a system frame and a configuration file template of a multi-flow system; writing the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework; and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated. The method generates the configuration file corresponding to the system type by determining the type of the needed multi-flow system, and configures the system framework according to the configuration file to obtain the multi-flow system.
In one example, step S102: according to the system type, the specific implementation mode of configuring the flow key and the node key of the system type comprises the following steps:
determining each flow and each node corresponding to the system type; a unique flow key is configured for each flow and a unique node key is configured for each node.
Specifically, the system type corresponds to a plurality of processes, at least one node exists in each process, each node is an access object of a service request, an access key is set in each process and each node for ensuring the safety of data interaction, and a corresponding access key is added in the service request, so that the access to each process and each node is realized through the access key.
It should be noted that each key may be unique, for example: the key of the node 1 in the process 1 may be set to "handle_u1", the key of the node 2 in the process 1 is set to "handle_u2", and the like, and the setting manner of the key may also be other manners.
In one example, step S105: according to the configuration file, the specific implementation mode for configuring the multi-flow system framework comprises the following steps:
extracting a flow key and a node key in the configuration file; and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
It should be noted that, the multi-flow system frame is provided with a flow code generating module and a node code generating module, when the multi-flow system frame identifies an access key, a relevant code corresponding to the access key is generated; for example: when a certain flow key is identified by the multi-flow system framework, a flow code generating module is triggered to generate a related code corresponding to the flow key, and when a node key is identified, a node code generating module is triggered to generate a related code corresponding to the node key.
Specifically, the access key of each flow and each node is extracted from the configuration file, a corresponding module code is generated according to the access key, and the access key is used as a verification identifier of the module code, for example: generating a flow code of the flow 1 according to the flow key of the flow 1, and taking the flow key as a verification identifier of the flow code; for the node 1 in a certain flow, generating a node code of the node 1 according to the node key of the node 1, and taking the node key as a verification identifier of the node code.
In one example, the configuration file includes the storage module configuration information, the response module configuration information, and the deduplication module configuration information, then step S105: according to the system type, the specific implementation mode of configuring the flow key and the node key of the system type comprises the steps of A1-A3:
a1: according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing the node key and the service data.
It should be noted that, the manager may also set related functional modules in the multi-flow system framework, for example: the memory module and the configuration information of the memory module may be added in the configuration file to instruct the multi-flow system framework to generate the memory module.
The storage module is used for storing the service data in the service request.
In particular, the generation process of the storage module may be implemented in various manners, for example: adding configuration information of the storage module in the configuration file, specifically adding parameters of the storage module in the configuration file; the multi-flow system framework extracts the parameters of the storage module from the configuration file, and imports the parameters into the packaging codes of the storage module to realize the construction of the storage module, and provides interfaces for calling the storage module for each node.
It should be noted that, the service request stored in the storage module is applied to the deduplication module to perform the deduplication operation.
A2: configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data.
It should be noted that, the manager may set relevant functional modules in the multi-flow system framework, for example: and the configuration information of the response module can be added in the configuration file to instruct the multi-flow system framework to generate the response module.
The response module is configured to respond to a service request, for example: if the node 2 in the flow 1 is to be accessed by a certain service request, when the service request is received by the node 1, the node 1 is judged not to be the target node to be accessed by the service request, the service request is forwarded to the next node connected with the node 1, namely the node 2, when the node receives the service request, the node 2 is judged to be the target node of the service request, and the node returns the service data of the service request to the client. The forwarding of the service request and the service data return are all operations when the response module responds to the service request.
Specifically, the generation process of the response module may be implemented in various manners, for example: adding response module configuration information in the configuration file, specifically adding parameters of the response module in the configuration file; the multi-flow system framework extracts the parameters from the configuration file, and imports the parameters into the packaging codes of the response module to realize the construction of the response module, and provides interfaces for calling the response module for each node.
A3: according to the configuration information of the duplication eliminating module, configuring the duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing repeated business data only once in a preset time period.
It should be noted that, the manager may set relevant functional modules in the multi-flow system framework, for example: the configuration information of the deduplication module may be added in the configuration file to instruct the multi-flow system framework to generate the deduplication module.
The de-duplication module is used for executing repeated business data only once in a preset time period; when a user initiates a service request through a client, the user may initiate a plurality of times due to network failure or delay and other reasons; if the problem of network failure or delay is solved in time, the multi-flow system receives a plurality of identical service requests; in order to avoid responding to the same service request for multiple times, a deduplication module is set at each node of the multi-flow system, the deduplication module has a timing function, and a manager sets a timing duration according to actual conditions, for example: if the timing duration is 60S, the deduplication module only obtains once for the same service request if two or more service requests stored by a certain node exist in the 60S time period, and sends the service request to the response module, and the response module executes corresponding response operation.
Specifically, the generation process of the deduplication module may be implemented in various ways, for example: adding configuration information of the deduplication module in a configuration file, specifically adding parameters of the deduplication module in the configuration file; the multi-flow system framework extracts the parameters from the configuration file, and imports the parameters into the packaging codes of the deduplication module to realize the construction of the deduplication module, and provides interfaces for calling the deduplication module for each node.
In one example, the method for generating a multi-flow system further includes:
setting a state query interface in a multi-flow system framework; the state query interface is used for querying the processing state of the node on the service data.
Specifically, in order to monitor the delivery status of a service request in a multi-flow system and the current processing condition of the service request, a query interface needs to be set in the multi-flow system to query which node in the multi-flow system the current service request is processed. When the transmission of the service request fails, the node at which the service request is interrupted can also be checked according to the query interface.
In order to facilitate understanding of the above embodiments, the present application provides a knock service applied to a multi-process system. The system types of the multi-flow system are node 1 and node 2 of the flow 1, and node 1 of the flow 2.
The processing objects of the knock business can be divided into two types, wherein the first is a follower and the second is a house pipe; the house pipe is a target node; the follower is a node other than the target node.
When the knock service wants to access the node 2 of the flow 1, the verification identifier of the node 1 and the verification identifier of the node 2, namely the flow key of the flow 1, the node key of the node 1 and the node key of the node 2, need to be added in the knock service. The specific implementation process is as follows: when a user sends the knocking business to the multi-process system through a client, the multi-process system firstly checks a process verification identifier in the knocking business, when the verification identifier of the process 1 is detected, the knocking business is introduced into a node 1 in the process 1 to carry out business processing, the node 1 and the node 2 are connected nodes, the node 1 is taken as a follower, the node 2 is taken as a house pipe, when the node 1 receives the business request, identifier verification (key matching) is carried out, after the verification is passed, the business request is stored (used for de-duplication), and the business request is forwarded to the node 2; when the node 2 receives the service request, it performs identification verification (key matching) on the service request, after the verification is passed, it saves the service request, and returns the service data corresponding to the service request to the client.
The embodiment of the application provides a generating device of a multi-flow system. Referring to fig. 2, the apparatus includes: a type determination module 201, a key configuration module 202, an acquisition module 203, a profile generation module 204, and a system generation module 205; wherein:
a type determining module 201, configured to determine a system type of the multi-flow system that needs to be generated.
The key configuration module 202 is configured to configure a flow key and a node key corresponding to a system type according to the system type.
The obtaining module 203 is configured to obtain a system frame and a configuration file template of the multi-flow system.
The configuration file generating module 204 is configured to write the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework.
The system generating module 205 is configured to configure the multi-flow system framework according to the configuration file, so as to obtain a multi-flow system to be generated.
As can be seen from the above technical solution, the present application provides a generating device for a multi-process system, where the generating device determines a system type of the multi-process system to be generated; configuring a flow key and a node key of the system type according to the system type; acquiring a system frame and a configuration file template of a multi-flow system; writing the flow key and the node key into a configuration file template to obtain a configuration file of the multi-flow system framework; and configuring the multi-flow system framework according to the configuration file to obtain the multi-flow system to be generated. The device generates the configuration file corresponding to the system type by determining the type of the needed multi-flow system, and configures the system framework according to the configuration file to obtain the multi-flow system.
In one example, the system generation module, when configuring the flow key and the node key of the system type according to the system type, is specifically configured to:
determining each flow and each node corresponding to the system type;
a unique flow key is configured for each flow and a unique node key is configured for each node.
In one example, the system generation module, when configuring the multi-flow system framework according to the configuration file, is specifically configured to:
extracting a flow key and a node key in the configuration file;
and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
In one example, the configuration file includes storage module configuration information, response module configuration information, and deduplication module configuration information, then
The system generation module is specifically configured to:
according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing the node key and the service data;
configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data;
according to the configuration information of the duplication eliminating module, configuring the duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing repeated business data only once in a preset time period.
In one example, the generating device of the multi-flow system further includes:
the state query module is used for setting a state query interface in the multi-flow system framework;
the state query interface is used for querying the processing state of the node on the service data.
The embodiment of the application provides electronic equipment. Referring to fig. 3, the electronic device includes a processor 301 and a memory 302; wherein:
a memory 301 for storing computer instructions;
the processor 302 is configured to execute the computer instructions stored in the memory, and implement the method for generating any of the development frameworks when specifically executed.
The present application provides a storage medium storing a program which, when executed by a processor, implements a method of generating any one of the development frameworks described above.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for generating a multi-flow system, comprising:
determining the system type of a multi-flow system to be generated;
according to the system type, configuring a flow key and a node key corresponding to the system type;
acquiring a system frame and a configuration file template of the multi-flow system;
writing the flow key and the node key into the configuration file template to obtain a configuration file of the multi-flow system framework; the configuration file comprises storage module configuration information, response module configuration information and deduplication module configuration information;
configuring the multi-flow system framework according to the configuration file to obtain a multi-flow system to be generated;
wherein, the configuring the multi-flow system framework according to the configuration file includes:
according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing node keys and service data;
configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data;
according to the configuration information of the duplication eliminating module, configuring a duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing the repeated service data in a preset time period only once.
2. The method for generating a multiple-flow system according to claim 1, wherein configuring the flow key and the node key of the system type according to the system type comprises:
determining each flow and each node corresponding to the system type;
a unique flow key is configured for each of the flows and a unique node key is configured for each of the nodes.
3. The method for generating a multi-flow system according to claim 1, wherein configuring the multi-flow system framework according to the configuration file comprises:
extracting a flow key and a node key in the configuration file;
and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
4. The method for generating a multi-process system according to claim 1, wherein a status query interface is provided in the multi-process system framework; the state query interface is used for querying the processing state of the node to the service data.
5. A generating device of a multi-process system, comprising:
the type determining module is used for determining the system type of the multi-flow system to be generated;
the key configuration module is used for configuring a flow key and a node key corresponding to the system type according to the system type;
the acquisition module is used for acquiring a system frame and a configuration file template of the multi-flow system;
the configuration file generation module is used for writing the flow secret key and the node secret key into the configuration file template to obtain a configuration file of the multi-flow system framework; the configuration file comprises storage module configuration information, response module configuration information and deduplication module configuration information;
the system generation module is used for configuring the multi-flow system framework according to the configuration file to obtain a multi-flow system to be generated;
the system generation module is specifically configured to, when configuring the multi-flow system framework according to the configuration file:
according to the storage module configuration information, configuring a storage module for each node of the multi-flow system framework; the storage module is used for storing node keys and service data;
configuring a response module for each node of the multi-flow system framework according to the response module configuration information; the response module is used for responding to the service data;
according to the configuration information of the duplication eliminating module, configuring a duplication eliminating module for each node of the multi-flow system frame; the deduplication module is used for executing repeated business data only once in a preset time period.
6. The apparatus for generating a multiple flow system according to claim 5, wherein the system generating module is configured, when configuring the flow key and the node key of the system type according to the system type, to:
determining each flow and each node corresponding to the system type;
a unique flow key is configured for each of the flows and a unique node key is configured for each of the nodes.
7. The generating device of the multi-flow system according to claim 5, wherein the system generating module is specifically configured to:
extracting a flow key and a node key in the configuration file;
and triggering the multi-flow system framework to generate a flow code corresponding to the flow key and a node code corresponding to the node key according to the flow key and the node key, taking the flow key as a verification identifier of the flow code, and taking the node key as an identification identifier of the node code.
8. The multi-flow system generating apparatus according to claim 5, further comprising:
the state query module is used for setting a state query interface in the multi-flow system framework; the state query interface is used for querying the processing state of the node to the service data.
9. An electronic device comprising a processor and a memory; wherein:
the memory is used for storing computer instructions;
the processor is configured to execute the computer instructions stored in the memory, and specifically execute the method for generating the multi-flow system according to any one of claims 1 to 4.
10. A storage medium having a program stored thereon, wherein the program, when executed by a processor, implements the method of generating a multi-flow system according to any one of claims 1 to 4.
CN201911008820.4A 2019-10-21 2019-10-21 Method and related device for generating multi-flow system Active CN110750246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911008820.4A CN110750246B (en) 2019-10-21 2019-10-21 Method and related device for generating multi-flow system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911008820.4A CN110750246B (en) 2019-10-21 2019-10-21 Method and related device for generating multi-flow system

Publications (2)

Publication Number Publication Date
CN110750246A CN110750246A (en) 2020-02-04
CN110750246B true CN110750246B (en) 2023-08-29

Family

ID=69279363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911008820.4A Active CN110750246B (en) 2019-10-21 2019-10-21 Method and related device for generating multi-flow system

Country Status (1)

Country Link
CN (1) CN110750246B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6918038B1 (en) * 1996-08-13 2005-07-12 Angel Secure Networks, Inc. System and method for installing an auditable secure network
CN103827908A (en) * 2011-07-12 2014-05-28 益百利信息解决方案公司 Systems and methods for a large-scale credit data processing architecture
US9098680B2 (en) * 2011-12-22 2015-08-04 Abbvie Inc. Application security framework
CN106873949A (en) * 2015-12-11 2017-06-20 泰康保险集团股份有限公司 Code generating method and its device
CN110286939A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Development approach, device, equipment and the storage medium of Software Development Kit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6918038B1 (en) * 1996-08-13 2005-07-12 Angel Secure Networks, Inc. System and method for installing an auditable secure network
CN103827908A (en) * 2011-07-12 2014-05-28 益百利信息解决方案公司 Systems and methods for a large-scale credit data processing architecture
US9098680B2 (en) * 2011-12-22 2015-08-04 Abbvie Inc. Application security framework
CN106873949A (en) * 2015-12-11 2017-06-20 泰康保险集团股份有限公司 Code generating method and its device
CN110286939A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Development approach, device, equipment and the storage medium of Software Development Kit

Also Published As

Publication number Publication date
CN110750246A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN109104467B (en) Development environment construction method and device, platform system and storage medium
CN106326219B (en) Method, device and system for checking business system data
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
EP2769304B1 (en) Telemetry file hash and conflict detection
US20200327045A1 (en) Test System and Test Method
CN108234164A (en) Clustered deploy(ment) method and device
CN110442502B (en) Point burying method, device, equipment and storage medium
CN108804399B (en) Form verification method and device
CN110048879A (en) Micro services register method, device, electronic equipment and computer readable storage medium
CN105553920A (en) Data interaction method, apparatus, and system
CN111061685A (en) Log query method and device, node equipment and storage medium
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
EP4050850A1 (en) Service upgrading method, device and system
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN111464351B (en) Network distribution method and device for intelligent household equipment, terminal equipment and storage medium
CN111200651A (en) Method, system, device and medium for timed calling of microservice
CN110213073B (en) Data flow direction changing method, electronic device, computing node and storage medium
CN110750246B (en) Method and related device for generating multi-flow system
CN108881320B (en) Authentication processing method for user login, server and client
CN112506705B (en) Distributed storage configuration information backup method and device
CN114296880A (en) Service request processing method, device, equipment and medium based on large-scale cluster
CN110532457B (en) Method and system for acquiring network segment ID
CN113660359A (en) Management method and device for domain name resolution record, storage medium and electronic equipment
CN113609217A (en) Data processing method and device
CN108052380B (en) Business function docking 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
GR01 Patent grant
GR01 Patent grant