CN117348999B - Service execution system and service execution method - Google Patents

Service execution system and service execution method Download PDF

Info

Publication number
CN117348999B
CN117348999B CN202311665189.1A CN202311665189A CN117348999B CN 117348999 B CN117348999 B CN 117348999B CN 202311665189 A CN202311665189 A CN 202311665189A CN 117348999 B CN117348999 B CN 117348999B
Authority
CN
China
Prior art keywords
module
execution
service
execution result
computing
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
CN202311665189.1A
Other languages
Chinese (zh)
Other versions
CN117348999A (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202311665189.1A priority Critical patent/CN117348999B/en
Publication of CN117348999A publication Critical patent/CN117348999A/en
Application granted granted Critical
Publication of CN117348999B publication Critical patent/CN117348999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The specification discloses a service execution system and a service execution method. The service execution system comprises: an on-chain subsystem and an off-chain subsystem, the on-chain subsystem comprising: the system comprises a release module, a scheduling module and a calculation module, wherein the downlink subsystem comprises: the system comprises a service execution module and a service end, wherein the service end is used for generating a calculation task according to an operation instruction input by a user, issuing a target event corresponding to the calculation task on a block chain through an issuing module, and acquiring an execution result of the calculation task through the calculation module. The scheduling module receives the target event and determines resource information required by the computing task and a target service execution module. The computing module is used for distributing the computing task to the target service executing module, loading the resource corresponding to the resource information through the target service executing module so as to execute the computing task, obtaining an executing result, and uploading the executing result to the computing module.

Description

Service execution system and service execution method
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a service execution system and a service execution method.
Background
With the development of technologies such as artificial intelligence, cloud computing and big data, computing power and algorithm resources required by service execution are gradually evolved to diversified trends through application of various industries, and the diversified data, computing power and algorithm resources are generally dispersedly constructed and dispersedly used by different enterprises or different institutions and the like, so that the diversified data, computing power and algorithm resources are difficult to fully apply.
Therefore, how to improve the utilization rate of diversified data, computing power and algorithm resources is a problem to be solved urgently.
Disclosure of Invention
The present disclosure provides a service execution method, apparatus, storage medium, and electronic device, so as to partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the present specification provides a service execution system, including: an on-chain subsystem and an off-chain subsystem based on a blockchain, wherein the on-chain subsystem comprises: the system comprises a publishing module, a scheduling module and a calculating module, wherein the downlink subsystem comprises: a service execution module and a service end;
the business end is used for generating a calculation task according to an operation instruction input by a user, issuing a target event corresponding to the calculation task on a block chain through the issuing module, acquiring an execution result of the calculation task through the calculation module, and executing business according to the execution result;
the scheduling module is configured to receive the target event, determine resource information required for executing the computing task, and determine a service execution module for executing the computing task, as a target service execution module, where the resource information includes: metadata of algorithms required for target service execution, metadata of computational effort required for target service execution, metadata of data required for target service execution;
the computing module is used for distributing the computing task to the target service executing module, loading the resource corresponding to the resource information through the target service executing module so as to execute the computing task, obtaining the executing result, and uploading the executing result to the computing module.
Optionally, the service execution module uploads each piece of resource information to the blockchain through the publishing module so as to add each piece of resource information to a preset service directory through the service end;
the service end is used for displaying the service catalog to the user, receiving an operation instruction input by the user based on the service catalog, generating a calculation task according to the operation instruction, and issuing a target event corresponding to the calculation task on a blockchain based on an intelligent contract through the issuing module.
Optionally, the target service execution module is configured to load a resource corresponding to the resource information, to execute the computing task, to obtain the execution result, and upload relevant information of the execution result to the computing module, so that the service end obtains the relevant information through the computing module, and obtains the execution result through the relevant information and a preset end-to-end security channel, where the relevant information of the execution result includes: at least one of hash value of the execution result and local storage address of the execution result.
Optionally, the system on a chain further comprises: a verification module;
the verification module is used for determining a target execution strategy matched with the execution result from preset execution strategies after the execution result of the calculation task is obtained through the service end;
and performing service execution according to the target execution strategy and the execution result to obtain a service execution result, and uploading the service execution result to the blockchain.
Optionally, the system on a chain further comprises: an evaluation module;
the evaluation module is configured to receive evaluation information uploaded by the service end, where the evaluation information is determined by the service end according to execution information of the computing task after the service end completes service execution, and the execution information includes: and the execution time of the calculation task and the accuracy of the execution result of the calculation task.
The present specification provides a service execution method,
the method is applied to a service execution system, and the service execution system comprises: an on-chain subsystem and an off-chain subsystem based on a blockchain, wherein the on-chain subsystem comprises: the system comprises a publishing module, a scheduling module and a calculating module, wherein the downlink subsystem comprises: the method comprises the steps of:
the service end generates a calculation task according to an operation instruction input by a user, and issues a target event corresponding to the calculation task on a block chain through the issuing module;
receiving the target event through the scheduling module, determining resource information required for executing the computing task, and determining a service execution module for executing the computing task as a target service execution module, wherein the resource information comprises: metadata of algorithms required for target service execution, metadata of computational effort required for target service execution, metadata of data required for target service execution;
the computing task is distributed to the target service execution module through the computing module, the computing task is executed through the resources corresponding to the resource information of the target service execution module, an execution result is obtained, and the execution result is uploaded to the computing module;
and acquiring the execution result through the calculation module, and executing the service according to the execution result.
Optionally, the service end generates a computing task according to an operation instruction input by a user, and before the issuing module issues a target event corresponding to the computing task on a blockchain, the method further includes:
the service execution module uploads each piece of resource information to the blockchain through the release module so as to add each piece of resource information to a preset service catalog through the service end;
the service end generates a computing task according to an operation instruction input by a user, and issues a target event corresponding to the computing task on a block chain through the issuing module, wherein the method specifically comprises the following steps:
the service end displays the service catalog to the user, receives an operation instruction input by the user based on the service catalog, generates a calculation task according to the operation instruction, and issues a target event corresponding to the calculation task on a blockchain based on an intelligent contract through the issuing module.
Optionally, the target service execution module loads the resource corresponding to the resource information to execute the computing task, obtains an execution result, and uploads the execution result to the computing module, which specifically includes:
the resource information required by executing the computing task is loaded through the target service execution module to execute the computing task, the execution result is obtained, and relevant information of the execution result is uploaded to the computing module, so that the service end obtains the relevant information through the computing module, and obtains the execution result through the relevant information and a preset end-to-end safety channel, wherein the relevant information of the execution result comprises: at least one of hash value of the execution result and local storage address of the execution result.
Optionally, the system on a chain further comprises: a verification module;
the execution result is obtained through the calculation module, and service execution is carried out according to the execution result, and the method specifically comprises the following steps:
after the verification module obtains the execution result of the computing task through the service end, determining a target execution strategy matched with the execution result from preset execution strategies;
and performing service execution according to the target execution strategy and the execution result to obtain a service execution result, and uploading the service execution result to the blockchain.
Optionally, the system on a chain further comprises: an evaluation module, the method further comprising:
receiving, by the evaluation module, evaluation information uploaded by the service end, where the evaluation information is determined by the service end according to execution information of the computing task after completing service execution, and the execution information includes: and the execution time of the calculation task and the accuracy of the execution result of the calculation task.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described service execution method.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above-mentioned service execution method when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
in the service execution system provided in the present specification, the service execution system includes: a blockchain-based on-chain subsystem and an off-chain subsystem, wherein the on-chain subsystem comprises: the system comprises a release module, a scheduling module and a calculation module, wherein the downlink subsystem comprises: the system comprises a storage module, a service execution module and a service end, wherein the service end is used for generating a calculation task according to an operation instruction input by a user, a target event corresponding to the calculation task is issued on a block chain through an issuing module, a scheduling module is used for receiving the target event, determining resource information required by executing the calculation task, and determining the service execution module used for executing the calculation task, and the resource information comprises: the method comprises the steps of carrying out metadata of an algorithm required by target service execution, carrying out metadata of calculation force required by the target service execution, distributing calculation tasks to a target service execution module by a calculation module, loading resource information required by the calculation tasks to execute the calculation tasks by the target service execution module, obtaining an execution result, and uploading the execution result to the calculation module.
As can be seen from the above method, a block chain based service execution system can be used to perform a service such as: the resources such as data, algorithm, calculation power and the like are integrated, so that resources required for executing the calculation task can be scheduled for a user on the blockchain according to the resource requirements corresponding to the calculation task initiated by the user, and the corresponding resources can be loaded under the blockchain to execute the calculation task, thereby being capable of diversifying the utilization rate of the data, the calculation power and the algorithm resources.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
FIG. 1 is a schematic diagram of a business execution system provided in the present specification;
FIG. 2 is a schematic diagram of a scheduling process provided in the present specification;
fig. 3 is a schematic flow chart of a service execution method provided in the present specification;
fig. 4 is a schematic view of an electronic device corresponding to fig. 3 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a service execution system provided in the present specification.
As can be seen in connection with fig. 1, the service execution system may comprise: a blockchain-based on-chain subsystem and an off-chain subsystem, wherein the on-chain subsystem may include: the issuing module, the scheduling module, the calculating module, the verifying module and the evaluating module, and the link subsystem may include: the system comprises a storage module, a service execution module and a service end.
Specifically, the providers of the resources such as data, algorithm and the like store the resources such as data, algorithm and the like in the storage module in advance for storage, and the providers of the resources such as data, algorithm and the like can upload metadata of the resources such as data, algorithm and the like as resource information into the blockchain through the release module through the service execution module, and add the resource information into a preset service catalog through the service end.
The metadata of the data may include: at least one of data partition, data name, data type, data format, hash value, uniform resource locator (UniformResourceLocator, URL), data size, power demand, data description.
The metadata of the algorithm may include: at least one of algorithm partition, algorithm name, algorithm function, algorithm type, data format, URL, computational power requirements, execution environment, execution mode, algorithm description.
The above-mentioned metadata of the calculation force may include: the computing power system comprises at least one of computing power partition, computing power name, computing power specification, system firmware, operating system, CPU, memory, storage, bandwidth and computing power description.
Further, the service end may be configured to display a service directory to a user, and receive an operation instruction input by the user based on the service directory, where the operation instruction is configured to select resource information required by the user from the service directory, and further determine, according to the operation instruction input by the user, resource information required by the user, and further generate, according to the resource information required by the user, a computing task, and issue, by an issue module, a target event corresponding to the computing task on a blockchain based on an intelligent contract, where the operation instruction includes: click operation instructions, drag operation instructions, text input operation instructions, and the like.
The scheduling module may determine, after receiving the target event issued by the service end through the issuing module, resource information required for executing the computing task corresponding to the received target event, and determine, according to a preset scheduling policy and resource information required for executing the computing task corresponding to the target event, a service execution module for executing the computing task, as a target service execution module, as shown in fig. 2 in detail.
Fig. 2 is a schematic diagram of a scheduling procedure provided in the present specification.
As can be seen in conjunction with fig. 2, the service end may upload the generated computing task to the blockchain through the task contract, so that after the scheduling module obtains the computing task, the service execution module for executing the computing task may be determined as the target service execution module according to the scheduling contract and each resource information of each service execution module in the blockchain, which is obtained in advance through the resource detection contract.
The task contracts, the scheduling contracts and the resource exploration contracts are about intelligent contracts on the blockchain, which are needed for executing different tasks.
It should be noted that the service execution module may be used by a provider that provides the computing power resource, for example: a server, etc.
Further, the scheduling module determines a target computing network node from all computing network nodes contained in the blockchain, so that the computing module can distribute computing tasks to the target service execution module through the target computing network node, the target service execution module loads resources corresponding to resource information required for executing the computing tasks corresponding to the received target events to execute the computing tasks, an execution result is obtained, and the execution result is uploaded to the computing module.
The method for determining the target power network node by the scheduling module from the power network nodes contained in the blockchain can be set according to actual requirements, for example: according to the load state of each power network node, determining a target power network node from each power network node, and for example: and forming a queue through each preset power network node, wherein the queue is used for storing power network nodes which are not assigned with tasks, and further determining target power network nodes and the like from each power network node contained in the queue in turn.
Further, the target service execution module may be configured to load, from the storage module, a resource corresponding to the resource information according to the resource information, to execute the computing task, obtain an execution result, and upload relevant information of the execution result to the computing module, where the relevant information of the execution result includes: at least one of hash value of the execution result and local storage address of the execution result.
Specifically, after the execution of the computing task, the target service execution module may upload relevant information of the execution result and the execution state of the computing task to the computing module, and delete the resource corresponding to the locally loaded resource information.
The specified storage location may be a storage location preset in the storage module and used for storing an execution result of each computing task.
In an actual application scenario, the service end may directly use the obtained execution result as a service execution result, or may further perform service execution based on the obtained execution result, so as to obtain a service execution result.
For example: in the field of search recommendation, the above-mentioned calculation task may be a task for recalling each candidate recommendation result for the user based on the keyword input by the user, and at this time, the above-mentioned execution result is the candidate recommendation result recalled for the user, so further screening is performed based on the above-mentioned execution result by using a coarse ranking module and/or a fine ranking module deployed at the service end, so as to obtain the recommendation result finally recommended to the user as the service execution result.
For another example: in the field of image recognition, the above-mentioned calculation task may be a task of extracting features based on input image data, and at this time, the above-mentioned execution result is a feature representation extracted based on the image data, so that it is also necessary to perform classification prediction based on the above-mentioned execution result by using a classification model deployed at the service end, so as to obtain a final classification result of the image data.
Based on this, the verification module of the service execution system may be further configured to determine, after the execution result of the computing task is obtained through the service end, a target execution policy that matches the execution result from preset execution policies, perform service execution according to the target execution policy and the execution result, obtain a service execution result, and upload the service execution result to the blockchain.
For example: in the field of search recommendation, the verification module may input the execution result (which may be a recalled candidate recommendation result) into a preset coarse ranking module and/or fine ranking model according to a target execution policy, so as to determine, through the coarse ranking module and/or the fine ranking model, a recommendation result finally recommended to the user as a service execution result.
In addition, the service execution system further includes: and an evaluation module.
As can be seen from fig. 2, the evaluation module may be configured to receive evaluation information for evaluating the computing power resource, the data resource, and the algorithm resource used for executing the computing task, where the evaluation information is determined by the service end according to execution information of the computing task after the service end completes execution of the service, and the execution information includes: at least one of the execution time of the calculation task and the accuracy of the execution result of the calculation task.
And when other users initiate service execution requests, the evaluation information can be displayed to other users through the service terminals used by the other users.
From the foregoing, it can be seen that a block chain based service execution system can be used to perform a process such as: the resources such as data, algorithm, calculation power and the like are integrated, so that resources required for executing the calculation task can be scheduled for a user on the blockchain according to the resource requirements corresponding to the calculation task initiated by the user, and the corresponding resources can be loaded under the blockchain to execute the calculation task, thereby being capable of diversifying the utilization rate of the data, the calculation power and the algorithm resources.
In order to describe the above details, the present specification also provides a process of executing a service by the service execution system, as shown in fig. 3.
Fig. 3 is a flow chart of a service execution method provided in the present specification, which includes the following steps:
s301: and the service end generates a calculation task according to an operation instruction input by a user, and issues a target event corresponding to the calculation task on a block chain through the issuing module.
S302: receiving the target event through the scheduling module, determining resource information required for executing the computing task, and determining a service execution module for executing the computing task as a target service execution module, wherein the resource information comprises: metadata of algorithms required for target service execution, metadata of computational effort required for target service execution, metadata of data required for target service execution.
S303: and distributing the calculation task to the target service execution module through the calculation module, executing the calculation task through the resource corresponding to the resource information of the target service execution module to obtain an execution result, and uploading the execution result to the calculation module.
S304: and acquiring the execution result through the calculation module, and executing the service according to the execution result.
Uploading each piece of resource information to the blockchain through the issuing module so as to add each piece of resource information to a preset service catalog through the service end, displaying the service catalog to the user through the service end, receiving an operation instruction input by the user based on the service catalog, generating a calculation task according to the operation instruction, and issuing a target event corresponding to the calculation task on the blockchain based on an intelligent contract through the issuing module.
The resource information required by executing the computing task is loaded through the target service execution module to execute the computing task, the execution result is obtained, and relevant information of the execution result is uploaded to the computing module, wherein the relevant information of the execution result comprises: at least one of hash value of the execution result and local storage address of the execution result.
The verification module can also determine a target execution strategy matched with the execution result from preset execution strategies after the execution result of the calculation task is obtained through the service end, execute the service according to the target execution strategy and the execution result, obtain the service execution result, and upload the service execution result to a blockchain.
Receiving, by the evaluation module, evaluation information uploaded by the service end, where the evaluation information is determined by the service end according to execution information of the computing task after completing service execution, and the execution information includes: and the execution time of the calculation task and the accuracy of the execution result of the calculation task.
As can be seen from the above method, a block chain based service execution system can be used to perform a service such as: the resources such as data, algorithm, calculation power and the like are integrated, so that resources required for executing the calculation task can be scheduled for a user on the blockchain according to the resource requirements corresponding to the calculation task initiated by the user, and the corresponding resources can be loaded under the blockchain to execute the calculation task, thereby being capable of diversifying the utilization rate of the data, the calculation power and the algorithm resources.
The present specification also provides a computer-readable storage medium storing a computer program operable to perform a service execution method as provided in fig. 3 above.
The present specification also provides a schematic structural diagram of an electronic device corresponding to fig. 3 shown in fig. 4. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as described in fig. 4, although other hardware required by other services may be included. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to implement the service execution method described in fig. 1. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
Improvements to one technology can clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
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 system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (8)

1. A business execution system, the business execution system comprising: an on-chain subsystem and an off-chain subsystem based on a blockchain, wherein the on-chain subsystem comprises: the system comprises a publishing module, a scheduling module, a calculating module and a verifying module, wherein the downlink subsystem comprises: a service execution module and a service end;
the service end is used for generating a calculation task according to an operation instruction input by a user, issuing a target event corresponding to the calculation task on a block chain through the issuing module, acquiring an execution result of the calculation task through the calculation module, and executing service according to the execution result through the verification module;
the scheduling module is configured to receive the target event, determine resource information required for executing the computing task, and determine a service execution module for executing the computing task, as a target service execution module, where the resource information includes: metadata of algorithms required for target service execution, metadata of computational effort required for target service execution, metadata of data required for target service execution;
the computing module is used for distributing the computing task to the target service execution module, loading the resource corresponding to the resource information through the target service execution module so as to execute the computing task, obtaining the execution result, and uploading the execution result to the computing module;
and the verification module is used for determining a target execution strategy matched with the execution result from preset execution strategies after the execution result of the calculation task is obtained through the service end, executing service according to the target execution strategy and the execution result to obtain a service execution result, and uploading the service execution result to the blockchain.
2. The service execution system of claim 1, wherein the service execution module uploads each resource information to the blockchain through the publishing module to add each resource information to a preset service directory through the service end;
the service end is used for displaying the service catalog to the user, receiving an operation instruction input by the user based on the service catalog, generating a calculation task according to the operation instruction, and issuing a target event corresponding to the calculation task on a blockchain based on an intelligent contract through the issuing module.
3. The service execution system of claim 1, wherein the target service execution module is configured to load a resource corresponding to the resource information to execute the computing task to obtain the execution result, and upload relevant information of the execution result to the computing module, so that the service end obtains the relevant information through the computing module, and obtains the execution result through the relevant information and a preset end-to-end secure channel, where the relevant information of the execution result includes: at least one of hash value of the execution result and local storage address of the execution result.
4. The business execution system of claim 1, wherein the system on chain further comprises: an evaluation module;
the evaluation module is configured to receive evaluation information uploaded by the service end, where the evaluation information is determined by the service end according to execution information of the computing task after the service end completes service execution, and the execution information includes: and the execution time of the calculation task and the accuracy of the execution result of the calculation task.
5. A service execution method, wherein the method is applied to a service execution system, the service execution system comprising: an on-chain subsystem and an off-chain subsystem based on a blockchain, wherein the on-chain subsystem comprises: the system comprises a publishing module, a scheduling module, a calculating module and a verifying module, wherein the downlink subsystem comprises: the method comprises the steps of:
the service end generates a calculation task according to an operation instruction input by a user, and issues a target event corresponding to the calculation task on a block chain through the issuing module;
receiving the target event through the scheduling module, determining resource information required for executing the computing task, and determining a service execution module for executing the computing task as a target service execution module, wherein the resource information comprises: metadata of algorithms required for target service execution, metadata of computational effort required for target service execution, metadata of data required for target service execution;
the computing task is distributed to the target service execution module through the computing module, the computing task is executed through the resources corresponding to the resource information of the target service execution module, an execution result is obtained, and the execution result is uploaded to the computing module;
and acquiring the execution result through the computing module, and performing service execution according to the execution result through the verification module, wherein the verification module determines a target execution strategy matched with the execution result from preset execution strategies after acquiring the execution result of the computing task through the service end, performs service execution according to the target execution strategy and the execution result, acquires a service execution result, and uploads the service execution result to the block chain.
6. The method of claim 5, wherein the service side generates a computing task according to an operation instruction input by a user, and the issuing module issues, before the target event corresponding to the computing task on a blockchain, the method further comprises:
the service execution module uploads each piece of resource information to the blockchain through the release module so as to add each piece of resource information to a preset service catalog through the service end;
the service end generates a computing task according to an operation instruction input by a user, and issues a target event corresponding to the computing task on a block chain through the issuing module, wherein the method specifically comprises the following steps:
the service end displays the service catalog to the user, receives an operation instruction input by the user based on the service catalog, generates a calculation task according to the operation instruction, and issues a target event corresponding to the calculation task on a blockchain based on an intelligent contract through the issuing module.
7. The method of claim 5, wherein loading, by the target service execution module, the resource corresponding to the resource information to execute the computing task, obtaining an execution result, and uploading the execution result to the computing module, includes:
the resource information required by executing the computing task is loaded through the target service execution module to execute the computing task, the execution result is obtained, and relevant information of the execution result is uploaded to the computing module, so that the service end obtains the relevant information through the computing module, and obtains the execution result through the relevant information and a preset end-to-end safety channel, wherein the relevant information of the execution result comprises: at least one of hash value of the execution result and local storage address of the execution result.
8. The method of claim 5, wherein the system on a chain further comprises: an evaluation module, the method further comprising:
receiving, by the evaluation module, evaluation information uploaded by the service end, where the evaluation information is determined by the service end according to execution information of the computing task after completing service execution, and the execution information includes: and the execution time of the calculation task and the accuracy of the execution result of the calculation task.
CN202311665189.1A 2023-12-06 2023-12-06 Service execution system and service execution method Active CN117348999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311665189.1A CN117348999B (en) 2023-12-06 2023-12-06 Service execution system and service execution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311665189.1A CN117348999B (en) 2023-12-06 2023-12-06 Service execution system and service execution method

Publications (2)

Publication Number Publication Date
CN117348999A CN117348999A (en) 2024-01-05
CN117348999B true CN117348999B (en) 2024-02-23

Family

ID=89365423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311665189.1A Active CN117348999B (en) 2023-12-06 2023-12-06 Service execution system and service execution method

Country Status (1)

Country Link
CN (1) CN117348999B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369144A (en) * 2020-03-04 2020-07-03 浙江大学 Intelligent energy scheduling system and method based on fog calculation and block chain
CN111708627A (en) * 2020-06-22 2020-09-25 中国平安财产保险股份有限公司 Task scheduling method and device based on distributed scheduling framework
CN111985851A (en) * 2020-09-07 2020-11-24 中国银行股份有限公司 Bank outlet resource scheduling method and device
CN112667748A (en) * 2021-03-16 2021-04-16 杭州链城数字科技有限公司 Block chain all-in-one machine facing audit service, data processing method and device
CN114048009A (en) * 2021-09-30 2022-02-15 网络通信与安全紫金山实验室 Scheduling decision method and system based on block chain and oriented to cloud network scene
CN114301928A (en) * 2021-11-29 2022-04-08 之江实验室 SGX-based chain uplink and downlink mixed consensus method and system
CN114896637A (en) * 2022-04-29 2022-08-12 蚂蚁区块链科技(上海)有限公司 Data processing method and device, electronic equipment and storage medium
CN115328645A (en) * 2022-06-27 2022-11-11 国网冀北电力有限公司信息通信分公司 Computing task scheduling method, computing task scheduling device and electronic equipment
CN115511595A (en) * 2022-08-29 2022-12-23 蚂蚁区块链科技(上海)有限公司 Service execution method and device based on block chain
CN116502283A (en) * 2023-04-11 2023-07-28 杭州趣链科技有限公司 Privacy data processing method and device
CN116579788A (en) * 2023-05-15 2023-08-11 深圳市怡通数科创新发展有限公司 Supply chain management method, system, equipment and storage medium based on block chain
CN116643873A (en) * 2022-12-26 2023-08-25 中移动信息技术有限公司 Method, device, system, equipment and storage medium for scheduling computing power resources
WO2023185044A1 (en) * 2022-03-31 2023-10-05 蚂蚁区块链科技(上海)有限公司 Data processing method and apparatus, and electronic device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369144A (en) * 2020-03-04 2020-07-03 浙江大学 Intelligent energy scheduling system and method based on fog calculation and block chain
CN111708627A (en) * 2020-06-22 2020-09-25 中国平安财产保险股份有限公司 Task scheduling method and device based on distributed scheduling framework
CN111985851A (en) * 2020-09-07 2020-11-24 中国银行股份有限公司 Bank outlet resource scheduling method and device
CN112667748A (en) * 2021-03-16 2021-04-16 杭州链城数字科技有限公司 Block chain all-in-one machine facing audit service, data processing method and device
CN114048009A (en) * 2021-09-30 2022-02-15 网络通信与安全紫金山实验室 Scheduling decision method and system based on block chain and oriented to cloud network scene
CN114301928A (en) * 2021-11-29 2022-04-08 之江实验室 SGX-based chain uplink and downlink mixed consensus method and system
WO2023185044A1 (en) * 2022-03-31 2023-10-05 蚂蚁区块链科技(上海)有限公司 Data processing method and apparatus, and electronic device and storage medium
CN114896637A (en) * 2022-04-29 2022-08-12 蚂蚁区块链科技(上海)有限公司 Data processing method and device, electronic equipment and storage medium
CN115328645A (en) * 2022-06-27 2022-11-11 国网冀北电力有限公司信息通信分公司 Computing task scheduling method, computing task scheduling device and electronic equipment
CN115511595A (en) * 2022-08-29 2022-12-23 蚂蚁区块链科技(上海)有限公司 Service execution method and device based on block chain
CN116643873A (en) * 2022-12-26 2023-08-25 中移动信息技术有限公司 Method, device, system, equipment and storage medium for scheduling computing power resources
CN116502283A (en) * 2023-04-11 2023-07-28 杭州趣链科技有限公司 Privacy data processing method and device
CN116579788A (en) * 2023-05-15 2023-08-11 深圳市怡通数科创新发展有限公司 Supply chain management method, system, equipment and storage medium based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Smart Contract and Blockchain Based Contract Management System;Svetislav Simić;7th Conference on the Engineering of Computer Based Systems;全文 *
基于区块链的数据管理设计模式;姚浩男;卢清华;张卫山;刘越;;计算机系统应用(07);全文 *

Also Published As

Publication number Publication date
CN117348999A (en) 2024-01-05

Similar Documents

Publication Publication Date Title
CN111756550B (en) Block chain consensus method and device
CN110163417B (en) Traffic prediction method, device and equipment
CN108628688B (en) Message processing method, device and equipment
CN109391680B (en) Timed task data processing method, device and system
CN107479868B (en) Interface loading method, device and equipment
CN116225669B (en) Task execution method and device, storage medium and electronic equipment
CN116305298B (en) Method and device for managing computing power resources, storage medium and electronic equipment
CN117348999B (en) Service execution system and service execution method
CN115543945B (en) Model compression method and device, storage medium and electronic equipment
CN110874322B (en) Test method and test server for application program
CN108769152B (en) Service refresh policy registration method, service refresh request method, device and equipment
CN111443997B (en) Data anomaly identification method and device
CN114201086B (en) Information display method and device
CN107645541B (en) Data storage method and device and server
CN110502551A (en) Data read-write method, system and infrastructure component
CN117407124B (en) Service execution method based on constructed data arrangement strategy generation model
CN116109008B (en) Method and device for executing service, storage medium and electronic equipment
CN116996397B (en) Network packet loss optimization method and device, storage medium and electronic equipment
CN117118523B (en) Information transmission system, method and device, storage medium and electronic equipment
CN117592102A (en) Service execution method, device, equipment and storage medium
CN117009729B (en) Data processing method and device based on softmax
CN117591217A (en) Information display method, device, equipment and storage medium
CN117591703A (en) Graph data optimization method and device, storage medium and electronic equipment
CN117294715A (en) End-edge cloud scheduling optimization method, system and device
CN116319774A (en) Request distribution method, device, 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