Business operation method, platform, electronic device and computer storage medium
By creating a shared storage space for business functions in the business flow chart in the FaaS platform, the problem of long-term communication between business functions is solved and the operation efficiency is improved.
Patent Information
- Application Number
- CN202011565743.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-12-25
AI Technical Summary
Communication between business functions in FaaS platforms usually relies on proprietary network protocols or RPCs, resulting in the execution of complex services taking time and inefficient.
Create a shared storage space for business functions in the same business flow chart, store and read the running results, avoiding additional communication time consumption.
It shortens the overall execution time of the business, improves the business operation efficiency, and reduces the delay in calling between functions.
Smart Images

Figure CN112596720B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a business operation method, platform, electronic device, computer storage medium and computer program product. Background Art
[0002] In order to reduce the duplication of logic development in server application development, improve code reusability, and thus improve overall development efficiency, "Serverless" platforms are increasingly widely used. These platforms are based on the Function as a Service (FaaS) architecture, allowing developers to focus on the development of business functions without worrying about the infrastructure and related operation and maintenance operations. However, in the implementation of these FaaS platforms, the communication between business functions is often based on proprietary network protocols or Remote Procedure Call (RPC) protocols to implement calls or communications, and complex businesses are generally composed of multiple business functions. In this way, calls or communications between business functions will bring additional time consumption, resulting in the overall execution of the business taking a long time and low business operation efficiency. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a service operation method, a platform, an electronic device, a computer storage medium and a computer program product.
[0004] The present disclosure provides a service operation method, including:
[0005] Obtain a business process diagram associated with the business to be run;
[0006] Parsing the business process graph to obtain the running order of at least two first business functions in the business process graph and the dependency relationship between the running results of the at least two first business functions;
[0007] Creating a first shared storage space, where the first shared storage space is used to store the running result of the first business function;
[0008] The at least two first business functions are run based on the running order and the dependency relationship between the running results, and the running results of the at least two first business functions are stored in the first shared storage space.
[0009] In some embodiments, the obtaining of a business process diagram associated with the business to be run includes:
[0010] A business process diagram associated with the business to be run and sent by the user is received through the interactive interface.
[0011] In some embodiments, before creating the first shared storage space, the method further includes:
[0012] Receive business operation instructions sent by users through the interactive interface;
[0013] The creating the first shared storage space includes: creating the first shared storage space based on the service running instruction.
[0014] In some embodiments, the first business function includes a first business function body, and a sub-function associated with the first business function body, wherein the sub-function includes at least one of a conditional sub-function, a pre-sub-function, a post-sub-function, a timeout sub-function, and a fault-tolerant sub-function.
[0015] In some embodiments, after parsing the business process diagram and before executing the at least two first business functions, the method further includes:
[0016] Acquire function running information of the at least two first business functions, where the function running information includes function codes of the at least two first business functions;
[0017] The running of the at least two first business functions based on the running order and the dependency relationship between the running results includes:
[0018] The at least two first business functions are executed based on the execution order, the dependencies between the execution results and the function code.
[0019] In some embodiments, before executing the at least two first business functions, the method further includes:
[0020] Acquire operation configuration information of the at least two first business functions, wherein the operation configuration information includes dependent data interface information and / or storage system configuration information required for the operation of the at least two first business functions:
[0021] Acquire the dependency data required for the operation of the at least two first business functions based on the dependency data interface information, and / or acquire the storage system data required for the operation of the at least two first business functions based on the storage system configuration information;
[0022] The dependency data and / or storage system data required for the execution of the at least two first business functions are injected into the function code.
[0023] In some embodiments, the function execution information also includes description information of the at least two first business functions.
[0024] In some embodiments, the function execution information further includes initialization processing information, and the method further includes:
[0025] Initialization processing is performed for running the first business function based on the initialization processing information.
[0026] In some embodiments, the method is executed in a running engine, and the function running information of at least two first business functions in the same business process graph is loaded into the same running engine;
[0027] The function running information of the at least two first business functions is obtained from a function library.
[0028] In some embodiments, it also includes:
[0029] receiving a task offloading request sent by a user through an interactive interface;
[0030] Uninstall the function running information of the at least two first business functions.
[0031] In some embodiments, it also includes:
[0032] Receiving a flowchart update request through an interactive interface to obtain an updated business flowchart associated with the business to be run;
[0033] Parsing the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram and the dependency relationship between the running results of the at least two second business functions;
[0034] Creating a second shared storage space, where the second shared storage space is used to store the running result of the second business function;
[0035] Running the at least two second business functions based on the running order and the dependency relationship between the running results, and storing the running results of the at least two second business functions in the second shared storage space;
[0036] Unload the original business process diagram associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the execution engine.
[0037] In some embodiments, it also includes:
[0038] Sending a function development toolkit to a user, so that the user develops the first business function based on the function development toolkit;
[0039] A first business function developed by a user is received and stored in a function library.
[0040] In some embodiments, it also includes:
[0041] The dependent data interface information and / or storage system configuration information required for developing the first business function is issued to the user, so that the user can edit the dependent data interface information and the storage system configuration information into the function code of the first business function.
[0042] In some embodiments, the dependent data interface information and / or storage system configuration information required for developing the function code of the first business function is delivered via the function development toolkit.
[0043] In some embodiments, it also includes:
[0044] A virtual operating environment for running at least two first business functions in the business process diagram is issued to the user, so that the user can test the first business functions developed based on the virtual operating environment.
[0045] In some embodiments, the virtual operating environment is integrated into the function development toolkit.
[0046] In some embodiments, the interactive interface includes at least one of an interface interactive interface, a SDK interface, or an API interface.
[0047] The embodiment of the present disclosure also provides a service operation platform, including:
[0048] A flow chart acquisition module is used to acquire a business flow chart associated with the business to be run;
[0049] A parsing module, used to parse the business process diagram to obtain the running order of at least two first business functions in the business process diagram and the dependency relationship between the running results of the at least two first business functions;
[0050] A storage space creation module, which creates a first shared storage space, where the first shared storage space is used to store the running result of the first business function;
[0051] The business operation module is used to operate the at least two first business functions based on the operation sequence and the dependency relationship between the operation results, and store the operation results of the at least two first business functions in the first shared storage space.
[0052] In some embodiments, it also includes:
[0053] The interactive interface is used to receive a business process diagram associated with the business to be run and sent by a user through the interactive interface.
[0054] In some embodiments, the interactive interface is also used for the interactive interface to receive a service operation instruction sent by a user;
[0055] The storage space creation module is used to create a first shared storage space based on the business operation instruction.
[0056] In some embodiments, the first business function includes a first business function body, and a sub-function associated with the first business function body, wherein the sub-function includes at least one of a conditional sub-function, a pre-sub-function, a post-sub-function, a timeout sub-function, and a fault-tolerant sub-function.
[0057] In some embodiments, it also includes:
[0058] An operation information acquisition module, used to acquire function operation information of the at least two first business functions, wherein the function operation information includes function codes of the at least two first business functions;
[0059] The business running module is specifically used to run the at least two first business functions based on the running order, the dependency relationship between the running results and the function code.
[0060] In some embodiments, it also includes:
[0061] A configuration information acquisition module is used to obtain operation configuration information of the at least two first business functions, wherein the operation configuration information includes dependency data interface information and / or storage system configuration information required for the operation of the at least two first business functions: obtaining dependency data required for the operation of the at least two first business functions based on the dependency data interface information, and / or obtaining storage system data required for the operation of the at least two first business functions based on the storage system configuration information; and injecting the dependency data and / or storage system data required for the operation of the at least two first business functions into the function code.
[0062] In some embodiments, the function execution information also includes description information of the at least two first business functions.
[0063] In some embodiments, the function execution information further includes initialization processing information, and the method further includes:
[0064] An initialization module is used to perform initialization processing for running the first business function based on the initialization processing information.
[0065] In some embodiments, a runtime engine and a function library are also included:
[0066] The flowchart acquisition module, parsing module, storage space creation module, operation information acquisition module and business operation module are all set in the operation engine, and the function operation information of at least two first business functions in the same business flowchart is loaded into the same operation engine; the function operation information of at least two first business functions is stored in the function library.
[0067] In some embodiments, the interactive interface is further used to receive a task offloading request sent by a user; and the execution engine further includes:
[0068] An uninstall module is used to uninstall the function running information of the at least two first business functions.
[0069] In some embodiments, the interactive interface is further used to receive a flowchart update request, and the flowchart acquisition module is used to acquire an updated business flowchart associated with the business to be run;
[0070] The parsing module is further used to parse the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram, and the dependency relationship between the running results of the at least two second business functions;
[0071] The storage space creation module is further used to create a second shared storage space, where the second shared storage space is used to store the operation result of the second business function;
[0072] The business running module is further used to run the at least two second business functions based on the running order and the dependency relationship between the running results, and store the running results of the at least two second business functions in the second shared storage space; the running engine also includes:
[0073] The unloading module is used to unload the original business process diagram associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the execution engine.
[0074] In some embodiments, it also includes:
[0075] A toolkit delivery module, used for delivering the function development toolkit to the user, so that the user can develop the first business function based on the function development toolkit;
[0076] The function receiving module is used to receive the first business function developed by the user and store it in the function library.
[0077] In some embodiments, it also includes:
[0078] The information sending module is used to send the dependent data interface information and / or storage system configuration information required for developing the first business function to the user, so that the user can edit the dependent data interface information and the storage system configuration information into the function code of the first business function.
[0079] In some embodiments, the information sending module is arranged in the toolkit sending module.
[0080] In some embodiments, it also includes:
[0081] The operating environment sending module is used to send a virtual operating environment for running at least two first business functions in the business process diagram to the user, so that the user can test the first business functions developed based on the virtual operating environment.
[0082] In some embodiments, the virtual operating environment is integrated into the function development toolkit.
[0083] In some embodiments, the interactive interface includes at least one of an interface interactive interface, a SDK interface, or an API interface.
[0084] This common embodiment also provides an electronic device, the electronic device comprising:
[0085] processor;
[0086] a memory for storing instructions executable by the processor;
[0087] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned business operation method.
[0088] This public embodiment also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the above-mentioned business operation method.
[0089] This public embodiment also provides a computer program product, which is used to execute the above-mentioned business operation method.
[0090] The disclosed embodiment provides a technical solution, wherein a first shared storage space is created, and the first shared storage space is used to store the running results of the first business function. This is done by creating a first shared storage space for at least two first business functions in the same business process diagram. The running results of the above business functions can be stored in the first shared storage space, so that calls or communications between the first business functions can be solved by storing and reading the running results in the above shared storage space, thereby eliminating the need for additional time consumption, shortening the overall execution time of the business, and improving business operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0092] Figure 1 A flowchart of a business operation method provided by an embodiment of the present disclosure;
[0093] Figure 2 A schematic diagram of a business process diagram provided by an embodiment of the present disclosure;
[0094] Figure 3 A flowchart of another business operation method provided by an embodiment of the present disclosure;
[0095] Figure 4 A flowchart of a service offloading process provided by an embodiment of the present disclosure;
[0096] Figure 5 A schematic diagram of a process flow of updating a business process diagram provided by an embodiment of the present disclosure;
[0097] Figure 6 A flowchart of a function development process provided by an embodiment of the present disclosure;
[0098] Figure 7 A flowchart of another function development process provided by an embodiment of the present disclosure;
[0099] Figure 8 A schematic diagram of the structure of a business operation platform provided in an embodiment of the present disclosure;
[0100] Fig. 9 A schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure;
[0101] Fig.10 A schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure;
[0102] Fig.11 A schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure;
[0103] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0104] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0105] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0106] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0107] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0108] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0109] In the implementation of the FaaS platform in the prior art, the communication between business functions is often based on a proprietary network protocol or a Remote Procedure Call (RPC) protocol to implement the call or communication. A complex business is generally composed of multiple business functions. In this way, the call or communication between business functions will bring additional time consumption, resulting in the defects of long execution time of the overall business and low business operation efficiency. The disclosed embodiment provides a technical solution, which is to create a shared storage space for at least two business functions in the same business process diagram. The shared storage space can store the operation results of the above business functions, so that the call or communication between business functions can be solved by storing and reading the operation results in the above shared storage space, thereby eliminating the need for additional time consumption, shortening the overall execution time of the business, and improving the business operation efficiency.
[0110] Figure 1A flowchart of a business operation method provided in an embodiment of the present disclosure, the business operation method may be implemented through a business operation platform, the business operation platform runs on an electronic device, the electronic device includes but is not limited to a cloud server, a local server or a local host device, etc.; and the above-mentioned business operation platform may include an operation engine, and runs at least two business functions in the business process diagram through the operation engine. Optionally, the above-mentioned business operation platform may also include an interactive interface, and receive a business process diagram or other instructions sent by a user through the interactive interface; optionally, the above-mentioned business operation platform may also include a function library for storing business functions, etc. The components of the business operation platform can be set according to actual needs, and are not limited in the embodiments of the present disclosure. Figure 1 As shown, illustratively, the method comprises the following steps:
[0111] Step 101: Obtain a business process diagram associated with the business to be run;
[0112] Specifically, the above-mentioned business process diagram mainly defines which business functions are required for business operation, the specific operation order of the business functions, which business function runs first, which business function runs later, which business function runs in parallel, etc.; and the dependency relationship between the operation results of the business functions, that is, if there are two business functions in a sequential execution order, the execution result of the business function that runs first is the input information of the business function that runs later, or it can be limited that the business function that runs later can only be officially run when the execution result of the business function that runs first meets the preset conditions;
[0113] In addition, the business process diagram associated with the business to be run is obtained in this step, wherein the business process diagram can be a business process diagram edited by the user according to actual business needs. Specifically, an interactive interface can be provided to the user, and the business process diagram associated with the business to be run sent by the user can be received through the interactive interface. Specifically, the above-mentioned interactive interface can include but is not limited to at least one of an interface interactive interface, an SDK interface or an API interface. The user can send the business process diagram through any one or several of the above-mentioned interfaces, and optionally, an online editing function can be provided to the user through any one of the above-mentioned interactive interfaces, that is, the user can edit the business process diagram online through the above-mentioned interactive interface.
[0114] Step 102: parsing the business process diagram to obtain the operation order of at least two first business functions in the business process diagram and the dependency relationship between the operation results of at least two first business functions;
[0115] After obtaining the above-mentioned business process diagram, the business process diagram can be parsed to obtain the content defined by the business process diagram, in preparation for the subsequent operation of at least two business functions in the business process diagram. In order to describe more clearly, in the embodiment of the present disclosure, the business function in the business process diagram is referred to as the first business function. As mentioned above, the business process diagram defines the operation order of at least two first business functions and the dependency relationship between the operation results of at least two first business functions, and the above-mentioned information can be parsed from the above-mentioned business process diagram.
[0116] Figure 2 A schematic diagram of a business process diagram provided by an embodiment of the present disclosure, such as Figure 2 As shown, the business process diagram includes four business functions, namely business function A, business function B, business function C and business function D, wherein the running order is to run business function A first, then run business function B and business function C in parallel, and finally run business function D, namely A>(B, C)>D; wherein, the running condition of business function D can be limited to the running result of at least one of business function B and business function C, or the running condition of business function B can be the running result of business function A, thereby limiting the dependency relationship between the above-mentioned running results.
[0117] Optionally, an entry and an exit may be further set, and external data required for business execution may be injected through the entry, and the result obtained after the business execution is completed may be output through the exit. The result may usually be the running result of the business function D.
[0118] Step 103: Create a first shared storage space, where the first shared storage space is used to store the running result of the first business function;
[0119] In order to solve the problem that during the operation of at least two first business functions, the execution results need to be called between each other, a first shared storage space is created for each business process diagram, that is, at least two first business functions in the business process diagram, so that the operation results generated during the operation of the first business function can be stored in the first shared storage space, so that they can be called conveniently and quickly, thereby shortening the overall execution time of the business and improving the business operation efficiency.
[0120] In some embodiments, before creating the first shared storage space in this step, a business operation instruction sent by the user may be received through an interactive interface, and then the first shared storage space may be created based on the business operation instruction. The interactive interface may include but is not limited to at least one of an interface interactive interface, an SDK interface, or an API interface, and the user may send a business flow chart and send a business operation instruction through any one or more of the above interfaces.
[0121] Step 104 , running the at least two first business functions based on the running order and the dependency relationship between the running results, and storing the running results of the at least two first business functions in the first shared storage space created in step 103 .
[0122] In this step, during the operation of the two first business functions included in the business process diagram, the operation results are stored in the first shared storage space, which can save the efficiency of calling between the first business functions. Figure 2 In the illustrated embodiment, the execution results of the business function A, business function B, business function C, and business function D may all be stored in the first shared storage space and named as operation result A, operation result B, operation result C, and operation result D, respectively. The specific business operation process may be as follows:
[0123] Step 1: Run the first business function A, and store the result of its operation in the first shared storage space, which is named operation result A;
[0124] Step 2: Run business function B and business function C. If the operation of business function B requires the operation result A, the operation result A will be read from the first shared storage space and then run. The operation process of business function C is the same. After the operation of business function B and business function C is completed, the corresponding operation results are stored in the first shared storage space and named as operation result B and operation result C.
[0125] Step 3: Run business function D. Assuming that its operation requires operation result B and operation result C, it will read operation result B and operation result C from the first shared storage space, and then run it, and store the operation result in the first shared storage space, named operation result D.
[0126] If it is detected that the running steps of the entire business process diagram have ended, the running result D, or one of the running result A, running result B, and running result C, can be output from the outlet as the business output result. In the embodiment of the present disclosure, the business output result output from the outlet can be fed back to the sender of the business process diagram, or to other third parties, so as to support the adaptation and matching of various business scenarios, and the application scenarios are more extensive.
[0127] In some embodiments, the running results of the above-mentioned business function B and business function C can also be set to be running results Y. In this case, the business function can be run based on any running result Y of business function B and business function C.
[0128] In some embodiments, the first business function may include, in addition to the first business function body, further include sub-functions associated with the first business function body, and the sub-functions are divided according to types, including but not limited to at least one of conditional sub-functions, prefix sub-functions, post-sub-functions, timeout sub-functions and fault-tolerant sub-functions.
[0129] Among them, the execution condition sub-function refers to the first business function body that will be executed only when the execution condition sub-function is successfully executed; the prefix sub-function refers to the sub-function that will be executed before the first business function body is executed; the post-sub-function refers to the sub-function that will be executed after the first business function body is successfully executed; the timeout sub-function refers to the sub-function that will be executed after the first business function body times out, and the timeout can be the timeout time set by the user or the system default timeout time; the fault-tolerant sub-function refers to the sub-function that will be executed when the first business function body fails to execute. When the timeout sub-function is set, the execution error usually does not include the execution timeout.
[0130] In the disclosed embodiment, the first business function body and its sub-functions will run as a whole function node. Of course, sub-functions will be configured for all first business functions. It is possible to configure no sub-functions or only configure one or several sub-functions.
[0131] Through the configuration of the above sub-functions, various conditions for the operation of the first business function, or methods for handling abnormal situations, can be set, thereby enriching its application scenarios and meeting various business needs of users.
[0132] In some embodiments, Figure 3 As shown, after parsing the business process diagram and before running the at least two first business functions, the method may further include:
[0133] Step 105: Acquire function running information of at least two first business functions, where the function running information includes function codes of at least two first business functions;
[0134] The above Figure 1 In step 104 of the illustrated embodiment, the step of running at least two first business functions based on the running order and the dependency relationship between the running results may include:
[0135] The at least two first business functions are executed based on the execution order, the dependency relationship between the execution results and the function code.
[0136] In some embodiments, Figure 3 As shown, before running the at least two first business functions, the method further includes:
[0137] Step 106: Obtain operation configuration information of the at least two first business functions. The above configuration information may include dependent data interface information and / or storage system configuration information required for the operation of the at least two first business functions.
[0138] Step 107: acquiring at least two dependent data required for the operation of the first business functions based on the dependent data interface information, and / or acquiring at least two storage system data required for the operation of the first business functions based on the storage system configuration information;
[0139] Step 108: Inject the dependency data and / or storage system data required for the execution of the at least two first business functions into the function code.
[0140] The above-mentioned dependent data or storage system data is the data required for the initial operation of the first business function. For example, a certain computing task needs to obtain initial external data during operation. The above-mentioned external data can be stored in the storage system or obtained from an external data supplier. The external data supplier provides the corresponding results. Therefore, before the business is officially run, the dependent data can be obtained from the dependent data interface, or the storage system data can be obtained from the storage system, and then injected into the function code to utilize the normal operation of subsequent business.
[0141] In some embodiments, the above-mentioned function running information includes description information of at least two first business functions, and the description information of the first business function may include introduction information such as the function's function and characteristics, so that the user can fully understand each first business function.
[0142] In some embodiments, the above-mentioned function execution information also includes initialization processing information, and the method may further include:
[0143] Initialization processing is performed for running the first business function based on the initialization processing information.
[0144] As described above, in the technical solution provided in the embodiment of the present disclosure, the service operation platform may be operated, and the service operation platform may include an operation engine. Figure 1 In the embodiment shown, each step is executed in the running engine, and the function running information therein, including function code, description information and initialization information, etc., can be recorded in the function library after being developed by the developer. After obtaining the business process diagram, the running engine parses the business process diagram to obtain the required first business function, and then obtains the corresponding function running information from the function library, and can load the function information of at least two first business functions into the same running engine, so as to utilize the subsequent creation of the first shared storage space to realize memory sharing and reduce the efficiency of calling the running results between each other.
[0145] In addition, specifically, for the above steps of obtaining the dependent data required for the operation of at least two first business functions based on the dependent data interface information, and / or obtaining the storage system data required for the operation of at least two first business functions based on the storage system configuration information, it can be to set a configuration center module in the business operation platform, and the operation engine extracts the dependent data interface information and / or the storage system configuration information from the function operation information and sends it to the configuration center module, and the configuration center module obtains the corresponding data based on the above-mentioned dependent data interface information and / or the storage system configuration information, and then feeds back to the operation engine.
[0146] The above embodiments of the present disclosure mainly involve how to obtain a business process diagram and run a corresponding business based on the business process diagram. In some cases, after the business is run, the running business can be uninstalled. Figure 4 A flow chart of a service offloading process provided by an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the following steps are included:
[0147] Step 401: A task offloading request sent by a user is received through an interactive interface. The interactive interface is an external interactive interface provided by the business operation platform, such as an interactive interface for receiving a business process diagram. The above-mentioned interactive interface may include but is not limited to at least one of an interface interactive interface, an SDK interface or an API interface.
[0148] Step 402, uninstalling the function running information of the at least two first business functions, may specifically include uninstalling the function codes of the at least two first business functions from the running engine, and deleting the description information, initialization information, etc. of the first business function. When the above-mentioned first business function includes the first business function body, and a sub-function associated with the first business function body, and the sub-function includes at least one of a conditional sub-function, a prefix sub-function, a post-function, a timeout sub-function and a fault-tolerant sub-function, it may be uninstalling the above-mentioned first business function body and the sub-function associated with the first business function body.
[0149] Furthermore, when the function execution information in the above embodiment includes destruction processing information, the method may further include:
[0150] Step 403: Perform destruction processing based on the destruction processing information.
[0151] Specifically, the destruction process may include clearing the operation results generated during the operation of at least two first business functions, including the final operation results, intermediate operation results, etc. The data information generated during the operation of the above-mentioned first business function can be further cleared through the destruction process step, which can save storage space on the one hand, and on the other hand, because the public technical solution can be applied to application scenarios such as cloud servers, timely clearing the data generated by the operation of the business function can also achieve the effect of protecting data security.
[0152] In some embodiments, there is a situation where the business process diagram is updated. In this case, usually based on the updated business process diagram, first follow Figure 1 The steps in the illustrated embodiment are to uninstall the first business function in the previously running business process graph after the second business function in the updated business process graph is run.
[0153] Specifically, Figure 5 A schematic diagram of a process flow diagram for updating a business process diagram provided by an embodiment of the present disclosure, such as Figure 5 As shown, the following steps are included:
[0154] Step 501: Receive a flowchart update request through an interactive interface to obtain an updated business flowchart;
[0155] Specifically, it can be through Figure 1 In the manner shown in step 101, a flowchart update request sent by a user is received through various types of interfaces, and the flowchart update request includes an updated business flowchart. Figure 1 Steps 102 to 104 shown in the figure perform steps 502 to 504 as follows. In this embodiment, steps 502 to 504 as follows are not described in detail.
[0156] Step 502: Parse the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram and the dependency relationship between the running results of at least two second business functions;
[0157] Step 503: Create a second shared storage space, where the second shared storage space is used to store the running result of the second business function;
[0158] Step 504: Run at least two second business functions based on the above-mentioned running order and the dependency relationship between the above-mentioned running results, and store the running results of the at least two second business functions in the second shared storage space;
[0159] Step 505: Unload the original business flow chart associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the execution engine.
[0160] After the at least two updated second business functions are running in step 504, it means that the business has been running normally according to the updated business process diagram. At this point, the previous first business function can be uninstalled. For specific uninstallation methods, please refer to Figure 4 In the embodiment shown in the figure, after the uninstallation is completed, the destruction process can also be further performed based on the destruction process information. The specific destruction process method can also refer to the above Figure 4 The embodiment shown.
[0161] The business operation platform in the embodiment of the present disclosure operates the business based on the first business function developed by the developer in the above embodiment. The above first business function can be developed by different developers. Figure 6 A flow chart of a function development process provided by an embodiment of the present disclosure may specifically include:
[0162] Step 601: Send a function development toolkit to a user, so that the user develops a first business function based on the function development toolkit;
[0163] Specifically, the above-mentioned first business function can be one or more functions in the business process diagram. Usually a business process diagram can complete a complete functional task, and a function is usually a part of the complete functional task. For example, a recommendation service can be divided into three modules: material recall, model sorting, and rule rearrangement according to the business process diagram. Then a first business function can be the function corresponding to one of the modules. After determining the function corresponding to the first business function, the development task can be made clear to the developer. The user can develop based on the above-mentioned function development toolkit and develop specific function code. After the development is completed, the function code can be packaged through the editing tool.
[0164] According to actual needs, the developer may provide not only the function code but also the description information or initialization information of the first business function.
[0165] Step 602: Receive the first business function developed by the user and store it in the function library.
[0166] This step is based on step 601, and the function code of the first business function is sent to the business operation platform. Alternatively, the description information or initialization information of the first business function can be further sent to the business operation platform to store the above information in the function library. The function code, description information and initialization information of the first business function can be collectively referred to as the operation information of the first business function, which is used when the business is running.
[0167] In some embodiments, in the above step 601, the dependent data interface information and / or storage system configuration information required for developing the first business function may also be sent to the user. At this time, the user responsible for developing the first business function can directly reference the above information and edit the above dependent data interface information and storage system configuration information into the function code of the first business function, thereby eliminating the need to worry about the specific environment and cluster configuration of the final first business function at runtime.
[0168] The dependent data interface information and / or storage system configuration information required for the function code of the above-mentioned development of the first business function may be issued simultaneously with the function development toolkit. The above-mentioned information is embedded in the function development toolkit, and the user can view it at any time when developing the first business function.
[0169] Furthermore, Figure 7 A flow chart of another function development process provided by an embodiment of the present disclosure, in which Figure 6 Based on the embodiment shown, it can further include:
[0170] Step 603: Send a virtual operating environment for running at least two first business functions in the business process diagram to the user, so that the user can test the developed first business functions based on the virtual operating environment.
[0171] The virtual operating environment in this step can simulate the operating engine in the business operating platform, and run the first business function developed by the user in the virtual operating environment, so that the user can develop and test the function locally, and can reduce the testing cost. As shown in the above embodiment, the first business function is executed in a business process diagram, so the virtual operating environment can also be tested according to the business process diagram. At this time, if the user develops all the first business functions in the business process diagram, all the above first business functions can be tested at the same time. If the user only needs to develop one first business function in the business process diagram, in order to realize the test of the first business function developed by the user, other first business functions in the business process diagram required for one test can also be sent to the virtual operating environment at the same time.
[0172] In the disclosed embodiment, the virtual operating environment may be integrated into a function development toolkit, and a test button may be added to the function development toolkit to implement real-time testing of the developed first business function.
[0173] In some embodiments, the function development toolkit may support multiple programming languages so that the user can develop the first business function based on different programming languages.
[0174] Corresponding to the above-mentioned business operation method, the embodiment of the present disclosure also provides a business operation platform, which can be used to execute the above-mentioned business operation method, wherein the specific technical solution can refer to the above-mentioned Figure 1-Figure 7 The embodiment shown will not be described in detail in the embodiment of the business operation platform. Figure 8 A schematic diagram of a business operation platform provided by an embodiment of the present disclosure is shown in FIG. Figure 8 As shown, it includes:
[0175] A flow chart acquisition module 11 is used to acquire a business flow chart associated with the business to be run;
[0176] A parsing module 12, used to parse the business process diagram to obtain the running order of at least two first business functions in the business process diagram, and the dependency relationship between the running results of the at least two first business functions;
[0177] A storage space creation module 13 is configured to create a first shared storage space, wherein the first shared storage space is used to store the operation result of the first business function;
[0178] The business running module 14 is used to run the at least two first business functions based on the running order and the dependency relationship between the running results, and store the running results of the at least two first business functions in the first shared storage space.
[0179] In some embodiments, Fig. 9 A schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure, such as Fig. 9 As shown, except Figure 8 In addition to the structure shown, it also includes:
[0180] The interactive interface 15 is used to receive a business process diagram associated with the business to be run and sent by a user through the interactive interface.
[0181] In some embodiments, the interactive interface is also used for the interactive interface to receive a service operation instruction sent by a user;
[0182] The storage space creation module 13 is specifically configured to create a first shared storage space based on the service operation instruction.
[0183] In some embodiments, the first business function includes a first business function body, and a sub-function associated with the first business function body, wherein the sub-function includes at least one of a conditional sub-function, a pre-sub-function, a post-sub-function, a timeout sub-function, and a fault-tolerant sub-function.
[0184] In some embodiments, it also includes:
[0185] An operation information acquisition module 16, used to acquire function operation information of the at least two first business functions, wherein the function operation information includes function codes of the at least two first business functions;
[0186] The business running module 14 is specifically configured to run the at least two first business functions based on the running sequence, the dependency relationship between the running results and the function code.
[0187] In some embodiments, it also includes:
[0188] A configuration information acquisition module 17 is used to obtain the running configuration information of the at least two first business functions, wherein the running configuration information includes dependency data interface information and / or storage system configuration information required for the running of the at least two first business functions: obtaining the dependency data required for the running of the at least two first business functions based on the dependency data interface information, and / or, obtaining the storage system data required for the running of the at least two first business functions based on the storage system configuration information; and injecting the dependency data and / or storage system data required for the running of the at least two first business functions into the function code.
[0189] In some embodiments, the function execution information also includes description information of the at least two first business functions.
[0190] In some embodiments, the function execution information further includes initialization processing information, and the method further includes:
[0191] An initialization module is used to perform initialization processing for running the first business function based on the initialization processing information.
[0192] In some embodiments, Fig.10 This is a schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure. The service operation platform further includes an operation engine 10 and a function library 20:
[0193] The above-mentioned flowchart acquisition module 11, analysis module 12, storage space creation module 13, operation information acquisition module 16 and business operation module 14 are all set in the operation engine, and the function operation information of at least two business functions in the same business flowchart is loaded into the same operation engine 10; the function operation information of the at least two first business functions is stored in the function library 20.
[0194] In addition, for the above-mentioned configuration information acquisition module, it can also be set in the running engine 10 and complete all the above-mentioned disclosures, but in some cases, a special configuration center module 30 can also be set, wherein the configuration information acquisition module 17 obtains the running configuration information of the at least two first business functions, and the running configuration information includes the dependency data interface information and / or storage system configuration information required for the operation of the at least two first business functions; then sends the above-mentioned running configuration information to the configuration center module 30, and the configuration center module 30 obtains the dependency data required for the operation of the at least two first business functions based on the dependency data interface information, and / or, obtains the storage system data required for the operation of the at least two first business functions based on the storage system configuration information, and then feeds it back to the configuration information acquisition module 17; so that the configuration information acquisition module 17 injects the dependency data and / or storage system data required for the operation of the at least two first business functions into the function code.
[0195] In some embodiments, the interactive interface 15 is further used to receive a task offloading request sent by a user; the execution engine 10 further includes:
[0196] The uninstall module 18 is used to uninstall the function running information of the at least two first business functions.
[0197] In some embodiments, the interactive interface 15 is further used to receive a flowchart update request, and the flowchart acquisition module is used to acquire an updated business flowchart associated with the business to be run;
[0198] The parsing module 12 is further used to parse the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram and the dependency relationship between the running results of the at least two second business functions;
[0199] The storage space creation module 13 is further used to create a second shared storage space, where the second shared storage space is used to store the operation result of the second business function;
[0200] The business running module 14 is further used to run the at least two second business functions based on the running order and the dependency relationship between the running results, and store the running results of the at least two second business functions in the second shared storage space; the running engine 10 also includes:
[0201] The unloading module 18 is used to unload the original business process diagram associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the execution engine.
[0202] In some embodiments, Fig.11A schematic diagram of the structure of another service operation platform provided in an embodiment of the present disclosure, wherein the service operation platform further includes:
[0203] A toolkit delivery module 21, configured to deliver the function development toolkit to the user, so that the user can develop the first business function based on the function development toolkit;
[0204] The function receiving module 22 is used to receive a first business function developed by a user and store it in the function library 20 .
[0205] In some embodiments, it also includes:
[0206] The information sending module 23 is used to send the dependent data interface information and / or storage system configuration information required for developing the first business function to the user, so that the user can edit the dependent data interface information and the storage system configuration information into the function code of the first business function.
[0207] In some embodiments, the information sending module 23 is arranged in the toolkit sending module 21 .
[0208] In some embodiments, it also includes:
[0209] The operating environment sending module 24 is used to send a virtual operating environment for running at least two first business functions in the business process diagram to the user, so that the user can test the first business functions developed based on the virtual operating environment.
[0210] In some embodiments, the virtual operating environment is integrated into the function development toolkit.
[0211] In some embodiments, the interactive interface includes at least one of an interface interactive interface, a SDK interface, or an API interface.
[0212] Fig.12 A structural schematic diagram of an electronic device provided for an embodiment of the present disclosure. For the performance parameter information acquisition scheme of the AB test algorithm mentioned above in the embodiment of the present disclosure, it can be implemented on a cloud server or on a local host. Therefore, the electronic device can be either a cloud server, a local host, or a client device in the above embodiment.
[0213] The following is a specific reference, which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present disclosure. The electronic device 500 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown is only an example and should not bring any limitation to the functions and occupancy range of the embodiment of the present disclosure.
[0214] As shown in the figure, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 510, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 520 or a program loaded from a storage device 580 into a random access memory (RAM) 5030. In the RAM 530, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 510, the ROM 520, and the RAM 530 are connected to each other via a bus 540. An input / output (I / O) interface 550 is also connected to the bus 540.
[0215] Typically, the following devices may be connected to the I / O interface 550: input devices 560 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 570 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 580 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 590. The communication device 590 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 500 having various devices is shown, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
[0216] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 590, or installed from the storage device 580, or installed from the ROM 520. When the computer program is executed by the processing device 510, the above-mentioned functions defined in the performance information acquisition method of the AB test algorithm of the embodiment of the present disclosure are executed.
[0217] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0218] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0219] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0220] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains a business process diagram associated with the business to be run; parses the business process diagram to obtain the running order of at least two first business functions in the business process diagram, and the dependency relationship between the running results of the at least two first business functions; creates a first shared storage space, and the first shared storage space is used to store the running results of the first business function; runs the at least two first business functions based on the running order and the dependency relationship between the running results, and stores the running results of the at least two first business functions in the first shared storage space.
[0221] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0222] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0223] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0224] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used include, without limitation, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0225] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0226] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute any of the business operation methods provided by the present disclosure.
[0227] According to one or more embodiments of the present disclosure, the present disclosure provides a computer program, wherein the computer program is used to execute any of the business operation methods provided by the present disclosure.
[0228] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0229] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0230] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A business operation method, characterized in that: The method is applied to the Faas platform, including: Obtain a business process diagram associated with the business to be run; Parsing the business process graph to obtain the running order of at least two first business functions in the business process graph and the dependency relationship between the running results of the at least two first business functions; Creating a first shared storage space, where the first shared storage space is used to store the running results of the at least two first business functions; Running the at least two first business functions based on the running order and the dependency relationship between the running results, and storing the running results of the at least two first business functions in the first shared storage space; The first business function includes a first business function body, and a sub-function associated with the first business function body, wherein the sub-function includes at least one of a conditional sub-function, a pre-sub-function, a post-sub-function, a timeout sub-function, and a fault-tolerant sub-function; Among them, the first business function body is executed only when the execution condition sub-function is passed; the prefix sub-function refers to the sub-function that will be executed before the first business function body is executed; the post-sub-function refers to the sub-function that will be executed after the first business function body is successfully executed; the timeout sub-function refers to the sub-function that will be executed after the first business function body times out; the fault-tolerant sub-function refers to the sub-function that will be executed when an error occurs in the execution of the first business function body.
2. The method according to claim 1, characterized in that The obtaining of the business process diagram associated with the business to be run includes: A business process diagram associated with the business to be run and sent by the user is received through the interactive interface.
3. The method according to claim 2, characterized in that Before creating the first shared storage space, the method further includes: Receive business operation instructions sent by users through the interactive interface; The creating the first shared storage space includes: creating the first shared storage space based on the service running instruction.
4. The method according to claim 1, characterized in that: After parsing the business process diagram and before executing the at least two first business functions, the method further includes: Acquire function running information of the at least two first business functions, where the function running information includes function codes of the at least two first business functions; The running of the at least two first business functions based on the running order and the dependency relationship between the running results includes: The at least two first business functions are executed based on the execution order, the dependencies between the execution results and the function code.
5. The method according to claim 4, characterized in that Before executing the at least two first business functions, the method further includes: Acquire operation configuration information of the at least two first business functions, wherein the operation configuration information includes dependent data interface information and / or storage system configuration information required for the operation of the at least two first business functions; Acquire the dependency data required for the operation of the at least two first business functions based on the dependency data interface information, and / or acquire the storage system data required for the operation of the at least two first business functions based on the storage system configuration information; The dependency data and / or storage system data required for the execution of the at least two first business functions are injected into the function code.
6. The method according to claim 4, characterized in that The function running information also includes description information of the at least two first business functions.
7. The method according to claim 4, characterized in that The function execution information also includes initialization processing information, and the method further includes: Initialization processing is performed for running the first business function based on the initialization processing information.
8. The method according to claim 4, characterized in that The method is executed in a running engine, and function running information of at least two first business functions in a same business process graph is loaded into the same running engine; The function running information of the at least two first business functions is obtained from a function library.
9. The method according to claim 8, characterized in that Also includes: receiving a task offloading request sent by a user through an interactive interface; Uninstall the function running information of the at least two first business functions.
10. The method according to claim 8, characterized in that Also includes: Receiving a flowchart update request through an interactive interface to obtain an updated business flowchart associated with the business to be run; Parsing the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram and the dependency relationship between the running results of the at least two second business functions; Creating a second shared storage space, where the second shared storage space is used to store the running result of the second business function; Running the at least two second business functions based on the running order and the dependency relationship between the running results, and storing the running results of the at least two second business functions in the second shared storage space; Unload the original business process diagram associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the running engine.
11. The method according to claim 1, characterized in that: Also includes: Sending a function development toolkit to a user, so that the user develops the first business function based on the function development toolkit; A first business function developed by a user is received and stored in a function library.
12. The method according to claim 11, characterized in that Also includes: The dependent data interface information and / or storage system configuration information required for developing the first business function is issued to the user, so that the user can edit the dependent data interface information and the storage system configuration information into the function code of the first business function.
13. The method according to claim 12, characterized in that The dependent data interface information and / or storage system configuration information required for developing the function code of the first business function is delivered via the function development toolkit.
14. The method according to claim 11, characterized in that Also includes: A virtual operating environment for running at least two first business functions in the business process diagram is issued to the user, so that the user can test the first business functions developed based on the virtual operating environment.
15. The method according to claim 14, characterized in that The virtual operating environment is integrated into the function development toolkit.
16. The method according to claim 2, 3, 9 or 10, characterized in that The interactive interface includes at least one of an interface interactive interface, a SDK interface or an API interface.
17. A business operation platform, characterized in that: The business operation platform is a Faas platform, including: A flow chart acquisition module is used to acquire a business flow chart associated with the business to be run; A parsing module, used to parse the business process diagram to obtain the running order of at least two first business functions in the business process diagram and the dependency relationship between the running results of the at least two first business functions; A storage space creation module, which creates a first shared storage space, where the first shared storage space is used to store the operation results of the at least two first business functions; A business operation module, used for running the at least two first business functions based on the running order and the dependency relationship between the running results, and storing the running results of the at least two first business functions in the first shared storage space; The first business function includes a first business function body, and a sub-function associated with the first business function body, wherein the sub-function includes at least one of a conditional sub-function, a pre-sub-function, a post-sub-function, a timeout sub-function, and a fault-tolerant sub-function; Among them, the first business function body is executed only when the execution condition sub-function is passed; the prefix sub-function refers to the sub-function that will be executed before the first business function body is executed; the post-sub-function refers to the sub-function that will be executed after the first business function body is successfully executed; the timeout sub-function refers to the sub-function that will be executed after the first business function body times out; the fault-tolerant sub-function refers to the sub-function that will be executed when an error occurs in the execution of the first business function body.
18. The platform according to claim 17, characterized in that Also includes: The interactive interface is used to receive a business process diagram associated with the business to be run and sent by a user through the interactive interface.
19. The platform according to claim 18, characterized in that The interactive interface is also used to receive a service operation instruction sent by a user through the interactive interface; The storage space creation module is used to create a first shared storage space based on the business operation instruction.
20. The platform according to claim 17, characterized in that Also includes: An operation information acquisition module, used to acquire function operation information of the at least two first business functions, wherein the function operation information includes function codes of the at least two first business functions; The business running module is specifically used to run the at least two first business functions based on the running order, the dependency relationship between the running results and the function code.
21. The platform according to claim 20, characterized in that Also includes: A configuration information acquisition module, used to acquire operation configuration information of the at least two first business functions, wherein the operation configuration information includes dependent data interface information and / or storage system configuration information required for the operation of the at least two first business functions: acquiring dependent data required for the operation of the at least two first business functions based on the dependent data interface information, and / or acquiring storage system data required for the operation of the at least two first business functions based on the storage system configuration information; The dependency data and / or storage system data required for the execution of the at least two first business functions are injected into the function code.
22. The platform according to claim 20, characterized in that The function running information also includes description information of the at least two first business functions.
23. The platform according to claim 20, characterized in that The function execution information also includes initialization processing information, and the platform also includes: An initialization module is used to perform initialization processing for running the first business function based on the initialization processing information.
24. The platform according to claim 20, characterized in that Also includes runtime engine and function library: The flowchart acquisition module, the parsing module, the storage space creation module, the operation information acquisition module and the business operation module are all arranged in the operation engine, and the function operation information of at least two first business functions in the same business flowchart is loaded into the same operation engine; The function running information of the at least two first business functions is stored and obtained in a function library.
25. The platform according to claim 24, characterized in that The interactive interface is also used to receive a task offloading request sent by a user; The execution engine also includes: An uninstall module is used to uninstall the function running information of the at least two first business functions.
26. The platform according to claim 24, characterized in that The interactive interface is also used to receive a flowchart update request, and the flowchart acquisition module is used to acquire an updated business flowchart associated with the business to be run; The parsing module is further used to parse the updated business process diagram to obtain the running order of at least two second business functions in the updated business process diagram, and the dependency relationship between the running results of the at least two second business functions; The storage space creation module is further used to create a second shared storage space, where the second shared storage space is used to store the operation result of the second business function; The business running module is further used to run the at least two second business functions based on the running order and the dependency relationship between the running results, and store the running results of the at least two second business functions in the second shared storage space; The execution engine also includes: The unloading module is used to unload the original business process diagram associated with the business to be run and / or the function running information of at least two first business functions previously loaded into the running engine.
27. The platform according to claim 17, characterized in that Also includes: A toolkit delivery module, used for delivering the function development toolkit to the user, so that the user can develop the first business function based on the function development toolkit; The function receiving module is used to receive the first business function developed by the user and store it in the function library.
28. The platform according to claim 27, characterized in that Also includes: The information sending module is used to send the dependent data interface information and / or storage system configuration information required for developing the first business function to the user, so that the user can edit the dependent data interface information and the storage system configuration information into the function code of the first business function.
29. The platform according to claim 28, characterized in that The information sending module is arranged in the toolkit sending module.
30. The platform according to claim 27, characterized in that Also includes: The operating environment sending module is used to send a virtual operating environment for running at least two first business functions in the business process diagram to the user, so that the user can test the first business functions developed based on the virtual operating environment.
31. The platform according to claim 30, characterized in that The virtual operating environment is integrated into the function development toolkit.
32. The platform according to claim 18, characterized in that The interactive interface includes at least one of an interface interactive interface, a SDK interface or an API interface.
33. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the business operation method described in any one of claims 1-16.
34. A computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program is used to execute the business operation method described in any one of claims 1-16.
35. A computer program product, wherein the computer program product is used to execute the service operation method according to any one of claims 1 to 16.