WO2020088098A1 - Block chain-based quality data processing method and apparatus - Google Patents

Block chain-based quality data processing method and apparatus Download PDF

Info

Publication number
WO2020088098A1
WO2020088098A1 PCT/CN2019/104673 CN2019104673W WO2020088098A1 WO 2020088098 A1 WO2020088098 A1 WO 2020088098A1 CN 2019104673 W CN2019104673 W CN 2019104673W WO 2020088098 A1 WO2020088098 A1 WO 2020088098A1
Authority
WO
WIPO (PCT)
Prior art keywords
quality data
content
quality
blockchain
data block
Prior art date
Application number
PCT/CN2019/104673
Other languages
French (fr)
Chinese (zh)
Inventor
俞敬
黄小微
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020088098A1 publication Critical patent/WO2020088098A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management

Definitions

  • This specification relates to the field of data processing technology, and in particular, to a blockchain-based quality data processing method and device.
  • a distributed business system is a pipelined business system composed of multiple business subsystems.
  • the quality data generated by multiple service subsystems based on the corresponding service processing is usually independently stored in each subsystem device, and there is no correlation between them.
  • the acquisition and analysis of quality data rely on a single business subsystem. Since the quality data generated by each business subsystem is not related, it is necessary to independently analyze and judge the quality data generated by each business subsystem. For example, when a distributed business system conducts pipelined business operations, it is common for multiple business subsystems to report business failures. In existing solutions, it is usually necessary to report all business subsystems that report business failures. The process of business processing can be investigated to locate the cause of the failure, which takes time and effort.
  • this specification provides a blockchain-based quality data processing method, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are blocks
  • the nodes of the chain the method includes:
  • the quality data block includes quality data content and call relationship content
  • the quality data content is generated based on the quality data
  • the call relationship content is used To represent the calling relationship between the subsystem node and other subsystems in the distributed service system
  • the quality data block is sent to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  • the quality data block further includes a service identification code, which is used to identify the service on which the above-mentioned quality data content and the calling relationship content are based.
  • the quality data block further includes time content to indicate the generation time of the quality data content.
  • the encapsulating the quality data into a quality data block with a preset format includes:
  • the performing data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain prediction data of quality development trends, The prediction data is packaged as the quality data content into quality data blocks conforming to a preset format.
  • the blockchain is an alliance chain
  • the subsystem nodes are alliance member nodes.
  • This specification also provides a blockchain-based quality data processing method applied to a distributed business system that includes multiple subsystems, and the multiple subsystems are nodes of the blockchain.
  • the method includes:
  • the target quality data block includes quality data content and call relationship content, and the quality data content is based on quality data generated by the target subsystem performing business processing Generated, the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
  • the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
  • this specification provides a blockchain-based quality data processing device, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain.
  • the device includes:
  • a packaging unit which encapsulates the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call The relationship content is used to represent the calling relationship between the subsystem node and other subsystems in the distributed service system;
  • the sending unit sends the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  • the quality data block further includes a service identification code, which is used to identify the service on which the above-mentioned quality data content and the calling relationship content are based.
  • the quality data block further includes time content to indicate the generation time of the quality data content.
  • the packaging unit More preferably, the packaging unit:
  • the performing data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain prediction data of quality development trends, The prediction data is packaged as the quality data content into quality data blocks conforming to a preset format.
  • the blockchain is an alliance chain
  • the subsystem nodes are alliance member nodes.
  • this specification also provides a blockchain-based quality data processing device, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain.
  • the device includes:
  • An acquiring unit acquiring a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is generated based on business processing of the target subsystem Generated quality data, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
  • the service processing unit performs data processing based on the target quality data block to complete the target quality service processing logic.
  • the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
  • This specification also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the execution quality data block is executed by the uploading end The steps described in the above blockchain-based quality data processing method.
  • This specification also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the execution quality data block is executed by the application side The steps described in the above blockchain-based quality data processing method.
  • the quality data processing method and device of the distributed business system based on blockchain set the business subsystem node that can generate quality data as the node of the blockchain, based on the blockchain technology Distributed database storage mechanism, quality data is recorded in all nodes in a decentralized manner, and is maintained by all participants ’nodes. Each subsystem node can obtain the full amount of quality data, and all data records can be traced back, which is convenient for quality management.
  • the quality data blocks provided by each subsystem node will not be tampered with after being provided, thereby ensuring the authenticity and effectiveness of quality management or quality monitoring based on the quality data blocks Further, since the quality data blocks all include the calling relationship content, the calling relationship content is used to represent the calling relationship between the subsystem node and the other subsystems in the distributed business system, which facilitates the global Analysis, management and monitoring of quality data.
  • FIG. 1 is a flowchart of a blockchain-based quality data processing method performed by a quality data block uploader shown in an embodiment provided by this specification;
  • FIG. 2 is a schematic diagram of a calling relationship of a subsystem in a distributed service system provided by another embodiment of this specification;
  • FIG. 3 is a schematic diagram of quality data blocks in a block provided by an embodiment provided by this specification.
  • FIG. 4 is a flowchart of a blockchain-based quality data processing method executed by a quality data block application shown in an embodiment provided by this specification;
  • FIG. 5 is a schematic diagram of a blockchain-based quality data processing device for uploading a quality data block shown in an embodiment provided by this specification;
  • FIG. 6 is a schematic diagram of a blockchain-based quality data processing device for a quality data block application end shown in an embodiment provided by this specification;
  • FIG. 7 is a hardware configuration diagram of an embodiment of a blockchain-based quality data processing device provided in this specification.
  • a distributed business system usually refers to a multi-transaction (or multi-business) system composed of multiple independent services or application computers, such as an e-commerce platform that includes payment services.
  • each transaction or business system is called a business subsystem or subsystem.
  • the quality data generated by multiple service subsystems based on the corresponding service processing is usually independently stored in each subsystem device, and there is no correlation between them.
  • the acquisition and analysis of quality data all rely on a single business subsystem. Since the quality data generated on each business subsystem device is not related, only the quality data generated by each business subsystem can be analyzed and judged independently.
  • an exemplary embodiment of this specification provides a blockchain-based quality data processing method, which is applied to a distributed business system including multiple subsystems.
  • quality data refers to the quality characteristic value of a certain quality index.
  • the narrow sense of quality data is mainly data related to product quality, such as the number of defective products, the pass rate, the through rate, and the repair rate.
  • Generalized quality data refers to data that can reflect the quality of various work, such as quality cost loss, production batch, inventory backlog, and invalid operation time.
  • the quality data described in each embodiment of this specification refers to the generalized quality data, in addition to including traditional quality data such as defects / faults, it is applied to business operations performed on the line of computers or other terminal devices (such as e-commerce, online Music, online games, social communications, etc.), the above quality data also includes: business scenario request data used to construct use-case scenarios (which can be obtained by recording and capturing services that actually occur online); used to monitor various errors in use Data obtained from information, business trends, server conditions (such as CPU usage), etc .; various related data for verification, model data such as fund flow models, request models; various kinds of information for emergency changes, emergency plan information Wait.
  • the quality data described in this specification is not limited to this, and any evaluation data, description data, model data, etc. generated based on business processing can be applied as the quality data described in this specification.
  • the blockchain described in the embodiments of this specification may specifically refer to a P2P network system with distributed data storage structure reached by each node through a consensus mechanism.
  • the latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS or PBFT, etc.), all or part of the data of the node is reached Full backup.
  • the specific consensus mechanism such as POW, POS, DPOS or PBFT, etc.
  • the blockchain using Pow consensus requires at least the entire network Only an attack of 51% of the computing power is possible to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and preventing attack and tampering comparable to other centralized database systems. It can be seen that in the embodiments provided in this specification, the data included in the distributed database of the blockchain will not be attacked or tampered, thereby ensuring the authenticity of quality data, the fairness of quality data management or monitoring Sex.
  • the "blockchain node” described in this specification may be either a blockchain node that stores the full amount of data in the distributed database of the blockchain, or a client connected to the above-mentioned blockchain node. No limitation here. Multiple subsystem devices join the blockchain by following the installation of the corresponding blockchain node protocol and running the node protocol program as nodes of the blockchain.
  • the new node device is started and connected to the network
  • block header first can be used ( header header first download method, first download the block headers of all existing blocks from neighboring nodes, and after the block headers are downloaded, the new node can download blocks of different heights from multiple neighboring nodes in parallel, greatly improving Synchronization speed of existing block data;
  • block data verification is performed.
  • the above block data verification process includes block format verification (including version and time stamp), block header hash value verification, and transaction verification for all transactions. Verification of rules, etc.
  • the above verification of all transactions is based on transaction verification rules, including such as whether the format of the transaction is correct, whether the Merkle Root generated according to the data structure of the transaction is correct, etc., to verify the existing block data Correctness
  • the blockchain adopts distributed data storage of each node.
  • Add multiple business subsystem nodes involved in quality management or monitoring, and functional nodes such as quality management nodes and quality monitoring nodes to the above-mentioned blockchain network, and use the blockchain consensus mechanism to effectively prevent
  • the quality data has been tampered with or forged to provide reliable data guarantee for the use of big data of quality data, or quality management, supervision or prediction based on quality data.
  • the transaction described in this specification refers to a piece of data that a user creates through a node or client of the blockchain and needs to be finally released to the distributed database of the blockchain.
  • the narrow sense of the transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain.
  • the generalized transaction refers to a piece of business data released by the user to the blockchain with business intent; for example, the quality data released into the blockchain described in the above embodiments of this specification can be a transaction; Alternatively, the above quality data can be sorted according to a preset transaction data format, so as to be converted into a fixed format quality data block.
  • “transactions” are sometimes used to simplify the replacement of the quality data or quality data blocks described in the above embodiments.
  • Step 102 Acquire quality data based on the service processing of the subsystem node.
  • the subsystem nodes should obtain corresponding quality data based on their business processing.
  • their quality data includes but is not limited to various business-based Processing of evaluation data, description data, model data, etc.
  • the above-mentioned acquisition of quality data may be obtained according to a preset duration or a preset business.
  • the quality data generated by the subsystem node is acquired every preset time period to upload it to the blockchain; or, each time the subsystem node completes a preset business item, such as each payment subsystem completes
  • each time the payment and order generation subsystem generates an order, etc. it obtains the quality data it generates to upload it to the blockchain.
  • the execution body of the quality data processing method at the upload end of the quality data block described in this embodiment may be a subsystem node or a quality data processing platform and other terminal devices that are communicatively connected to the subsystem node chain ,
  • the other terminal device is also added to the above-mentioned blockchain network as a node of the blockchain; even the main body of the execution of the different steps of the mass number processing method described in this embodiment may be a different node device in the blockchain .
  • Step 104 Encapsulate the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call relationship The content is used to represent the calling relationship between the subsystem node and other subsystems in the distributed service system.
  • the transactions submitted to the blockchain usually have a preset format.
  • the quality data blocks submitted to the blockchain in the form of transactions should also conform to the preset format.
  • the above-mentioned quality data block includes at least quality data content and call relation content, wherein the quality data content is generated based on the above-mentioned quality data, for example, according to the type of quality data, such as evaluation data, description data, or model data, the The quality data generated by the subsystem nodes are respectively filled into the corresponding quality data classifications of the above-mentioned quality data blocks with a preset format.
  • each subsystem in a distributed business system usually needs to cooperate to complete the total business according to a preset business process.
  • the commodity display subsystem, the order generation subsystem, and the financial payment subsystem User identity information management subsystem, logistics subsystem and other business subsystem nodes need to follow a preset process to collaboratively complete a commodity purchase business, so the total business based on the distributed business system between the above subsystems (such as the above e-commerce The commodity purchase business of the platform system) has a specific calling relationship.
  • subsystems A, B, and C are the subsystems of the distributed business system.
  • subsystem A The calling relationship between B and C is that subsystem B calls subsystem A, subsystem C calls subsystem B, and finally the business processing result is output from subsystem C.
  • the calling relationship of each subsystem in the distributed business system is not limited to the single-chain calling relationship shown in FIG. 2, one-to-many, many-to-one calling relationship is also commonly used, for example, in the above-mentioned commodity purchase business .
  • the order generation subsystem needs to call the commodity display subsystem
  • the financial payment subsystem needs to call the order generation subsystem, user identity information management subsystem, and logistics subsystem.
  • This specification does not limit the specific expression form of the above call relationship, for example, it can be the RPC call mode of the distributed service system.
  • the quality data block submitted by the above subsystem node in addition to containing the quality data generated by the subsystem node, should also include the above The calling relationship between the subsystem node and other subsystem nodes in the distributed service system.
  • the above-mentioned quality data block further includes a service identification code, which is used to identify the business based on the above-mentioned quality data content and the calling relationship content.
  • the quality data block generated based on the quality data generated by each business subsystem may include a business identification number such as the serial number or order number of the business, so as to obtain relevant information in the business Quality data, and determine the calling relationship of each subsystem in the business.
  • the quality data block further includes time content, which is used to indicate the generation time of the quality data content, so as to facilitate quality analysis or monitoring according to the quality data block.
  • FIG. 3 illustrates a schematic diagram of the data content format of the quality data block provided by an embodiment of the present specification.
  • each subsystem node may adopt the quality of the unified data content format data block.
  • the distributed service system may be provided with a quality data processing subsystem, which is responsible for collecting various types of original quality data generated by each service subsystem.
  • the original quality data may be derived from the above Databases or logs of various business subsystems.
  • the step of encapsulating the quality data into a quality data block with a preset format in step 104 may specifically include the following steps:
  • the above filtering process includes data normalization, deduplication, and feature value extraction.
  • the above preset data model can be customized according to the type of quality data. ; And then perform data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format.
  • the above-mentioned data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format may not only include converting the filtered quality data into a quality data block having a preset data format and content format, but also Including the further calculation of the filtered quality data to generate new quality data, such as the calculation of the filtered quality data based on the big data algorithm to obtain the prediction data of the quality development trend, the above prediction data alone as the quality data content or Together with the filtered quality data, it is encapsulated as quality data content into a quality data block conforming to a preset format.
  • the prediction data of the above quality development trend can be used as the basis for evaluating the business processing status trend of the corresponding subsystem.
  • the monitoring system or other management system of the distributed business system serves as a node on the blockchain. After obtaining the prediction data of the quality development trend , Can make corresponding decisions in advance based on the predicted data.
  • Step 106 Send the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  • the uploaded private data blocks should be electronically signed using the private key of the above service subsystem, so as to ensure that the contents of the above quality data blocks will not be maliciously tampered with by other terminals or nodes.
  • any organization uses the above-mentioned quality data blocks for business processing, it should first use the public key of the corresponding business subsystem to verify the above-mentioned digital signature. After passing the verification, the above-mentioned quality data blocks can be regarded as valid content.
  • the detailed process of making the quality data block included in the distributed database of the blockchain after consensus verification in the above embodiment can be specifically set according to the consensus mechanism and verification rules of the blockchain .
  • the above verification process of the quality data block includes: the nodes of the blockchain obtain the above quality data blocks from neighboring nodes, and verify the above quality data blocks based on the verification rules of the blockchain, and after the verification is passed The quality data block continues to be broadcast to neighboring nodes, so that the quality data block is obtained by nodes on the blockchain.
  • the above verification includes but is not limited to: verification of the data format of the quality data block, verification of the calling relationship included in the quality data block, verification of the content of quality data contained in the quality data block, and the like.
  • the above verification of the call relationship contained in the quality data block refers to the verification of the call relationship contained in the quality data block Whether the quality data block generated by the called subsystem in has been obtained and verified by the node on the blockchain, and if it is, it is verified.
  • the verified quality data blocks will then be included in the distributed database of the blockchain based on the consensus mechanism of the blockchain, so that the blockchain will be based on the subsystems of the distributed business system.
  • the call relationship establishes the corresponding sequence of quality data blocks, which not only ensures that the quality data is accurate and will not be tampered with, but also establishes the associated call relationship of each quality data block, which facilitates the associated analysis of the quality data of the distributed business system. For example, based on the calling relationship shown in FIG. 2, the sequence of quality data blocks shown in FIG. 3 is generated within the block of the blockchain.
  • the verification of the quality data content contained in the quality data block may include: verification of the data format of the quality data content, verification of the electronic signature of the quality data block, etc., to determine that the above-mentioned quality data content is indeed generated for the corresponding subsystem node The quality data is not forged by other nodes.
  • the above-mentioned consensus on the quality data block and the process of being included in the distributed database of the blockchain can be based on the consensus mechanism followed by the blockchain. Generally speaking, it includes the following processes:
  • the above-mentioned quality data block is added to the candidate block;
  • the consensus accounting node broadcasts the candidate block to the nodes of the blockchain
  • the candidate block After the candidate block passes the verification and approval of the predetermined number of nodes of the blockchain, the candidate block is regarded as the latest block and is added to the distributed database of the blockchain.
  • the node with accounting authority refers to a node with authority to generate candidate blocks, which may include the subsystem node, quality data monitoring node, management node, and other nodes described in this specification.
  • a consensus accounting node can be determined from the nodes that have accounting authority for the candidate block.
  • the consensus mechanism can include a proof of work mechanism (PoW) or a proof of rights mechanism ( PoS), or share authorization certification mechanism (DPoS), etc.
  • PoS or DPoS consensus mechanism is similar to PoW, and both belong to the consensus algorithm commonly used in the public blockchain to confirm the consensus accounting node.
  • the embodiments provided in this specification may also use the alliance chain architecture to construct the blockchain.
  • the various subsystems of the distributed business system, the above-mentioned quality data processing subsystem, the quality data monitoring terminal, or the management terminal can be used as pre-selected nodes of the alliance chain to participate in the block accounting.
  • the consensus process of the alliance chain is also controlled by the pre-selected nodes. When there are more than a set number of nodes (such as 2/3) on the network to confirm a block, the transactions or data recorded in the block will be confirmed by the entire network.
  • the candidate block is stored as the latest block to the distributed database of the blockchain to complete the quality data blocks generated by the above business subsystems Deposit certificate.
  • the distributed storage backup mechanism of the blockchain ensures that it is difficult for any node to tamper with the data verified by consensus, thus providing evidence for the quality data content and calling relationship content contained in the quality data block, based on each business subsystem
  • the quality data content generated by the node and the calling relationship based on the nodes of each business subsystem, any node on the blockchain can perform the corresponding target quality business processing.
  • the quality data blocks shown in this manual are included in the block of the blockchain in the form of transactions.
  • the above-mentioned quality data blocks established according to the calling relationship of each subsystem are only It means that the above-mentioned quality data block can be regarded as data with time series or logical sequence in terms of the calling relationship contained in the quality data block, and it is not a limitation on the transaction organization form of the above-mentioned quality data block within the block.
  • the blocks can be organized in the form of commonly used Merkel trees, and the final Merkel roots are generated and stored in the block headers of the above blocks to facilitate Merkel verification of the contents of any quality data blocks.
  • Yet another exemplary embodiment of this specification provides a method for the application end of the quality data block to apply the above quality data block stored in the blockchain distributed database to complete the target quality business processing logic, as shown in FIG. 4, Methods include:
  • Step 402 Obtain a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is generated based on business processing by the target subsystem The quality data is generated, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system.
  • the target quality data block described in this embodiment is a quality data block related to the target quality service. Regarding the content of the quality data block and the process of the quality data block being verified by consensus, it has been analyzed in detail in the foregoing embodiments and will not be repeated here.
  • Step 404 Perform data processing based on the target quality data block to complete target quality service processing logic.
  • the above target quality business processing logic is the business processing logic related to the quality data content in the quality data block and the application of the calling relationship.
  • the above target quality business processing logic includes quality data analysis based on the quality data block, Processing logic such as quality fault monitoring and positioning, and recording and playback of related subsystem business processing processes.
  • the quality inspection agency can be added to the blockchain network as a node of the above-mentioned blockchain, so that the full quality data block data in the distributed database of the blockchain can be backed up.
  • the full-quality data block data is generated by the business subsystems A, B, and C in the distributed business system shown in FIG. 2 and is distributed on the blockchain based on the calling relationships of the subsystems A, B, and C.
  • the quality data block shown in Figure 3 is generated in the distributed database.
  • the monitoring system monitors and learns that subsystems A, B, and C all generate fault data or issue an alarm prompt.
  • the above-mentioned specific process may be that the monitoring system, as a node of the blockchain, can obtain the quality data generated by the service identification code, subsystems A, B, and C of the total service from the distributed database of the blockchain at any time.
  • the content and the quality data block of the call relationship are used as the target quality data block, and the relevant quality indicators in the quality data content of the target quality data block are monitored to know whether the subsystems A, B, and C are malfunctioning.
  • the traditional solution is to detect and analyze the business processing processes of subsystems A, B, and C to find the root cause of the failure.
  • the monitoring institution node can know based on the calling relationship of the quality data blocks obtained from the blockchain, the calling relationship corresponding to the failed quality data is: subsystem B calls subsystem A, subsystem C calls Subsystem B; based on the working logic of the distributed business system-the fault errors of the downstream subsystem will be reflected in the upstream subsystem, and the monitoring agency node can directly determine the failure of the most downstream system A.
  • the quality service processing logic based on the quality data block shown in this embodiment and fault location has greater convenience.
  • the embodiments of the present specification also provide a blockchain-based public transportation data processing device.
  • the device can be implemented by software, or by hardware or a combination of hardware and software.
  • software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions into the memory through the CPU (Central Processing Unit) of the device where it is located.
  • CPU Central Processing Unit
  • the device where the network risk service implementation device is located usually also includes other hardware such as chips for wireless signal transmission and reception, and / or for implementation Network communication function boards and other hardware.
  • FIG. 5 shows a blockchain-based quality data processing device 50, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain.
  • the device 50 includes:
  • the obtaining unit 502 obtains the quality data generated by the subsystem node based on its business processing
  • the encapsulating unit 504 encapsulates the quality data into a quality data block with a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, the The call relationship content is used to represent the call relationship between the subsystem node and other subsystems in the distributed service system;
  • the sending unit 506 sends the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  • the quality data block further includes a service identification code, used to identify the service on which the content of the quality data and the content of the call relationship are based.
  • the quality data block further includes time content to indicate the generation time of the quality data content.
  • packaging unit 504 the packaging unit 504:
  • the data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain quality The prediction data of the development trend, the prediction data is packaged as the quality data content into a quality data block conforming to a preset format.
  • the blockchain is an alliance chain
  • the subsystem nodes are alliance member nodes.
  • FIG. 6 shows a blockchain-based quality data processing device 60, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain.
  • the device 60 includes:
  • the obtaining unit 602 obtains a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is based on business processing by the target subsystem The generated quality data is generated, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
  • the service processing unit 604 performs data processing based on the target quality data block to complete the target quality service processing logic.
  • the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
  • the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical modules, that is, may be located One place, or can be distributed to multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the objectives of the solutions in this specification. Those of ordinary skill in the art can understand and implement without paying creative labor.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
  • the embodiments of the present specification also provide a computer device, which includes a memory and a processor.
  • a computer program that can be executed by the processor is stored on the memory; when the processor runs the stored computer program, it executes the quality data processing method based on the blockchain executed by the sending end in the embodiment of the specification to generate the quality data block generation transmitter Various steps.
  • the various steps of the blockchain-based quality data processing method performed by the sender based on the quality data block generation please refer to the previous content, and it will not be repeated.
  • the embodiments of the present specification also provide a computer device, which includes a memory and a processor.
  • the memory stores a computer program that can be executed by the processor; when the processor runs the stored computer program, it executes each of the blockchain-based quality data processing methods executed by the quality data block application terminal in the embodiments of the present specification step.
  • the processor runs the stored computer program, it executes each of the blockchain-based quality data processing methods executed by the quality data block application terminal in the embodiments of the present specification step.
  • the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media 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 technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technologies
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disc
  • the embodiments of the present specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code .
  • computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Educational Administration (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Finance (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

One or more embodiments of the present description provide a block chain-based quality data processing method and apparatus, applied to a distributed service system comprising a plurality of subsystems, the plurality of subsystems being nodes of a block chain. Said method comprises: obtaining quality data generated by a subsystem node on the basis of service processing thereof; packaging the quality data into a quality data block having a preset format, the quality data block comprising quality data content and call relationship content, the quality data content being generated on the basis of the quality data, and the call relationship content being used to represent a call relationship between the subsystem node and other subsystems in the distributed service system; and sending the quality data block to the block chain, so that the quality data block is recorded in a distributed database of the block chain after being subjected to consensus verification.

Description

一种基于区块链的质量数据处理方法和装置Method and device for processing quality data based on blockchain 技术领域Technical field
本说明书涉及数据处理技术领域,尤其涉及一种基于区块链的质量数据处理方法和装置。This specification relates to the field of data processing technology, and in particular, to a blockchain-based quality data processing method and device.
背景技术Background technique
分布式业务***是由多个业务子***组成的流水型业务***。多个业务子***基于相应的业务处理所产生的质量数据通常分别独立存储在各个子***设备内,且彼此之间无相互关联。相应地,对质量数据的获取和分析均依托于单个业务子***进行,由于各个业务子***产生的质量数据并无关联关系,需对各个业务子***产生的质量数据独立分析判断。例如,在分布式业务***进行流水式业务作业时,通常出现多个业务子***报出业务故障的情况,在现有的解决方案中,通常需对报出业务故障的各个业务子***的所有业务处理过程进行排查方能定位故障原因,耗时耗力。A distributed business system is a pipelined business system composed of multiple business subsystems. The quality data generated by multiple service subsystems based on the corresponding service processing is usually independently stored in each subsystem device, and there is no correlation between them. Correspondingly, the acquisition and analysis of quality data rely on a single business subsystem. Since the quality data generated by each business subsystem is not related, it is necessary to independently analyze and judge the quality data generated by each business subsystem. For example, when a distributed business system conducts pipelined business operations, it is common for multiple business subsystems to report business failures. In existing solutions, it is usually necessary to report all business subsystems that report business failures. The process of business processing can be investigated to locate the cause of the failure, which takes time and effort.
发明内容Summary of the invention
针对以上提出的质量数据处理流程的现状及问题,本说明书提供了一种基于区块链的质量数据处理方法,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述方法包括:In response to the status quo and problems of the quality data processing process proposed above, this specification provides a blockchain-based quality data processing method, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are blocks The nodes of the chain, the method includes:
获得子***节点基于其业务处理产生的质量数据;Obtain the quality data generated by the subsystem node based on its business processing;
将所述质量数据封装成具有预设格式的质量数据块,其中,所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系;Encapsulating the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call relationship content is used To represent the calling relationship between the subsystem node and other subsystems in the distributed service system;
将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。The quality data block is sent to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
更优的,所述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。More preferably, the quality data block further includes a service identification code, which is used to identify the service on which the above-mentioned quality data content and the calling relationship content are based.
更优的,所述质量数据块还包括时间内容,用以表示所述质量数据内容的生成时间。More preferably, the quality data block further includes time content to indicate the generation time of the quality data content.
更优的,所述将所述质量数据封装成具有预设格式的质量数据块,包括:More preferably, the encapsulating the quality data into a quality data block with a preset format includes:
使用预设的数据模型过滤所述质量数据;Filtering the quality data using a preset data model;
对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Perform data encapsulation calculation on the filtered quality data to generate a quality data block that conforms to a preset format.
更优的,所述对过滤后的质量数据进行数据计算,以生成符合预设格式的质量数据块,包括:基于大数据算法对获取的原始质量数据进行计算以得到质量发展趋势的预测数据,将所述预测数据作为所述质量数据内容封装成符合预设格式的质量数据块。More preferably, the performing data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain prediction data of quality development trends, The prediction data is packaged as the quality data content into quality data blocks conforming to a preset format.
更优的,所述区块链为联盟链,所述子***节点为联盟成员节点。More preferably, the blockchain is an alliance chain, and the subsystem nodes are alliance member nodes.
本说明书还提供了一种基于区块链的质量数据处理方法,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述方法包括:This specification also provides a blockchain-based quality data processing method applied to a distributed business system that includes multiple subsystems, and the multiple subsystems are nodes of the blockchain. The method includes:
从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系;Obtain a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is based on quality data generated by the target subsystem performing business processing Generated, the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。Perform data processing based on the target quality data block to complete the target quality business processing logic.
更优的,所述目标质量业务处理逻辑为基于所述目标质量块的质量数据内容和调用关系内容,判断所述目标子***是否出现故障。More preferably, the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
相应的,本说明书提供了一种基于区块链的质量数据处理装置,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置包括:Correspondingly, this specification provides a blockchain-based quality data processing device, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device includes:
获得单元,获得子***节点基于其业务处理产生的质量数据;Obtain unit to obtain the quality data generated by the subsystem node based on its business processing;
封装单元,将所述质量数据封装成具有预设格式的质量数据块,其中,所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系;A packaging unit, which encapsulates the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call The relationship content is used to represent the calling relationship between the subsystem node and other subsystems in the distributed service system;
发送单元,将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。The sending unit sends the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
更优的,所述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。More preferably, the quality data block further includes a service identification code, which is used to identify the service on which the above-mentioned quality data content and the calling relationship content are based.
更优的,所述质量数据块还包括时间内容,用以表示所述质量数据内容的生成时间。More preferably, the quality data block further includes time content to indicate the generation time of the quality data content.
更优的,所述封装单元:More preferably, the packaging unit:
使用预设的数据模型过滤所述质量数据;Filtering the quality data using a preset data model;
对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Perform data encapsulation calculation on the filtered quality data to generate a quality data block that conforms to a preset format.
更优的,所述对过滤后的质量数据进行数据计算,以生成符合预设格式的质量数据块,包括:基于大数据算法对获取的原始质量数据进行计算以得到质量发展趋势的预测数据,将所述预测数据作为所述质量数据内容封装成符合预设格式的质量数据块。More preferably, the performing data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain prediction data of quality development trends, The prediction data is packaged as the quality data content into quality data blocks conforming to a preset format.
更优的,所述区块链为联盟链,所述子***节点为联盟成员节点。More preferably, the blockchain is an alliance chain, and the subsystem nodes are alliance member nodes.
相应的,本说明书还提供了一种基于区块链的质量数据处理装置,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置包括:Correspondingly, this specification also provides a blockchain-based quality data processing device, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device includes:
获取单元,从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系;An acquiring unit, acquiring a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is generated based on business processing of the target subsystem Generated quality data, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
业务处理单元,基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。The service processing unit performs data processing based on the target quality data block to complete the target quality service processing logic.
更优的,所述目标质量业务处理逻辑为基于所述目标质量块的质量数据内容和调用关系内容,判断所述目标子***是否出现故障。More preferably, the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
本说明书还提供了一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行质量数据块上传端所执行的上述基于区块链的质量数据处理方法所述的步骤。This specification also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the execution quality data block is executed by the uploading end The steps described in the above blockchain-based quality data processing method.
本说明书还提供了一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行质量数据块应用端所执行的上述基于区块链的质量数据处理方法所述的步骤。This specification also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the execution quality data block is executed by the application side The steps described in the above blockchain-based quality data processing method.
由以上技术方案可见,本说明书提供的基于区块链的分布式业务***的质量数据处理方法及装置,将可生成质量数据的业务子***节点设置为区块链的节点,基于区块链技术的分布式数据库存储机制,质量数据被去中心化地记录在所有节点中,由所有参与方的节点共同维护,每个子***节点均可获知全量的质量数据,所有数据记录可回溯, 方便质量管理和监控;而且,基于区块链的共识机制,每个子***节点提供的质量数据块不会在提供后被篡改,从而保证了依托于质量数据块进行的质量管理或质量监控的真实性和有效性;进一步地,由于质量数据块均包括调用关系内容,该调用关系内容用以表示该子***节点与所述分布式业务***中其他子***的调用关系,方便在每个子***节点进行全局的质量数据的分析、管理和监控。It can be seen from the above technical solutions that the quality data processing method and device of the distributed business system based on blockchain provided in this specification set the business subsystem node that can generate quality data as the node of the blockchain, based on the blockchain technology Distributed database storage mechanism, quality data is recorded in all nodes in a decentralized manner, and is maintained by all participants ’nodes. Each subsystem node can obtain the full amount of quality data, and all data records can be traced back, which is convenient for quality management. And monitoring; and, based on the consensus mechanism of the blockchain, the quality data blocks provided by each subsystem node will not be tampered with after being provided, thereby ensuring the authenticity and effectiveness of quality management or quality monitoring based on the quality data blocks Further, since the quality data blocks all include the calling relationship content, the calling relationship content is used to represent the calling relationship between the subsystem node and the other subsystems in the distributed business system, which facilitates the global Analysis, management and monitoring of quality data.
附图说明BRIEF DESCRIPTION
图1为本说明书所提供的一实施例所示的质量数据块上传端所执行的基于区块链的质量数据处理方法的流程图;FIG. 1 is a flowchart of a blockchain-based quality data processing method performed by a quality data block uploader shown in an embodiment provided by this specification;
图2为本说明书又一实施例提供的分布式业务***中子***的调用关系示意图;2 is a schematic diagram of a calling relationship of a subsystem in a distributed service system provided by another embodiment of this specification;
图3为本说明书所提供的一实施例提供的区块中的质量数据块的示意图;3 is a schematic diagram of quality data blocks in a block provided by an embodiment provided by this specification;
图4为本说明书所提供的一实施例所示的质量数据块应用端所执行的基于区块链的质量数据处理方法的流程图;4 is a flowchart of a blockchain-based quality data processing method executed by a quality data block application shown in an embodiment provided by this specification;
图5为本说明书所提供的一实施例所示的质量数据块上传端的基于区块链的质量数据处理装置的示意图;FIG. 5 is a schematic diagram of a blockchain-based quality data processing device for uploading a quality data block shown in an embodiment provided by this specification;
图6为本说明书所提供的一实施例所示的质量数据块应用端的基于区块链的质量数据处理装置的示意图;6 is a schematic diagram of a blockchain-based quality data processing device for a quality data block application end shown in an embodiment provided by this specification;
图7为运行本说明书所提供的基于区块链的质量数据处理装置实施例的一种硬件结构图。FIG. 7 is a hardware configuration diagram of an embodiment of a blockchain-based quality data processing device provided in this specification.
具体实施方式detailed description
分布式业务***通常是指由多个独立的服务或应用计算机组成的多事务(或多业务)***,例如包含支付业务的电商平台等。在本说明书中将每个事务或业务***称为业务子***或子***。多个业务子***基于相应的业务处理所产生的质量数据通常分别独立存储在各个子***设备内,且彼此之间无相互关联。相应地,对质量数据的获取和分析均依托于单个业务子***进行,由于各个业务子***设备上产生的质量数据并无关联关系,只能对各个业务子***产生的质量数据独立分析判断。A distributed business system usually refers to a multi-transaction (or multi-business) system composed of multiple independent services or application computers, such as an e-commerce platform that includes payment services. In this specification, each transaction or business system is called a business subsystem or subsystem. The quality data generated by multiple service subsystems based on the corresponding service processing is usually independently stored in each subsystem device, and there is no correlation between them. Correspondingly, the acquisition and analysis of quality data all rely on a single business subsystem. Since the quality data generated on each business subsystem device is not related, only the quality data generated by each business subsystem can be analyzed and judged independently.
基于以上现有技术中存在的问题,如图1所示,本说明书一示意性实施例提供了一种基于区块链的质量数据处理方法,应用于包括多个子***的分布式业务***。本领域 的技术人员熟知,质量数据是指某质量指标的质量特性值。狭义的质量数据主要是产品质量相关的数据,如不良品数、合格率、直通率、返修率等。广义的质量数据指能反映各项工作质量的数据,如质量成本损失、生产批量、库存积压、无效作业时间等。其中,本说明书各个实施例所述的质量数据指的是广义的质量数据,除了包含缺陷/故障等传统的质量数据,应用于计算机或其他终端设备线上进行的业务作业(如电子商务、网上音乐、在线游戏、社交通信等),上述质量数据还包括:用于构建用例场景的业务场景请求数据(可通过线上真实发生的业务来录制抓取获得);用于监控使用的各种错误信息、业务趋势、服务器情况(如CPU使用率)等获得的数据;用于核对的各种关联数据,资金流模型、请求模型等模型数据;用于应急的各种变更类信息、应急预案信息等。当然,本说明书所述的质量数据不限于此,任何基于业务处理而产生的评价数据、描述数据、模型数据等均可作为本说明所述的质量数据而应用本说明书所提供的。Based on the above problems in the prior art, as shown in FIG. 1, an exemplary embodiment of this specification provides a blockchain-based quality data processing method, which is applied to a distributed business system including multiple subsystems. It is well known to those skilled in the art that quality data refers to the quality characteristic value of a certain quality index. The narrow sense of quality data is mainly data related to product quality, such as the number of defective products, the pass rate, the through rate, and the repair rate. Generalized quality data refers to data that can reflect the quality of various work, such as quality cost loss, production batch, inventory backlog, and invalid operation time. Among them, the quality data described in each embodiment of this specification refers to the generalized quality data, in addition to including traditional quality data such as defects / faults, it is applied to business operations performed on the line of computers or other terminal devices (such as e-commerce, online Music, online games, social communications, etc.), the above quality data also includes: business scenario request data used to construct use-case scenarios (which can be obtained by recording and capturing services that actually occur online); used to monitor various errors in use Data obtained from information, business trends, server conditions (such as CPU usage), etc .; various related data for verification, model data such as fund flow models, request models; various kinds of information for emergency changes, emergency plan information Wait. Of course, the quality data described in this specification is not limited to this, and any evaluation data, description data, model data, etc. generated based on business processing can be applied as the quality data described in this specification.
本实施例所述的分布式业务***中的多个子***作为区块链的节点。本说明书各实施例所述的区块链,具体可指一个各节点通过共识机制达成的、具有分布式数据存储结构的P2P网络***,该区块链内的数据分布在时间上相连的一个个“区块(block)”之内,后一区块包含前一区块的数据摘要,且根据具体的共识机制(如POW、POS、DPOS或PBFT等)的不同,达成全部或部分节点的数据全备份。本领域的技术人员熟知,由于区块链***在相应共识机制下运行,已收录至区块链数据库内的数据很难被任意的节点篡改,例如采用Pow共识的区块链,至少需要全网51%算力的攻击才有可能篡改已有数据,因此区块链***有着其他中心化数据库***所法比拟的保证数据安全、防攻击篡改的特性。由此可知,在本说明书所提供的实施例中,被收录至区块链的分布式数据库中的数据不会被攻击或篡改,从而保证了质量数据的真实性,质量数据管理或监控的公正性。Multiple subsystems in the distributed business system described in this embodiment serve as nodes of the blockchain. The blockchain described in the embodiments of this specification may specifically refer to a P2P network system with distributed data storage structure reached by each node through a consensus mechanism. Within the "block", the latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS or PBFT, etc.), all or part of the data of the node is reached Full backup. Those skilled in the art are familiar with the fact that since the blockchain system operates under the corresponding consensus mechanism, the data that has been included in the blockchain database is difficult to be tampered with by any node. For example, the blockchain using Pow consensus requires at least the entire network Only an attack of 51% of the computing power is possible to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and preventing attack and tampering comparable to other centralized database systems. It can be seen that in the embodiments provided in this specification, the data included in the distributed database of the blockchain will not be attacked or tampered, thereby ensuring the authenticity of quality data, the fairness of quality data management or monitoring Sex.
本实施例所述的分布式业务***中的多个子***可作为区块链的节点。本说明书所述的“区块链的节点”,既可以为保存有区块链的分布式数据库的全量数据的区块链节点,也可以为与上述区块链节点相连接的客户端,在此处不作限定。多个子***设备通过遵循相应的区块链节点协议、运行节点协议程序的安装来加入作该区块链,作为该区块链的节点。Multiple subsystems in the distributed business system described in this embodiment can serve as nodes of the blockchain. The "blockchain node" described in this specification may be either a blockchain node that stores the full amount of data in the distributed database of the blockchain, or a client connected to the above-mentioned blockchain node. No limitation here. Multiple subsystem devices join the blockchain by following the installation of the corresponding blockchain node protocol and running the node protocol program as nodes of the blockchain.
其中,新节点设备加入上述实施例所述的区块链网络的流程可简化如下:The process of adding a new node device to the blockchain network described in the above embodiment can be simplified as follows:
新节点设备启动并连接入网络;The new node device is started and connected to the network;
运行节点协议程序,通知其他节点,并向区块链网络上已有的节点发起区块数据的 同步请求;Run the node protocol program, notify other nodes, and initiate block data synchronization requests to existing nodes on the blockchain network;
从已有节点上同步现有的区块数据,上述已有节点通常为上述新节点的周围邻近的节点,进一步地,为提高初始区块数据下载的进程,可采用“区块报头先行”(header first)的下载方式,先行从邻节点下载所有现有区块的区块头,并在区块头下载完毕后,新节点可并行地从多个邻节点同时下载不同高度区间的区块,大大提升现有的区块数据的同步速度;Synchronize existing block data from existing nodes. The existing nodes are usually neighboring nodes around the new node. Further, in order to improve the process of initial block data download, "block header first" can be used ( header header first download method, first download the block headers of all existing blocks from neighboring nodes, and after the block headers are downloaded, the new node can download blocks of different heights from multiple neighboring nodes in parallel, greatly improving Synchronization speed of existing block data;
同步完成后,进行区块数据验证,上述区块数据验证过程包括区块的格式校验(包括版本、时间戳)、区块头哈希值的校验、及对所有交易(transaction)按交易验证规则进行校验等,上述对所有交易按交易验证规则进行校验,包括如交易的格式是否正确、按照交易的数据结构生成的Merkle Root是否正确等多项内容,以检验已有区块数据的正确性;After the synchronization is completed, block data verification is performed. The above block data verification process includes block format verification (including version and time stamp), block header hash value verification, and transaction verification for all transactions. Verification of rules, etc. The above verification of all transactions is based on transaction verification rules, including such as whether the format of the transaction is correct, whether the Merkle Root generated according to the data structure of the transaction is correct, etc., to verify the existing block data Correctness
上述区块数据检验完毕后,作为区块链节点参与到所述区块链运行中来,接收、验证、存储经区块链的节点共识产生的新的区块;业务***设备作为新的节点加入到区块链中后,还应将产生的质量数据上传至上述区块链中来。After the verification of the above block data, participate in the operation of the blockchain as a blockchain node, receive, verify, and store new blocks generated by the consensus of the blockchain node; the business system equipment acts as a new node After joining the blockchain, the quality data generated should also be uploaded to the blockchain.
区块链采用各节点的分布式数据存储,区块链中加入的节点越多,所述区块链存储的数据的备份越多,越能增加所述区块链上已存储数据的防攻击、防篡改的能力。将质量管理或监控中所涉及的多个业务子***节点、及质量管理节点、质量监控节点等功能性节点加入到上述的区块链网络中,利用区块链的共识机制,可有效地防止质量数据被篡改或伪造,为对质量数据的大数据使用、或基于质量数据的质量管理、监督或预测提供可靠的数据保障。The blockchain adopts distributed data storage of each node. The more nodes added to the blockchain, the more backups of the data stored by the blockchain, the more it can increase the protection against attacks of the data stored on the blockchain , The ability to prevent tampering. Add multiple business subsystem nodes involved in quality management or monitoring, and functional nodes such as quality management nodes and quality monitoring nodes to the above-mentioned blockchain network, and use the blockchain consensus mechanism to effectively prevent The quality data has been tampered with or forged to provide reliable data guarantee for the use of big data of quality data, or quality management, supervision or prediction based on quality data.
值得注意的是,在本说明书中所描述的交易(transaction),是指用户通过区块链的节点或客户端创建,并需要最终发布至区块链的分布式数据库中的一笔数据。其中,区块链中的交易,存在狭义的交易以及广义的交易之分。狭义的交易是指用户向区块链发布的一笔价值转移;例如,在传统的比特币区块链网络中,交易可以是用户在区块链中发起的一笔转账。而广义的交易是指用户向区块链发布的一笔具有业务意图的业务数据;例如,本说明书的上述实施例所述的发布至上述区块链中的质量数据即可以为一笔交易;或者将上述质量数据按照预设的交易数据格式整理,从而转化封装成固定格式的质量数据块。在本说明书中,有时使用“交易”简化代替上述实施例所述的质量数据或质量数据块。It is worth noting that the transaction described in this specification refers to a piece of data that a user creates through a node or client of the blockchain and needs to be finally released to the distributed database of the blockchain. Among them, there are transactions in the narrow sense and transactions in the broad sense in the blockchain. The narrow sense of the transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain. The generalized transaction refers to a piece of business data released by the user to the blockchain with business intent; for example, the quality data released into the blockchain described in the above embodiments of this specification can be a transaction; Alternatively, the above quality data can be sorted according to a preset transaction data format, so as to be converted into a fixed format quality data block. In this specification, "transactions" are sometimes used to simplify the replacement of the quality data or quality data blocks described in the above embodiments.
本实施例所提供的质量数据处理方法包括:The quality data processing method provided in this embodiment includes:
步骤102,基于所述子***节点的业务处理获取质量数据。Step 102: Acquire quality data based on the service processing of the subsystem node.
由于分布式业务***中的多个子***分别提供不同的服务或处理不同的业务,子***节点应基于其业务处理获得相应的质量数据,如上所述,其质量数据包括但不限于各种基于业务处理产生的评价数据、描述数据、模型数据等。Since multiple subsystems in the distributed business system provide different services or process different services, the subsystem nodes should obtain corresponding quality data based on their business processing. As mentioned above, their quality data includes but is not limited to various business-based Processing of evaluation data, description data, model data, etc.
为了便于对区块链上的质量数据进行应用或监控,上述对质量数据的获取可依预设的时长或预设的业务来获取。例如,每隔预设的时长获取该子***节点产生的质量数据以将其上传至区块链;或者,该子***节点每完成一项预设的业务项目,如支付子***每完成一笔支付、订单生成子***每生成一笔订单等,获取其产生的质量数据以将其上传至区块链。In order to facilitate the application or monitoring of the quality data on the blockchain, the above-mentioned acquisition of quality data may be obtained according to a preset duration or a preset business. For example, the quality data generated by the subsystem node is acquired every preset time period to upload it to the blockchain; or, each time the subsystem node completes a preset business item, such as each payment subsystem completes Each time the payment and order generation subsystem generates an order, etc., it obtains the quality data it generates to upload it to the blockchain.
值得注意的是,本实施例所述的质量数据块上传端的质量数据处理方法的执行主体,可以为子***节点,也可以是与子***节点链下通信连接的质量数据处理平台等其他终端设备,该其他终端设备也作为区块链的节点加入到上述区块链网络中;甚至本实施例所述的质量数处理方法的不同步骤的执行主体还可以是区块链中的不同的节点设备。It is worth noting that the execution body of the quality data processing method at the upload end of the quality data block described in this embodiment may be a subsystem node or a quality data processing platform and other terminal devices that are communicatively connected to the subsystem node chain , The other terminal device is also added to the above-mentioned blockchain network as a node of the blockchain; even the main body of the execution of the different steps of the mass number processing method described in this embodiment may be a different node device in the blockchain .
步骤104,将所述质量数据封装成具有预设格式的质量数据块,其中所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系。Step 104: Encapsulate the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call relationship The content is used to represent the calling relationship between the subsystem node and other subsystems in the distributed service system.
为便于区块链上其他节点的验证,提交至区块链的交易通常具有预设的格式。在本实施例中,以交易的形式被提交至区块链的质量数据块也应符合预设的格式。上述质量数据块至少包括质量数据内容和调用关系内容,其中,质量数据内容是基于上述的质量数据生成的,例如,可依据质量数据的类型,如评价数据、描述数据、或模型数据,将该子***节点产生的质量数据分别填写到上述具有预设格式的质量数据块的相应的质量数据分类中去。In order to facilitate the verification of other nodes on the blockchain, the transactions submitted to the blockchain usually have a preset format. In this embodiment, the quality data blocks submitted to the blockchain in the form of transactions should also conform to the preset format. The above-mentioned quality data block includes at least quality data content and call relation content, wherein the quality data content is generated based on the above-mentioned quality data, for example, according to the type of quality data, such as evaluation data, description data, or model data, the The quality data generated by the subsystem nodes are respectively filled into the corresponding quality data classifications of the above-mentioned quality data blocks with a preset format.
本领域的技术人员熟知,分布式业务***中各个子***通常需按照预设的业务流程协同完成总业务,如在电商平台***中,商品展示子***、订单生成子***、财务支付子***、用户身份信息管理子***、物流子***等业务子***节点需遵照预设的流程协同完成一笔商品购买业务,因此上述各个子***之间基于分布式业务***的总业务(如上述电商平台***的商品购买业务)具有特定的调用关系,如图2所示,子***A、B、 C分别为分布式业务***的子***,为完成分布式业务***的总业务,子***A、B、C的调用关系为子***B调用子***A,子***C调用子***B,最终从子***C输出业务处理结果。当然,分布式业务***内的各子***的调用关系不限于图2所示的单链式调用关系,一对多、多对一的调用关系方式也是常用的,例如在上述的商品购买业务中,订单生成子***需调用商品展示子***、财务支付子***需调用订单生成子***、用户身份信息管理子***和物流子***。本说明书并不限定上述调用关系的具体表现形式,例如可以是分布式业务***的RPC调用方式。Those skilled in the art are familiar with the fact that each subsystem in a distributed business system usually needs to cooperate to complete the total business according to a preset business process. For example, in the e-commerce platform system, the commodity display subsystem, the order generation subsystem, and the financial payment subsystem , User identity information management subsystem, logistics subsystem and other business subsystem nodes need to follow a preset process to collaboratively complete a commodity purchase business, so the total business based on the distributed business system between the above subsystems (such as the above e-commerce The commodity purchase business of the platform system) has a specific calling relationship. As shown in Figure 2, subsystems A, B, and C are the subsystems of the distributed business system. To complete the overall business of the distributed business system, subsystem A, The calling relationship between B and C is that subsystem B calls subsystem A, subsystem C calls subsystem B, and finally the business processing result is output from subsystem C. Of course, the calling relationship of each subsystem in the distributed business system is not limited to the single-chain calling relationship shown in FIG. 2, one-to-many, many-to-one calling relationship is also commonly used, for example, in the above-mentioned commodity purchase business , The order generation subsystem needs to call the commodity display subsystem, and the financial payment subsystem needs to call the order generation subsystem, user identity information management subsystem, and logistics subsystem. This specification does not limit the specific expression form of the above call relationship, for example, it can be the RPC call mode of the distributed service system.
在本实施例中,为便于对业务***中各子***产生的质量数据进行统筹关联分析,上述子***节点所提交的质量数据块,除包含该子***节点生成的质量数据,还应包括上述子***节点与上述分布式业务***中其他子***节点的调用关系。In this embodiment, in order to facilitate the overall correlation analysis of the quality data generated by each subsystem in the business system, the quality data block submitted by the above subsystem node, in addition to containing the quality data generated by the subsystem node, should also include the above The calling relationship between the subsystem node and other subsystem nodes in the distributed service system.
在一示出的实施方式中,对于依据业务项目而获取的质量数据,上述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。例如,在电商平台***中,基于各业务子***产生的质量数据生成的质量数据块中可包括该笔业务的流水号、或订单号等业务识别码,从而在该笔业务中,获取相关的质量数据、及确定该笔业务中的各子***的调用关系。In an illustrated embodiment, for the quality data acquired according to the business item, the above-mentioned quality data block further includes a service identification code, which is used to identify the business based on the above-mentioned quality data content and the calling relationship content. For example, in the e-commerce platform system, the quality data block generated based on the quality data generated by each business subsystem may include a business identification number such as the serial number or order number of the business, so as to obtain relevant information in the business Quality data, and determine the calling relationship of each subsystem in the business.
在一示出的实施方式中,上述质量数据块还包括时间内容,用以表示上述质量数据内容的生成时间,以方便根据质量数据块进行质量分析或监控。图3示意了本说明书一实施例提供的质量数据块的数据内容格式的示意图,为方便区块链中各节点对上述质量数据块的共识验证,各个子***节点可采用统一数据内容格式的质量数据块。In an illustrated embodiment, the quality data block further includes time content, which is used to indicate the generation time of the quality data content, so as to facilitate quality analysis or monitoring according to the quality data block. FIG. 3 illustrates a schematic diagram of the data content format of the quality data block provided by an embodiment of the present specification. To facilitate the consensus verification of the above-mentioned quality data block by each node in the blockchain, each subsystem node may adopt the quality of the unified data content format data block.
在又一示出的实施方式中,上述分布式业务***可设置一质量数据处理子***,该子***负责收集各业务子***产生的、各类型的原始质量数据,上述原始质量数据可来自上述各业务子***的数据库、或日志等。步骤104所述的将所述质量数据封装成具有预设格式的质量数据块,可以具体地包括以下步骤:In another embodiment shown, the distributed service system may be provided with a quality data processing subsystem, which is responsible for collecting various types of original quality data generated by each service subsystem. The original quality data may be derived from the above Databases or logs of various business subsystems. The step of encapsulating the quality data into a quality data block with a preset format in step 104 may specifically include the following steps:
使用预设的数据模型过滤所述获取到的原始质量数据,上述过滤过程包括数据归一化、去重、以及特征值提取等步骤,上述预设的数据模型可依据质量数据的类型而分别定制;进而对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Use a preset data model to filter the obtained raw quality data. The above filtering process includes data normalization, deduplication, and feature value extraction. The above preset data model can be customized according to the type of quality data. ; And then perform data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format.
上述对过滤后的质量数据进行数据封装计算、以生成符合预设格式的质量数据块,不仅可以包括将过滤后的质量数据转化为具有预设的数据格式和内容格式的质量数据块,还可以包括将过滤后的质量数据进行进一步数据计算以生成新的质量数据,如基于 大数据算法对过滤后的质量数据进行计算以得到质量发展趋势的预测数据,将上述预测数据单独作为质量数据内容或与过滤后的质量数据一起作为质量数据内容封装成符合预设格式的质量数据块。上述质量发展趋势的预测数据可作为评价相应的子***业务处理状态趋势的依据,分布式业务***的监控***或其他管理***作为区块链上的节点,在获得该质量发展趋势的预测数据后,可依据该预测数据提前作出相应的决策。The above-mentioned data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format may not only include converting the filtered quality data into a quality data block having a preset data format and content format, but also Including the further calculation of the filtered quality data to generate new quality data, such as the calculation of the filtered quality data based on the big data algorithm to obtain the prediction data of the quality development trend, the above prediction data alone as the quality data content or Together with the filtered quality data, it is encapsulated as quality data content into a quality data block conforming to a preset format. The prediction data of the above quality development trend can be used as the basis for evaluating the business processing status trend of the corresponding subsystem. The monitoring system or other management system of the distributed business system serves as a node on the blockchain. After obtaining the prediction data of the quality development trend , Can make corresponding decisions in advance based on the predicted data.
步骤106,将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。Step 106: Send the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
在本说明书提供的又一实施例中,当上述质量数据块的发送的执行主体为各个业务子***时,为保证各个质量数据块的合法有效性,防止其他节点冒充顶替上述各业务子***发送伪造的质量数据块,应使用上述业务子***的私钥对其所上传的质量数据块进行电子签名,从而保证了上述质量数据块的内容不会被其他终端或节点恶意冒充篡改。相应地,在任何机构使用上述质量数据块进行业务处理时,应首先使用相应业务子***的公钥对上述数字签名进行验签,验签通过后方可将上述质量数据块视为有效内容。In yet another embodiment provided by this specification, when the execution subject of sending the above-mentioned quality data blocks is each service subsystem, in order to ensure the legal validity of each quality data block, prevent other nodes from posing as substitutes for the above-mentioned service subsystems Forged quality data blocks, the uploaded private data blocks should be electronically signed using the private key of the above service subsystem, so as to ensure that the contents of the above quality data blocks will not be maliciously tampered with by other terminals or nodes. Correspondingly, when any organization uses the above-mentioned quality data blocks for business processing, it should first use the public key of the corresponding business subsystem to verify the above-mentioned digital signature. After passing the verification, the above-mentioned quality data blocks can be regarded as valid content.
上述实施例所述的使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中的详细过程,可依据所述区块链的共识机制及验证规则而具体设定。The detailed process of making the quality data block included in the distributed database of the blockchain after consensus verification in the above embodiment can be specifically set according to the consensus mechanism and verification rules of the blockchain .
上述对质量数据块的验证过程包括:所述区块链的节点从邻近的节点获取到上述质量数据块,并基于该区块链的验证规则对上述质量数据块进行验证,并在验证通过后将质量数据块继续广播至邻近的节点,以使该质量数据块被区块链上的节点获得。上述验证包括但不限于:对质量数据块的数据格式的验证、对质量数据块所包含的调用关系的验证、对质量数据块所包含的质量数据内容的验证等。The above verification process of the quality data block includes: the nodes of the blockchain obtain the above quality data blocks from neighboring nodes, and verify the above quality data blocks based on the verification rules of the blockchain, and after the verification is passed The quality data block continues to be broadcast to neighboring nodes, so that the quality data block is obtained by nodes on the blockchain. The above verification includes but is not limited to: verification of the data format of the quality data block, verification of the calling relationship included in the quality data block, verification of the content of quality data contained in the quality data block, and the like.
由于子***节点间的调用是随着分布式业务***的总业务的处理流程进行的,因此上述对质量数据块所包含的调用关系的验证是指,验证该质量数据块中所包含的调用关系中的被调用子***产生的质量数据块是否已经被区块链上的节点获得且验证,如果是,则通过验证。本领域的技术人员熟知,通过验证的质量数据块随后依据区块链的共识机制将被收录与区块链的分布式数据库中,从而在区块链上依据分布式业务***中各子***的调用关系建立起相应序列的质量数据块,从而既保证了质量数据准确无误不会被篡改,又建立起各质量数据块的关联调用关系,方便对分布式业务***的质量数据进行关联分析。例如,基于图2所示的调用关系,在区块链的区块内生成如图3所示的质量数据块序列。Since the call between the subsystem nodes is carried out along with the processing flow of the overall business of the distributed business system, the above verification of the call relationship contained in the quality data block refers to the verification of the call relationship contained in the quality data block Whether the quality data block generated by the called subsystem in has been obtained and verified by the node on the blockchain, and if it is, it is verified. Those skilled in the art are familiar with the fact that the verified quality data blocks will then be included in the distributed database of the blockchain based on the consensus mechanism of the blockchain, so that the blockchain will be based on the subsystems of the distributed business system. The call relationship establishes the corresponding sequence of quality data blocks, which not only ensures that the quality data is accurate and will not be tampered with, but also establishes the associated call relationship of each quality data block, which facilitates the associated analysis of the quality data of the distributed business system. For example, based on the calling relationship shown in FIG. 2, the sequence of quality data blocks shown in FIG. 3 is generated within the block of the blockchain.
对质量数据块所包含的质量数据内容的验证可包括:对质量数据内容的数据格式的验证、对质量数据块的电子签名的验证等,以确定上述质量数据内容确实为相应的子***节点产生的质量数据,并非其他节点伪造。The verification of the quality data content contained in the quality data block may include: verification of the data format of the quality data content, verification of the electronic signature of the quality data block, etc., to determine that the above-mentioned quality data content is indeed generated for the corresponding subsystem node The quality data is not forged by other nodes.
上述对质量数据块的共识及收录至区块链的分布式数据库的过程,可依据该区块链所遵循的共识机制而定,一般说来,包括以下过程:The above-mentioned consensus on the quality data block and the process of being included in the distributed database of the blockchain can be based on the consensus mechanism followed by the blockchain. Generally speaking, it includes the following processes:
该区块链中具有记账权限的节点在对上述质量数据块验证通过后,将该上述质量数据块加入到候选区块;After the node with accounting authority in the blockchain has passed the verification of the above-mentioned quality data block, the above-mentioned quality data block is added to the candidate block;
从所述具有记账权限的节点中确定满足所述区块链共识机制的共识记账节点;Determine, from the nodes with accounting authority, a consensus accounting node that satisfies the blockchain consensus mechanism;
所述共识记账节点向所述区块链的节点广播所述候选区块;The consensus accounting node broadcasts the candidate block to the nodes of the blockchain;
在所述候选区块通过所述区块链符合预设数量的节点的验证认可后,所述候选区块被视为最新区块,加入到所述区块链的分布式数据库中。After the candidate block passes the verification and approval of the predetermined number of nodes of the blockchain, the candidate block is regarded as the latest block and is added to the distributed database of the blockchain.
在上述的实施例中,具有记账权限的节点是指具有生成候选区块权限的节点,可包括本说明书所述的子***节点、质量数据的监控节点、管理节点及其他节点。根据所述区块链的共识机制,可从上述对所述候选区块具有记账权限的节点中确定共识记账节点,上述共识机制可以包括工作量证明机制(PoW)、或权利证明机制(PoS)、或股份授权证明机制(DPoS)等。PoS或DPoS共识机制与PoW类似,均属于公有区块链中确认共识记账节点所常选用的共识算法。为降低交易或数据的确认时间、提高交易吞吐量、满足对安全和性能的需求,本说明书所提供的实施例还可选用联盟链架构来构建该区块链。分布式业务***的各子***、上述的质量数据处理子***、质量数据监控端、或管理端等可作为该联盟链的预选的节点,参与区块的记账。联盟链的共识过程也由该预选的节点控制,当网络上有超过设定比例(如2/3)的节点确认一个区块,该区块记录的交易或数据将得到全网确认。In the above embodiment, the node with accounting authority refers to a node with authority to generate candidate blocks, which may include the subsystem node, quality data monitoring node, management node, and other nodes described in this specification. According to the consensus mechanism of the blockchain, a consensus accounting node can be determined from the nodes that have accounting authority for the candidate block. The consensus mechanism can include a proof of work mechanism (PoW) or a proof of rights mechanism ( PoS), or share authorization certification mechanism (DPoS), etc. PoS or DPoS consensus mechanism is similar to PoW, and both belong to the consensus algorithm commonly used in the public blockchain to confirm the consensus accounting node. In order to reduce the confirmation time of transactions or data, improve transaction throughput, and meet the requirements for security and performance, the embodiments provided in this specification may also use the alliance chain architecture to construct the blockchain. The various subsystems of the distributed business system, the above-mentioned quality data processing subsystem, the quality data monitoring terminal, or the management terminal can be used as pre-selected nodes of the alliance chain to participate in the block accounting. The consensus process of the alliance chain is also controlled by the pre-selected nodes. When there are more than a set number of nodes (such as 2/3) on the network to confirm a block, the transactions or data recorded in the block will be confirmed by the entire network.
响应于所述候选区块共识处理通过的共识结果,将所述候选区块作为最新区块存储至所述区块链的分布式数据库,以完成对上述各业务子***产生的质量数据块的存证。区块链的分布式存储备份的机制确保了任何节点很难对经共识验证后的数据进行篡改,从而为质量数据块包含的质量数据内容和调用关系内容提供了存证,基于各个业务子***节点产生的质量数据内容、和基于各业务子***节点的调用关系,该区块链上的任一节点均可进行相应的目标质量业务处理。In response to the consensus result passed by the candidate block consensus process, the candidate block is stored as the latest block to the distributed database of the blockchain to complete the quality data blocks generated by the above business subsystems Deposit certificate. The distributed storage backup mechanism of the blockchain ensures that it is difficult for any node to tamper with the data verified by consensus, thus providing evidence for the quality data content and calling relationship content contained in the quality data block, based on each business subsystem The quality data content generated by the node and the calling relationship based on the nodes of each business subsystem, any node on the blockchain can perform the corresponding target quality business processing.
值得注意的是,本说明书所示的质量数据块是以交易的形式被收录于区块链的区块 中的,上述的依据各子***的调用关系建立起相应序列的质量数据块,仅仅是指从质量数据块所包含的调用关系上可以将上述质量数据块看做具有时间序列或逻辑序列的数据,并非是对上述质量数据块在区块内的交易组织形式的限定,上述质量数据块在区块中可以以常用的默克尔树的形式被组织、并生成最终的默克尔根保存于上述区块的区块头,以方便对任何质量数据块的内容进行默克尔验证。It is worth noting that the quality data blocks shown in this manual are included in the block of the blockchain in the form of transactions. The above-mentioned quality data blocks established according to the calling relationship of each subsystem are only It means that the above-mentioned quality data block can be regarded as data with time series or logical sequence in terms of the calling relationship contained in the quality data block, and it is not a limitation on the transaction organization form of the above-mentioned quality data block within the block. The blocks can be organized in the form of commonly used Merkel trees, and the final Merkel roots are generated and stored in the block headers of the above blocks to facilitate Merkel verification of the contents of any quality data blocks.
本说明书又一示例性实施例提供了质量数据块的应用端对区块链分布式数据库内存储的上述质量数据块进行应用、以完成目标质量业务处理逻辑的方法,如图4所示,上述方法包括:Yet another exemplary embodiment of this specification provides a method for the application end of the quality data block to apply the above quality data block stored in the blockchain distributed database to complete the target quality business processing logic, as shown in FIG. 4, Methods include:
步骤402,从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系。Step 402: Obtain a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is generated based on business processing by the target subsystem The quality data is generated, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system.
本实施例所述的目标质量数据块,即是与目标质量业务相关的质量数据块。关于质量数据块的内容和质量数据块被验证共识上链的过程,在前述的各实施例中已详细分析,在此不再赘述。The target quality data block described in this embodiment is a quality data block related to the target quality service. Regarding the content of the quality data block and the process of the quality data block being verified by consensus, it has been analyzed in detail in the foregoing embodiments and will not be repeated here.
步骤404,基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。Step 404: Perform data processing based on the target quality data block to complete target quality service processing logic.
上述目标质量业务处理逻辑,是与质量数据块内的质量数据内容、及调用关系的应用相关的业务处理逻辑,具体地,上述目标质量业务处理逻辑包括对基于质量数据块进行的质量数据分析、质量故障监测与定位、对相关子***业务处理过程的录制回放等处理逻辑。The above target quality business processing logic is the business processing logic related to the quality data content in the quality data block and the application of the calling relationship. Specifically, the above target quality business processing logic includes quality data analysis based on the quality data block, Processing logic such as quality fault monitoring and positioning, and recording and playback of related subsystem business processing processes.
以下以质量故障的监测和定位为例,详细阐释上述的目标质量业务处理逻辑。在本实施例中,质量检测机构可作为上述区块链的节点加入到区块链网络中来,从而可以备份区块链的分布式数据库中的全量质量数据块数据。该全量质量数据块数据是如图2所示的分布式业务***中的各业务子***A、B、C产生的,且基于子***A、B、C的调用关系,在区块链的分布式数据库中生成了如图3所示的质量数据块。The following uses the monitoring and positioning of quality faults as an example to explain the above-mentioned target quality business processing logic in detail. In this embodiment, the quality inspection agency can be added to the blockchain network as a node of the above-mentioned blockchain, so that the full quality data block data in the distributed database of the blockchain can be backed up. The full-quality data block data is generated by the business subsystems A, B, and C in the distributed business system shown in FIG. 2 and is distributed on the blockchain based on the calling relationships of the subsystems A, B, and C. The quality data block shown in Figure 3 is generated in the distributed database.
在分布式业务***的某次总业务处理中,例如基于电商平台***的某笔订单处理中,监控***监控获知子***A、B、C均产生故障数据或发出报警提示。上述获知的具体过程可以是,监控***作为区块链的节点,可随时从区块链的分布式数据库中获取包括该次总业务的业务标识码、子***A、B、C产生的质量数据内容、及调用关系的质量 数据块作为目标质量数据块,对目标质量数据块的质量数据内容中相关质量指标进行监测,以获知子***A、B、C是否产生故障。In a total business process of a distributed business system, such as an order process based on an e-commerce platform system, the monitoring system monitors and learns that subsystems A, B, and C all generate fault data or issue an alarm prompt. The above-mentioned specific process may be that the monitoring system, as a node of the blockchain, can obtain the quality data generated by the service identification code, subsystems A, B, and C of the total service from the distributed database of the blockchain at any time The content and the quality data block of the call relationship are used as the target quality data block, and the relevant quality indicators in the quality data content of the target quality data block are monitored to know whether the subsystems A, B, and C are malfunctioning.
鉴于监测机构节点获知子***A、B、C均发生故障,传统的解决方案为对子***A、B、C的业务处理过程均进行检测分析,以找到故障错误的根源。在本实施例中,监测机构节点基于其从区块链上获得的质量数据块的调用关系可获知,发生故障的质量数据对应的调用关系为:子***B调用子***A,子***C调用子***B;基于分布式业务***的工作逻辑——下游子***的故障错误会反映到上游子***中,监测机构节点可以直接判断出最下游***A出现故障。相对于传统的分布式业务***的故障定位方式,本实施例所示的基于质量数据块进行的质量监测与故障定位的质量业务处理逻辑有着更大的便捷性。In view of the fact that the monitoring agency node has learned that all subsystems A, B, and C have failed, the traditional solution is to detect and analyze the business processing processes of subsystems A, B, and C to find the root cause of the failure. In this embodiment, the monitoring institution node can know based on the calling relationship of the quality data blocks obtained from the blockchain, the calling relationship corresponding to the failed quality data is: subsystem B calls subsystem A, subsystem C calls Subsystem B; based on the working logic of the distributed business system-the fault errors of the downstream subsystem will be reflected in the upstream subsystem, and the monitoring agency node can directly determine the failure of the most downstream system A. Compared with the traditional fault location mode of the distributed service system, the quality service processing logic based on the quality data block shown in this embodiment and fault location has greater convenience.
与上述流程实现对应,本说明书的实施例还提供了一种基于区块链的公共交通数据处理装置。该装置可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为逻辑意义上的装置,是通过所在设备的CPU(Central Process Unit,中央处理器)将对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,除了图7所示的CPU、内存以及存储器之外,网络风险业务的实现装置所在的设备通常还包括用于进行无线信号收发的芯片等其他硬件,和/或用于实现网络通信功能的板卡等其他硬件。Corresponding to the above process implementation, the embodiments of the present specification also provide a blockchain-based public transportation data processing device. The device can be implemented by software, or by hardware or a combination of hardware and software. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions into the memory through the CPU (Central Processing Unit) of the device where it is located. From a hardware perspective, in addition to the CPU, memory, and storage shown in FIG. 7, the device where the network risk service implementation device is located usually also includes other hardware such as chips for wireless signal transmission and reception, and / or for implementation Network communication function boards and other hardware.
图5所示为一种基于区块链的质量数据处理装置50,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置50包括:FIG. 5 shows a blockchain-based quality data processing device 50, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device 50 includes:
获得单元502,获得子***节点基于其业务处理产生的质量数据;The obtaining unit 502 obtains the quality data generated by the subsystem node based on its business processing;
封装单元504,将所述质量数据封装成具有预设格式的质量数据块,其中,所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系;The encapsulating unit 504 encapsulates the quality data into a quality data block with a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, the The call relationship content is used to represent the call relationship between the subsystem node and other subsystems in the distributed service system;
发送单元506,将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。The sending unit 506 sends the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
在又一示出的实施例中,所述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。In yet another illustrated embodiment, the quality data block further includes a service identification code, used to identify the service on which the content of the quality data and the content of the call relationship are based.
在又一示出的实施例中,所述质量数据块还包括时间内容,用以表示所述质量数据 内容的生成时间。In yet another illustrated embodiment, the quality data block further includes time content to indicate the generation time of the quality data content.
在又一示出的实施例中,所述封装单元504:In another embodiment shown, the packaging unit 504:
使用预设的数据模型过滤所述质量数据;Filtering the quality data using a preset data model;
对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Perform data encapsulation calculation on the filtered quality data to generate a quality data block that conforms to a preset format.
在又一示出的实施例中,所述对过滤后的质量数据进行数据计算,以生成符合预设格式的质量数据块,包括:基于大数据算法对获取的原始质量数据进行计算以得到质量发展趋势的预测数据,将所述预测数据作为所述质量数据内容封装成符合预设格式的质量数据块。In yet another illustrated embodiment, the data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain quality The prediction data of the development trend, the prediction data is packaged as the quality data content into a quality data block conforming to a preset format.
在又一示出的实施例中,所述区块链为联盟链,所述子***节点为联盟成员节点。In yet another illustrated embodiment, the blockchain is an alliance chain, and the subsystem nodes are alliance member nodes.
图6所示为一种基于区块链的质量数据处理装置60,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置60包括:FIG. 6 shows a blockchain-based quality data processing device 60, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device 60 includes:
获取单元602,从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系;The obtaining unit 602 obtains a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is based on business processing by the target subsystem The generated quality data is generated, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
业务处理单元604,基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。The service processing unit 604 performs data processing based on the target quality data block to complete the target quality service processing logic.
在又一示出的实施方式中,所述目标质量业务处理逻辑为基于所述目标质量块的质量数据内容和调用关系内容,判断所述目标子***是否出现故障。In yet another illustrated embodiment, the target quality service processing logic is to determine whether the target subsystem has a fault based on the content of the quality data of the target quality block and the content of the call relationship.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,相关之处参见方法实施例的部分说明即可,在此不再赘述。For the implementation process of the functions and functions of the units in the above device, please refer to the implementation process of the corresponding steps in the above method for specific details. For the relevant parts, please refer to the description of the method embodiments, which will not be repeated here.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部单元或模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical modules, that is, may be located One place, or can be distributed to multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the objectives of the solutions in this specification. Those of ordinary skill in the art can understand and implement without paying creative labor.
上述实施例阐明的装置、单元、模块,具体可以由计算机芯片或实体实现,或 者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The devices, units, and modules explained in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机设备,该计算机设备包括存储器和处理器。其中,存储器上存储有能够由处理器运行的计算机程序;处理器在运行存储的计算机程序时,执行本说明书实施例中质量数据块生成发送端所执行的基于区块链的质量数据处理方法的各个步骤。对基于质量数据块生成发送端所执行的基于区块链的质量数据处理方法的各个步骤的详细描述请参见之前的内容,不再重复。Corresponding to the above method embodiments, the embodiments of the present specification also provide a computer device, which includes a memory and a processor. Among them, a computer program that can be executed by the processor is stored on the memory; when the processor runs the stored computer program, it executes the quality data processing method based on the blockchain executed by the sending end in the embodiment of the specification to generate the quality data block generation transmitter Various steps. For a detailed description of the various steps of the blockchain-based quality data processing method performed by the sender based on the quality data block generation, please refer to the previous content, and it will not be repeated.
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机设备,该计算机设备包括存储器和处理器。其中,存储器上存储有能够由处理器运行的计算机程序;处理器在运行存储的计算机程序时,执行本说明书实施例中质量数据块应用端所执行的基于区块链的质量数据处理方法的各个步骤。对基于质量数据块应用端所执行的基于区块链的质量数据处理方法的各个步骤的详细描述请参见之前的内容,不再重复。Corresponding to the above method embodiments, the embodiments of the present specification also provide a computer device, which includes a memory and a processor. Among them, the memory stores a computer program that can be executed by the processor; when the processor runs the stored computer program, it executes each of the blockchain-based quality data processing methods executed by the quality data block application terminal in the embodiments of the present specification step. For a detailed description of the various steps of the blockchain-based quality data processing method performed by the application based on the quality data block, please refer to the previous content and will not be repeated.
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。The above are only the preferred embodiments of this specification and are not intended to limit this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of this specification should be included in this specification Within the scope of protection.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。Computer-readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data.
计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带, 磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Examples of computer storage media 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 technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本说明书的实施例可提供为方法、***或计算机程序产品。因此,本说明书的实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书的实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code .

Claims (18)

  1. 一种基于区块链的质量数据处理方法,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述方法包括:A blockchain-based quality data processing method is applied to a distributed business system that includes multiple subsystems, and the multiple subsystems are nodes of the blockchain. The method includes:
    获得子***节点基于其业务处理产生的质量数据;Obtain the quality data generated by the subsystem node based on its business processing;
    将所述质量数据封装成具有预设格式的质量数据块,其中,所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系;Encapsulating the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call relationship content is used To represent the calling relationship between the subsystem node and other subsystems in the distributed service system;
    将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。The quality data block is sent to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  2. 根据权利要求1所述的方法,所述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。According to the method of claim 1, the quality data block further includes a service identification code, which is used to identify the service on which the content of the quality data and the call relation content are based.
  3. 根据权利要求1所述的方法,所述质量数据块还包括时间内容,用以表示所述质量数据内容的生成时间。The method according to claim 1, wherein the quality data block further includes time content to indicate a generation time of the quality data content.
  4. 根据权利要求1所述的方法,所述将所述质量数据封装成具有预设格式的质量数据块,包括:The method according to claim 1, said encapsulating the quality data into a quality data block having a preset format, comprising:
    使用预设的数据模型过滤所述质量数据;Filtering the quality data using a preset data model;
    对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Perform data encapsulation calculation on the filtered quality data to generate a quality data block that conforms to a preset format.
  5. 根据权利要求4所述的方法,所述对过滤后的质量数据进行数据计算,以生成符合预设格式的质量数据块,包括:基于大数据算法对获取的原始质量数据进行计算以得到质量发展趋势的预测数据,将所述预测数据作为所述质量数据内容封装成符合预设格式的质量数据块。The method according to claim 4, the performing data calculation on the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain quality development The prediction data of the trend, the prediction data is packaged as the quality data content into a quality data block conforming to a preset format.
  6. 根据权利要求1至5中任一权利要求所述的方法,所述区块链为联盟链,所述子***节点为联盟成员节点。The method according to any one of claims 1 to 5, the block chain is a consortium chain, and the subsystem node is a consortium member node.
  7. 一种基于区块链的质量数据处理方法,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述方法包括:A blockchain-based quality data processing method is applied to a distributed business system that includes multiple subsystems, and the multiple subsystems are nodes of the blockchain. The method includes:
    从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系;Obtain a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is based on quality data generated by the target subsystem performing business processing Generated, the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
    基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。Perform data processing based on the target quality data block to complete the target quality business processing logic.
  8. 根据权利要求7所述的方法,所述目标质量业务处理逻辑为基于所述目标质量 块的质量数据内容和调用关系内容,判断所述目标子***是否出现故障。According to the method of claim 7, the target quality service processing logic is to determine whether the target subsystem fails based on the content of the quality data of the target quality block and the content of the call relationship.
  9. 一种基于区块链的质量数据处理装置,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置包括:A blockchain-based quality data processing device is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device includes:
    获得单元,获得子***节点基于其业务处理产生的质量数据;Obtain unit to obtain the quality data generated by the subsystem node based on its business processing;
    封装单元,将所述质量数据封装成具有预设格式的质量数据块,其中,所述质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于所述质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他子***的调用关系;A packaging unit, which encapsulates the quality data into a quality data block having a preset format, wherein the quality data block includes quality data content and call relationship content, the quality data content is generated based on the quality data, and the call The relationship content is used to represent the calling relationship between the subsystem node and other subsystems in the distributed service system;
    发送单元,将所述质量数据块发送至所述区块链,以使所述质量数据块经过共识验证后被收录于所述区块链的分布式数据库中。The sending unit sends the quality data block to the blockchain, so that the quality data block is included in the distributed database of the blockchain after consensus verification.
  10. 根据权利要求9所述的装置,所述质量数据块还包括业务识别码,用以标识上述质量数据内容和调用关系内容所依据的业务。The apparatus according to claim 9, wherein the quality data block further includes a service identification code, which is used to identify the service on which the content of the quality data and the call relationship content are based.
  11. 根据权利要求9所述的装置,所述质量数据块还包括时间内容,用以表示所述质量数据内容的生成时间。The apparatus according to claim 9, wherein the quality data block further includes time content to indicate a generation time of the quality data content.
  12. 根据权利要求9所述的装置,所述封装单元:The device according to claim 9, the packaging unit:
    使用预设的数据模型过滤所述质量数据;Filtering the quality data using a preset data model;
    对过滤后的质量数据进行数据封装计算,以生成符合预设格式的质量数据块。Perform data encapsulation calculation on the filtered quality data to generate a quality data block that conforms to a preset format.
  13. 根据权利要求12所述的装置,所述对过滤后的质量数据进行数据计算,以生成符合预设格式的质量数据块,包括:基于大数据算法对获取的原始质量数据进行计算以得到质量发展趋势的预测数据,将所述预测数据作为所述质量数据内容封装成符合预设格式的质量数据块。The apparatus according to claim 12, the data calculation of the filtered quality data to generate a quality data block conforming to a preset format includes: calculating the obtained original quality data based on a big data algorithm to obtain quality development The prediction data of the trend, the prediction data is packaged as the quality data content into a quality data block conforming to a preset format.
  14. 根据权利要求9至13中任一权利要求所述的装置,所述区块链为联盟链,所述子***节点为联盟成员节点。The apparatus according to any one of claims 9 to 13, wherein the blockchain is an alliance chain, and the subsystem node is an alliance member node.
  15. 一种基于区块链的质量数据处理装置,应用于包括多个子***的分布式业务***,且所述多个子***为区块链的节点,所述装置包括:A blockchain-based quality data processing device is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The device includes:
    获取单元,从所述区块链的分布式数据库中获取目标质量数据块,其中所述目标质量数据块包括质量数据内容和调用关系内容,所述质量数据内容基于目标子***进行业务处理而产生的质量数据生成,所述调用关系内容用以表示所述子***节点与所述分布式业务***中其他业务子***的调用关系;An acquiring unit, acquiring a target quality data block from the distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, and the quality data content is generated based on business processing of the target subsystem Generated quality data, and the call relationship content is used to represent the call relationship between the subsystem node and other service subsystems in the distributed service system;
    业务处理单元,基于所述目标质量数据块进行数据处理,以完成目标质量业务处理逻辑。The service processing unit performs data processing based on the target quality data block to complete the target quality service processing logic.
  16. 根据权利要求15所述的装置,所述目标质量业务处理逻辑为基于所述目标质量块的质量数据内容和调用关系内容,判断所述目标子***是否出现故障。According to the apparatus of claim 15, the target quality service processing logic is to determine whether the target subsystem is faulty based on the content of the quality data of the target quality block and the content of the call relationship.
  17. 一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行如权利要求1到6任意一项所述的方法。A computer device comprising: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the computer program according to any one of claims 1 to 6 is executed method.
  18. 一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行如权利要求7到8任意一项所述的方法。A computer device, comprising: a memory and a processor; a computer program executable by the processor is stored on the memory; the processor executes the computer program according to any one of claims 7 to 8 when the processor runs the computer program method.
PCT/CN2019/104673 2018-10-31 2019-09-06 Block chain-based quality data processing method and apparatus WO2020088098A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811283609.9A CN109598505B (en) 2018-10-31 2018-10-31 Quality data processing method and device based on block chain
CN201811283609.9 2018-10-31

Publications (1)

Publication Number Publication Date
WO2020088098A1 true WO2020088098A1 (en) 2020-05-07

Family

ID=65957075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/104673 WO2020088098A1 (en) 2018-10-31 2019-09-06 Block chain-based quality data processing method and apparatus

Country Status (3)

Country Link
CN (2) CN111899016A (en)
TW (1) TW202018608A (en)
WO (1) WO2020088098A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220085480A (en) * 2020-12-15 2022-06-22 동명대학교산학협력단 Game quality management system using block-chain and method thereof

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111899016A (en) * 2018-10-31 2020-11-06 创新先进技术有限公司 Quality data processing method and device based on block chain
CN110209681A (en) * 2019-05-22 2019-09-06 深圳壹账通智能科技有限公司 Block chain data enter chain method, apparatus, computer equipment and storage medium
CN110380893B (en) * 2019-06-19 2022-08-12 深圳壹账通智能科技有限公司 Communication fault analysis method and device and block chain communication platform
CN110443430B (en) * 2019-08-13 2023-08-22 汕头大学 Block chain-based service quality prediction method
CN110888755B (en) * 2019-11-15 2023-04-11 亚信科技(中国)有限公司 Method and device for searching abnormal root node of micro-service system
CN111967062A (en) * 2020-08-21 2020-11-20 支付宝(杭州)信息技术有限公司 Data processing system, method and device based on block chain
CN112053095A (en) * 2020-09-30 2020-12-08 东莞市盟大塑化科技有限公司 Cargo monitoring method and device, computer equipment and storage medium
EP4062309A4 (en) * 2020-11-25 2022-12-07 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain-based trusted platform
CN112435029B (en) * 2021-01-27 2021-04-23 支付宝(杭州)信息技术有限公司 Service processing method and device based on block chain and electronic equipment
CN113052721B (en) * 2021-03-18 2024-04-30 国网北京市电力公司 Power data processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153646A (en) * 2016-03-02 2017-09-12 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
US20170293503A1 (en) * 2016-04-10 2017-10-12 Bank Of America Corporation System for transforming large scale electronic processing using application block chain and multi-structured data stores
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108647361A (en) * 2018-05-21 2018-10-12 中国工商银行股份有限公司 A kind of date storage method, apparatus and system based on block chain
CN109598505A (en) * 2018-10-31 2019-04-09 阿里巴巴集团控股有限公司 A kind of qualitative data treating method and apparatus based on block chain

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100583783C (en) * 2007-11-06 2010-01-20 北京航空航天大学 Integration tool for telecommunication area inheritance system based on configuration policy
CN101848477A (en) * 2009-03-24 2010-09-29 亚信科技(中国)有限公司 Method and system for diagnosing fault
US10380682B2 (en) * 2013-11-24 2019-08-13 Inspirave, Llc. User controlled collaborative aspirational savings social network system and method having user controlled whiteboard system enabling articulation and end-to-end fulfillment of aspirations
CN107181721A (en) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 A kind of information processing method and device based on daily record
WO2018187410A1 (en) * 2017-04-07 2018-10-11 Walmart Apollo, Llc Systems and methods for data backup and authentication using blockchain
KR101862856B1 (en) * 2017-05-02 2018-05-31 주식회사 코인플러그 Method and server for recording data with regard to the usage of the product and verifying the same in order to manage genuine products
CN108234457A (en) * 2017-12-18 2018-06-29 苏州涞泽信息科技有限公司 A kind of credible government data based on block chain shares network system and sharing method
CN108388988B (en) * 2018-02-26 2021-07-06 深圳智乾区块链科技有限公司 Block chain-based collaborative office method, system and computer-readable storage medium
CN108667811A (en) * 2018-04-18 2018-10-16 成都零光量子科技有限公司 A kind of method and monitoring device of autonomous structure electronic evidence
CN108616534B (en) * 2018-04-28 2020-05-26 中国科学院信息工程研究所 Method and system for preventing DDoS (distributed denial of service) attack of Internet of things equipment based on block chain
CN108717443B (en) * 2018-05-17 2020-06-05 京东数字科技控股有限公司 Data sharing method, block chain system and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153646A (en) * 2016-03-02 2017-09-12 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
US20170293503A1 (en) * 2016-04-10 2017-10-12 Bank Of America Corporation System for transforming large scale electronic processing using application block chain and multi-structured data stores
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108647361A (en) * 2018-05-21 2018-10-12 中国工商银行股份有限公司 A kind of date storage method, apparatus and system based on block chain
CN109598505A (en) * 2018-10-31 2019-04-09 阿里巴巴集团控股有限公司 A kind of qualitative data treating method and apparatus based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220085480A (en) * 2020-12-15 2022-06-22 동명대학교산학협력단 Game quality management system using block-chain and method thereof
KR102422955B1 (en) 2020-12-15 2022-07-19 동명대학교산학협력단 Game quality management system using block-chain and method thereof

Also Published As

Publication number Publication date
TW202018608A (en) 2020-05-16
CN109598505B (en) 2020-05-19
CN111899016A (en) 2020-11-06
CN109598505A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
WO2020088098A1 (en) Block chain-based quality data processing method and apparatus
US11588651B2 (en) Blockchain timestamp agreement
TWI716140B (en) Data processing method and device based on blockchain
US20220027384A1 (en) Data Manifest as a Blockchain Service
US10805094B2 (en) Blockchain timestamp agreement
US11924360B2 (en) Blockchain timestamp agreement
CN112073269B (en) Block chain network testing method, device, server and storage medium
JP7352622B2 (en) Blockchain timestamp agreement
CN113487427B (en) Transaction risk identification method, device and system
US20200089509A1 (en) Collaborative model execution
CN112307458A (en) Light node uplink method and device, Internet of things central control terminal and block chain network
CN112612856B (en) Block chain-based data processing method and device
CN111414434B (en) Block chain-based data transaction management network, transaction device and storage medium
CN110838067B (en) Real estate transaction data processing method, device, server and storage medium
CN113435907A (en) Method and system for tracing supply chain of bearing retainer
CN111475778A (en) Music data processing method and device based on block chain
CN110941840A (en) Data processing method, system and terminal
CN112269838B (en) Blockchain-based supervision method and device, electronic equipment and storage medium
CN116739596A (en) Blockchain-based transaction supervision method, device, equipment, medium and product
US20230009460A1 (en) Trail recording system and data verification method
CN110335151B (en) Centralized language prediction machine matched with intelligent contract application, information output method and system
US20240054484A1 (en) Reconciliation systems and methods for unbounded streams
CN112600874B (en) Node joining method and device, electronic equipment and readable storage medium
US20240053999A1 (en) Reconciliation systems and methods for unbounded streams
EP4086788B1 (en) Blockchain-based data processing method and apparatus, device, and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19880781

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19880781

Country of ref document: EP

Kind code of ref document: A1