A quality data processing method and device based on blockchain
By using blockchain technology in the distributed business system to perform consensus verification and storage of the quality data content and calling relationship content of the quality data block, the problem of independent storage and analysis of quality data in the distributed business system is solved, and the data is realized. Decentralized management and global analysis improve fault location efficiency.
Patent Information
- Application Number
- CN202010635995.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2038-10-31
AI Technical Summary
In a distributed business system, the quality data generated by each business subsystem is stored and analyzed independently, causing fault location to be time-consuming and labor-intensive, lacking data correlation and management efficiency.
Adopt a blockchain-based quality data processing method to encapsulate the quality data of subsystem nodes into quality data blocks with preset formats, including quality data content and calling relationship content, through blockchain consensus verification and distributed database storage , to achieve decentralized recording and global analysis of data.
It achieves the authenticity and validity of quality data, facilitates global analysis and monitoring, reduces fault location time, and improves the efficiency of data management and monitoring.
Smart Images

Figure CN111899016B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a quality data processing method and device based on blockchain. Background Art
[0002] A distributed business system is a pipeline business system composed of multiple business subsystems. The quality data generated by the corresponding business processing of multiple business subsystems are usually stored independently in each subsystem device, and there is no correlation between them. Accordingly, the acquisition and analysis of quality data are all based on a single business subsystem. Since the quality data generated by each business subsystem are not correlated, the quality data generated by each business subsystem needs to be analyzed and judged independently. For example, when a distributed business system performs pipeline business operations, it is common for multiple business subsystems to report business failures. In existing solutions, it is usually necessary to check all business processing processes of each business subsystem that reports a business failure in order to locate the cause of the failure, which is time-consuming and labor-intensive. Summary of the invention
[0003] In view of the current status and problems of the quality data processing flow proposed above, this specification provides a quality data processing method based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain. The method includes:
[0004] Obtaining quality data generated by subsystem nodes based on their business processing;
[0005] 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 call relationship between the subsystem node and other subsystems in the distributed business system;
[0006] 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.
[0007] Preferably, the quality data block further includes a service identification code for identifying the service on which the quality data content and the call relationship content are based.
[0008] More preferably, the quality data block also includes time content to indicate the generation time of the quality data content.
[0009] Preferably, encapsulating the quality data into a quality data block having a preset format includes:
[0010] Filter the quality data using a preset data model;
[0011] The filtered quality data is subjected to data encapsulation calculation to generate a quality data block conforming to a preset format.
[0012] More preferably, the filtered quality data is calculated to generate a quality data block that conforms to a preset format, including: calculating the acquired original quality data based on a big data algorithm to obtain predictive data on quality development trends, and encapsulating the predictive data as the quality data content into a quality data block that conforms to a preset format.
[0013] More preferably, the blockchain is a consortium chain, and the subsystem nodes are consortium member nodes.
[0014] This specification also provides a quality data processing method based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain, and the method includes:
[0015] Obtaining a target quality data block from a distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, the quality data content is generated based on quality data generated by business processing by the target subsystem, and the call relationship content is used to represent the call relationship between the subsystem node and other business subsystems in the distributed business system;
[0016] Data processing is performed based on the target quality data block to complete the target quality business processing logic.
[0017] More preferably, the target quality service processing logic determines whether the target subsystem fails based on the quality data content and call relationship content of the target quality block.
[0018] Accordingly, this specification provides a quality data processing device based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain, and the device includes:
[0019] An acquisition unit, which acquires quality data generated by a subsystem node based on its business processing;
[0020] an encapsulation unit, 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 call relationship between the subsystem node and other subsystems in the distributed business system;
[0021] 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.
[0022] Preferably, the quality data block further includes a service identification code for identifying the service on which the quality data content and the call relationship content are based.
[0023] More preferably, the quality data block also includes time content to indicate the generation time of the quality data content.
[0024] Preferably, the packaging unit:
[0025] Filter the quality data using a preset data model;
[0026] The filtered quality data is subjected to data encapsulation calculation to generate a quality data block conforming to a preset format.
[0027] More preferably, the filtered quality data is calculated to generate a quality data block that conforms to a preset format, including: calculating the acquired original quality data based on a big data algorithm to obtain predictive data on quality development trends, and encapsulating the predictive data as the quality data content into a quality data block that conforms to a preset format.
[0028] More preferably, the blockchain is a consortium chain, and the subsystem nodes are consortium member nodes.
[0029] Accordingly, this specification also provides a quality data processing device based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain, and the device includes:
[0030] An acquisition unit is configured to acquire a target quality data block from a distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, wherein the quality data content is generated based on quality data generated by business processing by the target subsystem, and the call relationship content is used to represent a call relationship between the subsystem node and other business subsystems in the distributed business system;
[0031] The business processing unit performs data processing based on the target quality data block to complete the target quality business processing logic.
[0032] More preferably, the target quality service processing logic determines whether the target subsystem fails based on the quality data content and call relationship content of the target quality block.
[0033] This specification also provides a computer device, including: a memory and a processor; the memory stores a computer program that can be run by the processor; when the processor runs the computer program, it executes the steps described in the above-mentioned blockchain-based quality data processing method executed by the quality data block upload end.
[0034] This specification also provides a computer device, including: a memory and a processor; the memory stores a computer program that can be run by the processor; when the processor runs the computer program, it executes the steps described in the above-mentioned blockchain-based quality data processing method executed by the quality data block application end.
[0035] 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 sets the business subsystem node that can generate quality data as the node of the blockchain. Based on the distributed database storage mechanism of blockchain technology, the quality data is decentralized and recorded in all nodes. It is jointly maintained by the nodes of all participants, and each subsystem node can obtain the full amount of quality data. All data records can be traced back, which is convenient for quality management and monitoring; moreover, based on the consensus mechanism of blockchain, the quality data block provided by each subsystem node will not be tampered with after provision, thereby ensuring the authenticity and effectiveness of quality management or quality monitoring based on the quality data block; further, since the quality data blocks all include call relationship content, the call relationship content is used to represent the call relationship between the subsystem node and other subsystems in the distributed business system, which is convenient for global quality data analysis, management and monitoring at each subsystem node. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a quality data processing method based on blockchain performed by a quality data block upload end as shown in an embodiment provided in this specification;
[0037] Figure 2 A schematic diagram of the calling relationship of subsystems in a distributed business system provided in another embodiment of this specification;
[0038] Figure 3 A schematic diagram of a quality data block in a block provided by an embodiment of the present specification;
[0039] Figure 4 A flowchart of a quality data processing method based on blockchain performed by a quality data block application terminal shown in an embodiment provided in this specification;
[0040] Figure 5 A schematic diagram of a quality data processing device based on blockchain at a quality data block upload end shown in an embodiment provided in this specification;
[0041] Figure 6 A schematic diagram of a quality data processing device based on blockchain at a quality data block application end shown in an embodiment provided in this specification;
[0042] Figure 7 A hardware structure diagram for running an embodiment of a blockchain-based quality data processing device provided in this specification. DETAILED DESCRIPTION
[0043] A distributed business system generally refers to a multi-transaction (or multi-business) system composed of multiple independent service or application computers, such as an e-commerce platform that includes payment services. In this specification, each transaction or business system is referred to as a business subsystem or subsystem. The quality data generated by multiple business subsystems based on corresponding business processing are usually stored independently in each subsystem device, and there is no correlation between them. Accordingly, the acquisition and analysis of quality data are all based on a single business subsystem. Since the quality data generated on each business subsystem device are not correlated, the quality data generated by each business subsystem can only be analyzed and judged independently.
[0044] Based on the problems existing in the above prior art, such as Figure 1 As shown, an illustrative embodiment of this specification provides a quality data processing method based on blockchain, 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 indicator. Quality data in a narrow sense mainly refers to data related to product quality, such as the number of defective products, qualified rate, pass rate, rework rate, etc. Quality data in a broad sense refers to data that can reflect the quality of various tasks, such as quality cost loss, production batch, inventory backlog, invalid operation time, etc. Among them, the quality data described in each embodiment of this specification refers to quality data in a broad sense. In addition to traditional quality data such as defects / failures, it is applied to business operations (such as e-commerce, online music, online games, social communications, etc.) performed online by computers or other terminal devices. The above-mentioned quality data also includes: business scenario request data for building use case scenarios (which can be obtained by recording and capturing real business online); various error information, business trends, server conditions (such as CPU usage) used for monitoring; various associated data for verification, model data such as capital flow models and request models; various change information and emergency plan information for emergency response. Of course, the quality data described in this specification is not limited to this. Any evaluation data, description data, model data, etc. generated based on business processing can be used as the quality data described in this specification and applied as provided in this specification.
[0045] The multiple subsystems in the distributed business system described in this embodiment serve as nodes of the blockchain. The blockchain described in each embodiment of this specification may specifically refer to a P2P network system with a distributed data storage structure in which each node reaches a consensus mechanism. The data in the blockchain is distributed in "blocks" connected in time. 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.), a full backup of the data of all or part of the nodes is achieved. It is well known to those skilled in the art that since the blockchain system operates under the corresponding consensus mechanism, the data included in the blockchain database is difficult to be tampered by any node. For example, for a blockchain using Pow consensus, at least 51% of the computing power of the entire network is required to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and anti-attack tampering that other centralized database systems cannot match. 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 the quality data and the fairness of quality data management or monitoring.
[0046] The multiple subsystems in the distributed business system described in this embodiment can serve as nodes of the blockchain. The "node of the blockchain" described in this specification can be a blockchain node that stores the full amount of data of the distributed database of the blockchain, or a client connected to the above blockchain node, which is not limited here. Multiple subsystem devices join the blockchain as nodes of the blockchain by following the corresponding blockchain node protocol and running the installation of the node protocol program.
[0047] The process of a new node device joining the blockchain network described in the above embodiment can be simplified as follows:
[0048] The new node device is started and connected to the network;
[0049] Run the node protocol program, notify other nodes, and initiate synchronization requests for block data to existing nodes on the blockchain network;
[0050] Synchronize existing block data from existing nodes. The existing nodes are usually nodes adjacent to the new node. Furthermore, in order to improve the progress of initial block data download, the "header first" download method can be adopted to first download the block headers of all existing blocks from neighboring nodes. After the block headers are downloaded, the new node can download blocks of different height intervals from multiple neighboring nodes in parallel, greatly improving the synchronization speed of existing block data;
[0051] After synchronization is completed, block data verification is performed. The block data verification process includes block format verification (including version, timestamp), block header hash value verification, and verification of all transactions according to transaction verification rules. The above verification of all transactions according to transaction verification rules includes multiple contents such as whether the transaction format is correct, whether the Merkle Root generated according to the transaction data structure is correct, etc., to verify the correctness of existing block data;
[0052] After the above block data is verified, it participates in the operation of the blockchain as a blockchain node, receives, verifies and stores new blocks generated by the blockchain node consensus; after the business system equipment is added to the blockchain as a new node, the generated quality data should also be uploaded to the above blockchain.
[0053] Blockchain uses distributed data storage of each node. The more nodes added to the blockchain, the more backups of the data stored in the blockchain, and the greater the ability to prevent attacks and tampering of the data stored on the blockchain. Adding multiple business subsystem nodes involved in quality management or monitoring, as well as functional nodes such as quality management nodes and quality monitoring nodes to the above-mentioned blockchain network and utilizing the consensus mechanism of the blockchain can effectively prevent quality data from being tampered with or forged, and provide reliable data assurance for the use of big data of quality data, or quality management, supervision or prediction based on quality data.
[0054] It is worth noting that the transaction described in this specification refers to a piece of data created by a user through a node or client of a blockchain and ultimately published to the distributed database of the blockchain. Among them, transactions in the blockchain can be divided into transactions in a narrow sense and transactions in a broad sense. A transaction in a narrow sense refers to a transfer of value published by a user to a blockchain; for example, in a traditional blockchain network, a transaction can be a transfer initiated by a user in a blockchain. A transaction in a broad sense refers to a piece of business data with business intent published by a user to a blockchain; for example, the quality data published to the above-mentioned blockchain described in the above-mentioned embodiments of this specification can be a transaction; or the above-mentioned quality data is organized according to a preset transaction data format, thereby converting and encapsulating into a quality data block in a fixed format. In this specification, "transaction" is sometimes used to simplify and replace the quality data or quality data block described in the above-mentioned embodiments.
[0055] The quality data processing method provided in this embodiment includes:
[0056] Step 102: Acquire quality data based on the business processing of the subsystem node.
[0057] Since multiple subsystems in a distributed business system provide different services or process different businesses, the subsystem nodes should obtain corresponding quality data based on their business processing. As mentioned above, their quality data include but are not limited to various evaluation data, description data, model data, etc. generated based on business processing.
[0058] In order to facilitate the application or monitoring of quality data on the blockchain, the acquisition of quality data can be based on a preset time or preset business. For example, the quality data generated by the subsystem node is acquired at a preset time interval to upload it to the blockchain; or, the subsystem node acquires the quality data it generates and uploads it to the blockchain every time it completes a preset business project, such as every time the payment subsystem completes a payment, every time the order generation subsystem generates an order, etc.
[0059] It is worth noting that the execution subject of the quality data processing method at the upload end of the quality data block described in this embodiment can be a subsystem node, or other terminal devices such as a quality data processing platform that is connected to the subsystem node in off-chain communication. The other terminal devices are also added to the above-mentioned blockchain network as nodes of the blockchain; even the execution subjects of different steps of the quality number processing method described in this embodiment can also be different node devices in the blockchain.
[0060] Step 104, encapsulate 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, and the call relationship content is used to represent the call relationship between the subsystem node and other subsystems in the distributed business system.
[0061] To facilitate verification by other nodes on the blockchain, transactions submitted to the blockchain usually have a preset format. In this embodiment, the quality data block submitted to the blockchain in the form of a transaction should also conform to the preset format. The above-mentioned quality data block at least includes quality data content and call relationship content, wherein the quality data content is generated based on the above-mentioned quality data. For example, the quality data generated by the subsystem node can be filled in the corresponding quality data classification of the above-mentioned quality data block with a preset format according to the type of quality data, such as evaluation data, description data, or model data.
[0062] It is well known to those skilled in the art that each subsystem in a distributed business system usually needs to collaborate to complete the overall business according to a preset business process. For example, in an e-commerce platform system, business subsystem nodes such as the product display subsystem, order generation subsystem, financial payment subsystem, user identity information management subsystem, and logistics subsystem need to collaborate to complete a product purchase business according to a preset process. Therefore, the above subsystems have a specific calling relationship based on the overall business of the distributed business system (such as the product purchase business of the above e-commerce platform system), such as Figure 2 As shown, subsystems A, B, and C are subsystems of the distributed business system. To complete the overall business of the distributed business system, the calling relationship between subsystems A, B, and C is that subsystem B calls subsystem A, and subsystem C calls subsystem B, and finally the business processing result is output from subsystem C. Of course, the calling relationship between the subsystems in the distributed business system is not limited to Figure 2 The single-chain call relationship shown, one-to-many and many-to-one call relationships are 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, the user identity information management subsystem and the logistics subsystem. This specification does not limit the specific form of the above-mentioned call relationship, for example, it can be the RPC call method of the distributed business system.
[0063] 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-mentioned subsystem node, in addition to containing the quality data generated by the subsystem node, should also include the calling relationship between the above-mentioned subsystem node and other subsystem nodes in the above-mentioned distributed business system.
[0064] In an illustrated embodiment, for quality data obtained based on a business project, the quality data block also includes a business identification code to identify the business on which the quality data content and the call relationship content are based. For example, in an e-commerce platform system, the quality data block generated based on the quality data generated by each business subsystem may include a business identification code such as the serial number or order number of the business, so as to obtain relevant quality data in the business and determine the call relationship of each subsystem in the business.
[0065] In an illustrated embodiment, the quality data block further includes time content to indicate the generation time of the quality data content, so as to facilitate quality analysis or monitoring based on the quality data block. Figure 3 A schematic diagram of the data content format of the quality data block provided in an embodiment of this specification is illustrated. To facilitate consensus verification of the quality data block by each node in the blockchain, each subsystem node may adopt a quality data block with a unified data content format.
[0066] In another embodiment shown, the distributed business system may be provided with a quality data processing subsystem, which is responsible for collecting various types of original quality data generated by each business subsystem, and the original quality data may come from the database or log of each business subsystem. The step 104 of encapsulating the quality data into a quality data block having a preset format may specifically include the following steps:
[0067] The acquired raw quality data is filtered using a preset data model, wherein the filtering process includes steps such as data normalization, deduplication, and feature value extraction, and the preset data model can be customized according to the type of quality data; and then data encapsulation calculation is performed on the filtered quality data to generate a quality data block that conforms to a preset format.
[0068] The above-mentioned data encapsulation calculation of the filtered quality data to generate a quality data block that conforms to the preset format may not only include converting the filtered quality data into a quality data block with a preset data format and content format, but may also include further data calculation of the filtered quality data to generate new quality data, such as calculating the filtered quality data based on a big data algorithm to obtain the predicted data of the quality development trend, and encapsulating the above-mentioned predicted data as the quality data content alone or together with the filtered quality data as the quality data content into a quality data block that conforms to the preset format. The predicted data of the above-mentioned quality development trend can be used as a basis for evaluating the business processing status trend of the corresponding subsystem. The monitoring system or other management system of the distributed business system, as a node on the blockchain, can make corresponding decisions in advance based on the predicted data after obtaining the predicted data of the quality development trend.
[0069] Step 106, sending 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.
[0070] In another embodiment provided in this specification, when the execution subject of sending the above-mentioned quality data block is each business subsystem, in order to ensure the legality and validity of each quality data block and prevent other nodes from impersonating the above-mentioned business subsystems to send forged quality data blocks, the private key of the above-mentioned business subsystem should be used to electronically sign the quality data block uploaded by it, thereby ensuring that the content of the above-mentioned quality data block will not be maliciously impersonated and tampered by other terminals or nodes. Accordingly, when any organization uses the above-mentioned quality data block for business processing, the public key of the corresponding business subsystem should be used to verify the above-mentioned digital signature first. Only after the verification is passed can the above-mentioned quality data block be regarded as valid content.
[0071] The detailed process described in the above embodiment of making the quality data block included in the distributed database of the blockchain after consensus verification can be specifically set according to the consensus mechanism and verification rules of the blockchain.
[0072] The verification process of the quality data block includes: the node of the blockchain obtains the quality data block from the neighboring node, verifies the quality data block based on the verification rules of the blockchain, and broadcasts the quality data block to the neighboring nodes after the verification, so that the quality data block is obtained by the 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 call relationship contained in the quality data block, verification of the quality data content contained in the quality data block, etc.
[0073] Since the calls between subsystem nodes are carried out along with the overall business processing flow of the distributed business system, the above-mentioned verification of the calling relationship contained in the quality data block refers to verifying whether the quality data block generated by the called subsystem in the calling relationship contained in the quality data block has been obtained and verified by the node on the blockchain. If so, it passes the verification. It is well known to those skilled in the art 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, thereby establishing a corresponding sequence of quality data blocks on the blockchain based on the calling relationship of each subsystem in the distributed business system, thereby ensuring that the quality data is accurate and will not be tampered with, and establishing the associated calling relationship of each quality data block, which is convenient for the associated analysis of the quality data of the distributed business system. For example, based on Figure 2 The calling relationship shown in the figure generates the following in the block chain: Figure 3 The sequence of quality data blocks shown.
[0074] 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 quality data content is indeed the quality data generated by the corresponding subsystem node and is not forged by other nodes.
[0075] The above-mentioned process of consensus on the quality data block and inclusion in the distributed database of the blockchain can be determined according to the consensus mechanism followed by the blockchain. Generally speaking, it includes the following processes:
[0076] After verifying the quality data block, the node with bookkeeping authority in the blockchain adds the quality data block to the candidate block;
[0077] Determining a consensus accounting node that satisfies the blockchain consensus mechanism from the nodes with accounting authority;
[0078] The consensus accounting node broadcasts the candidate block to the nodes of the blockchain;
[0079] After the candidate block is verified and approved by a preset number of nodes of the blockchain, the candidate block is regarded as the latest block and added to the distributed database of the blockchain.
[0080] In the above-mentioned embodiments, the node with accounting authority refers to the node with the authority to generate the candidate block, which may include the subsystem node, the quality data monitoring node, the management node and other nodes described in this specification. According to the consensus mechanism of the blockchain, the consensus accounting node can be determined from the nodes with accounting authority for the candidate block, and the above-mentioned consensus mechanism may include a proof of work mechanism (PoW), a proof of rights mechanism (PoS), or a share authorization proof mechanism (DPoS), etc. The PoS or DPoS consensus mechanism is similar to PoW, and both belong to the consensus algorithms commonly used to confirm the consensus accounting nodes in the public blockchain. In order to reduce the confirmation time of transactions or data, increase 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 subsystems of the distributed business system, the above-mentioned quality data processing subsystem, the quality data monitoring terminal, or the management terminal, etc. can be used as pre-selected nodes of the alliance chain to participate in the accounting of the block. The consensus process of the alliance chain is also controlled by the pre-selected nodes. When more than a set proportion (such as 2 / 3) of the nodes on the network confirm a block, the transactions or data recorded in the block will be confirmed by the entire network.
[0081] In response to the consensus result of the candidate block consensus processing, the candidate block is stored as the latest block in the distributed database of the blockchain to complete the evidence of the quality data blocks generated by the above-mentioned business subsystems. The distributed storage backup mechanism of the blockchain ensures that it is difficult for any node to tamper with the data after consensus verification, thereby providing evidence for the quality data content and call relationship content contained in the quality data block. Based on the quality data content generated by each business subsystem node and the call relationship between each business subsystem node, any node on the blockchain can perform the corresponding target quality business processing.
[0082] It is worth noting that the quality data blocks shown in this specification are included in the blocks of the blockchain in the form of transactions. The above-mentioned quality data blocks of corresponding sequences are established based on the calling relationships of each subsystem. It only means that the above-mentioned quality data blocks can be regarded as data with time series or logical sequences from the calling relationships contained in the quality data blocks. It is not a limitation on the transaction organization form of the above-mentioned quality data blocks in the blocks. The above-mentioned quality data blocks can be organized in the form of a commonly used Merkle tree in the blocks, and the final Merkle root can be generated and saved in the block header of the above-mentioned blocks to facilitate Merkle verification of the content of any quality data block.
[0083] Another exemplary embodiment of the present specification provides a method in which an application end of a quality data block applies the quality data block stored in a blockchain distributed database to complete a target quality business processing logic, such as Figure 4 As shown, the above method includes:
[0084] Step 402, obtaining 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, the quality data content is generated based on the quality data generated by the target subsystem performing business processing, and the call relationship content is used to represent the call relationship between the subsystem node and other business subsystems in the distributed business system.
[0085] The target quality data block described in this embodiment is a quality data block related to the target quality service. The content of the quality data block and the process of verifying and authenticating the quality data block have been analyzed in detail in the above embodiments and will not be repeated here.
[0086] Step 404: Perform data processing based on the target quality data block to complete the target quality business processing logic.
[0087] The above-mentioned 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-mentioned target quality business processing logic includes quality data analysis based on the quality data block, quality fault monitoring and positioning, and recording and playback of related subsystem business processing processes.
[0088] The following takes the monitoring and location of quality failures as an example to explain the above 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 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 as follows Figure 2The distributed business system shown in FIG. 1 generates each business subsystem A, B, and C, and based on the calling relationship between subsystems A, B, and C, the distributed database of the blockchain generates the following Figure 3 The quality data block shown.
[0089] In a certain total business processing of a distributed business system, for example, in a certain order processing 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 alarm prompts. The specific process of the above-mentioned learning can be that the monitoring system, as a node of the blockchain, can obtain the business identification code of the total business, the quality data content generated by subsystems A, B, and C, and the quality data block of the call relationship from the distributed database of the blockchain at any time as the target quality data block, and monitor the relevant quality indicators in the quality data content of the target quality data block to learn whether subsystems A, B, and C have faults.
[0090] Given that the monitoring organization node learns that subsystems A, B, and C have all 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 fault error. In this embodiment, the monitoring organization node can learn based on the calling relationship of the quality data block obtained from the blockchain that the calling relationship corresponding to the quality data that has failed is: subsystem B calls subsystem A, and subsystem C calls subsystem B; based on the working logic of the distributed business system-the fault error of the downstream subsystem will be reflected in the upstream subsystem, and the monitoring organization node can directly determine that the most downstream system A has a fault. Compared with the fault location method of the traditional distributed business system, the quality business processing logic based on quality data blocks for quality monitoring and fault location shown in this embodiment is more convenient.
[0091] Corresponding to the above process implementation, the embodiments of this specification also provide a public transportation data processing device based on blockchain. The device can be implemented by software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in the logical sense, the CPU (Central Process Unit) of the device reads the corresponding computer program instructions into the memory and runs them. From the hardware level, in addition to Figure 7 In addition to the CPU, memory and storage shown, the device where the network risk business implementation device is located usually also includes other hardware such as chips for sending and receiving wireless signals, and / or other hardware such as boards for implementing network communication functions.
[0092] Figure 5 The figure shows a quality data processing device 50 based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of blockchain. The device 50 includes:
[0093] An obtaining unit 502 obtains quality data generated by a subsystem node based on its business processing;
[0094] The encapsulation unit 504 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 relationship content is used to represent the call relationship between the subsystem node and other subsystems in the distributed business system;
[0095] 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.
[0096] In yet another illustrated embodiment, the quality data block further includes a service identification code for identifying the service on which the quality data content and the call relationship content are based.
[0097] In yet another illustrated embodiment, the quality data block further includes time content, which is used to indicate the generation time of the quality data content.
[0098] In yet another illustrated embodiment, the encapsulation unit 504:
[0099] Filter the quality data using a preset data model;
[0100] The filtered quality data is subjected to data encapsulation calculation to generate a quality data block conforming to a preset format.
[0101] In another illustrated embodiment, the data calculation is performed on the filtered quality data to generate a quality data block that conforms to a preset format, including: calculating the acquired original quality data based on a big data algorithm to obtain predictive data on the quality development trend, and encapsulating the predictive data as the quality data content into a quality data block that conforms to a preset format.
[0102] In yet another illustrated embodiment, the blockchain is a consortium chain, and the subsystem node is a consortium member node.
[0103] Figure 6 The figure shows a quality data processing device 60 based on blockchain, which is applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of blockchain. The device 60 includes:
[0104] An acquisition unit 602 acquires a target quality data block from a distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, the quality data content is generated based on quality data generated by business processing by the target subsystem, and the call relationship content is used to represent the call relationship between the subsystem node and other business subsystems in the distributed business system;
[0105] The service processing unit 604 performs data processing based on the target quality data block to complete the target quality service processing logic.
[0106] In yet another illustrated embodiment, the target quality service processing logic determines whether the target subsystem fails based on the quality data content and call relationship content of the target quality block.
[0107] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically detailed in the implementation process of the corresponding steps in the above-mentioned method. For relevant parts, please refer to the partial description of the method embodiment, which will not be repeated here.
[0108] The device embodiments described above are merely illustrative, 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, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Those of ordinary skill in the art may understand and implement it without creative work.
[0109] The devices, units, and modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of 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 transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0110] Corresponding to the above method embodiment, the embodiment of this specification also provides a computer device, which includes a memory and a processor. Among them, the memory stores a computer program that can be run by the processor; when the processor runs the stored computer program, it executes the various steps of the blockchain-based quality data processing method executed by the quality data block generation sending end in the embodiment of this specification. For a detailed description of the various steps of the blockchain-based quality data processing method executed by the quality data block generation sending end, please refer to the previous content and will not be repeated.
[0111] Corresponding to the above method embodiment, the embodiment of this specification also provides a computer device, which includes a memory and a processor. Among them, the memory stores a computer program that can be run by the processor; when the processor runs the stored computer program, it executes each step of the quality data processing method based on blockchain executed by the quality data block application end in the embodiment of this specification. For a detailed description of each step of the quality data processing method based on blockchain executed by the quality data block application end, please refer to the previous content and will not be repeated.
[0112] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
[0113] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0114] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0115] Computer readable media include permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer readable instructions, data structures, program modules or other data.
[0116] 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0117] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0118] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product 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 codes.
Claims
1. A quality data processing method based on blockchain, applied to a distributed business system including multiple subsystems, where the multiple subsystems are nodes of blockchain; the method comprises: Obtain the quality data generated by the subsystem 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; the call relationship content is used to represent the call relationship between the subsystem and other subsystems in the distributed business 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. According to the method of claim 1, the quality data block further comprises a service identification code; the service identification code is used to identify the service on which the quality data content and the call relationship content are based. 3 . The method according to claim 1 , wherein the quality data block further comprises time content, which is used to indicate the generation time of the quality data content.
4. The method according to claim 1, wherein encapsulating the quality data into a quality data block having a preset format comprises: Filter the quality data using a preset data model; The filtered quality data is subjected to data encapsulation calculation to generate a quality data block conforming to a preset format.
5. The method according to claim 4, wherein the step of performing data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format comprises: The acquired original quality data is calculated based on a big data algorithm to obtain prediction data of quality development trend, and the prediction data is encapsulated as the quality data content into a quality data block conforming to a preset format.
6. According to the method described in any one of claims 1 to 5, the blockchain establishes a corresponding sequence of quality data blocks based on the calling relationship of each subsystem; the organization form of the quality data blocks in the blockchain is a Merkle tree.
7. A quality data processing method based on blockchain, applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of the blockchain; the method comprises: Obtaining a target quality data block from a distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, the quality data content is generated based on quality data generated by business processing by the target subsystem, and the call relationship content is used to represent the call relationship between the target subsystem and other subsystems in the distributed business system; Data processing is performed based on the target quality data block to complete the target quality business processing logic.
8. According to the method of claim 7, the blockchain establishes a corresponding sequence of quality data blocks based on the calling relationship of each subsystem; the quality data blocks are organized in the blockchain in the form of a Merkle tree.
9. A quality data processing device based on blockchain, applied to a distributed business system including multiple subsystems, wherein the multiple subsystems are nodes of blockchain; the device comprises: An acquisition unit obtains quality data generated by a subsystem based on its business processing; an encapsulation unit, 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; the call relationship content is used to represent the call relationship between the subsystem and other subsystems in the distributed business 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. The device according to claim 9, wherein the quality data block further comprises a service identification code for identifying the service on which the quality data content and the call relationship content are based.
11. The device according to claim 9, wherein the quality data block further comprises time content, which is used to indicate the generation time of the quality data content.
12. The device according to claim 9, wherein the packaging unit is further configured to: Filter the quality data using a preset data model; The filtered quality data is subjected to data encapsulation calculation to generate a quality data block conforming to a preset format.
13. The device according to claim 12, wherein the step of performing data encapsulation calculation on the filtered quality data to generate a quality data block conforming to a preset format comprises: The acquired original quality data is calculated based on a big data algorithm to obtain prediction data of quality development trend, and the prediction data is encapsulated as the quality data content into a quality data block conforming to a preset format.
14. According to the device according to any one of claims 9 to 13, the blockchain establishes a corresponding sequence of quality data blocks according to the calling relationship of each subsystem; the organization form of the quality data blocks in the blockchain is a Merkle tree.
15. A quality data processing device based on blockchain, applied to a distributed business system including multiple subsystems, and the multiple subsystems are nodes of blockchain; the device comprises: An acquisition unit acquires a target quality data block from a distributed database of the blockchain, wherein the target quality data block includes quality data content and call relationship content, the quality data content is generated based on quality data generated by business processing by the target subsystem, and the call relationship content is used to represent the call relationship between the target subsystem and other subsystems in the distributed business system; The business processing unit performs data processing based on the target quality data block to complete the target quality business processing logic.
16. According to the device of claim 15, the blockchain establishes a corresponding sequence of quality data blocks based on the calling relationship of each subsystem; the organization form of the quality data blocks in the blockchain is a Merkle tree.
17. A computer device comprising: Memory and processor; The memory stores a computer program executable by the processor; When the processor runs the computer program, the processor performs the method according to any one of claims 1 to 6.
