Business data processing method, device and storage medium based on blockchain
By obtaining and classifying the processing of business sets in the blockchain system and determining operating parameters and channels, the business processing efficiency of blockchain technology in the deduction channel is improved, the problem of low timeliness in the existing technology is solved, and the implementation of the Faster deduction processing.
Patent Information
- Application Number
- CN202011332333.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-11-24
AI Technical Summary
The batch processing time of existing blockchain technology in the deduction channel is long, resulting in low timeliness in the deduction operation manually initiated by the instructor, affecting the efficiency of business processing.
By obtaining the business set in the blockchain system, performing classification processing, determining the operating parameters and business operation channels of each type of business, and processing the services based on these parameters and channels to realize the classification and efficient processing of services.
The time limit for single deductions for collection of collections has been significantly reduced, from 18 minutes to 0.2 minutes, and the time limit for single deductions for batches has been reduced from 18 minutes to 5 minutes, improving business processing efficiency.
Smart Images

Figure CN112416558B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of blockchain technology and data processing technology, and specifically to a business data processing method, device and storage medium based on blockchain. Background Art
[0002] Blockchain is essentially a continuously growing distributed database maintained by multiple parties, also known as a distributed shared ledger. Its core is to establish a trust relationship between each other through a distributed network, a time-series non-tamperable cryptographic ledger and a distributed consensus mechanism, and to program and operate data through smart contracts composed of automated scripts, ultimately achieving the evolution from information interconnection to value interconnection. For example, blockchain technology is also used in the field of digital medicine.
[0003] At present, there is only a batch deduction channel for deduction channels. The so-called batch deduction channel is for the accounting quotation deduction channel. The fund channel system regularly summarizes data, divides channels, card orders, quotations, prepares data, batches quotations, and then deducts money from Ping An Pay. Each step must be processed by scheduled tasks in turn, involving multiple scheduled tasks in the middle. The processing time is relatively long. It takes about 18 minutes from the accounting quotation fund channel to receiving the return result of the fund channel. The whole process takes a long time. If it is for batch deduction data, such as accounting for daily normal repayments, overdue deductions and other batch operations, 18 minutes is within the acceptable range. It belongs to the system automatically processing in the early morning, and there is no staff waiting for the results. However, for the deduction operation manually initiated by the collection staff, the timeliness is very high. For the collection staff who are waiting for the results online, the waiting time is relatively long. The implementation of various businesses based on blockchain has also become a trend. Therefore, how to improve the efficiency of business processing based on blockchain technology needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a blockchain-based business data processing method, device, and storage medium, which can improve business processing efficiency based on blockchain technology.
[0005] In a first aspect, an embodiment of the present application provides a business data processing method based on blockchain, the method comprising:
[0006] Acquire a business set based on the blockchain system, where the business set includes multiple businesses;
[0007] Classifying the service set to obtain multiple types of services, each type of service including at least one service;
[0008] Determine an operation parameter corresponding to each of the multiple types of services to obtain multiple groups of operation parameters, each type of service corresponding to a group of operation parameters;
[0009] Determine a business operation channel corresponding to each of the multiple business types to obtain multiple business operation channels;
[0010] Based on the multiple service operation channels, the multiple types of services are processed according to the multiple groups of operation parameters.
[0011] In a second aspect, an embodiment of the present application provides a business data processing device based on blockchain, the device comprising: an acquisition unit, a classification unit, a determination unit and a processing unit, wherein:
[0012] The acquisition unit is used to acquire a service set based on the blockchain system, where the service set includes multiple services;
[0013] The classification unit is used to classify the service set to obtain multiple types of services, each type of service including at least one service;
[0014] The determining unit is used to determine the operating parameters corresponding to each type of service in the multiple types of services to obtain multiple groups of operating parameters, each type of service corresponding to a group of operating parameters;
[0015] The determining unit is further configured to determine a service operation channel corresponding to each of the multiple service types to obtain multiple service operation channels;
[0016] The processing unit is used to process the multiple types of services based on the multiple service operation channels and according to the multiple groups of operation parameters.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0020] The implementation of the embodiments of the present application has the following beneficial effects:
[0021] It can be seen that the blockchain-based business data processing method, device and storage medium described in the embodiments of the present application obtain a business set based on the blockchain system, the business set includes multiple businesses, the business set is classified and processed to obtain multiple categories of business, each category of business includes at least one business, the operating parameters corresponding to each category of business in the multiple categories of business are determined, and multiple groups of operating parameters are obtained, each category of business corresponds to a group of operating parameters, and the business operation channels corresponding to each category of business in the multiple categories of business are determined to obtain multiple business operation channels, based on multiple business operation channels and according to multiple groups of operating parameters. Processing the multiple categories of business, in this way, the business can be classified, the corresponding operating parameters can be configured according to the characteristics of each category of business, and each category of business can be processed, which is helpful to improve business processing efficiency based on blockchain technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 This is a flowchart of a business data processing method based on blockchain provided in an embodiment of the present application;
[0024] Figure 2 It is a flowchart of another business data processing method based on blockchain provided in an embodiment of the present application;
[0025] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0026] Figure 4 This is a block diagram of the functional units of a blockchain-based business data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions (such as mobile phones, tablet computers, POS machines, etc.), desktop computers, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, wireless headphones, augmented reality / virtual reality devices, smart glasses), AI robots, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc. For the convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
[0031] The embodiments of the present application are described in detail below.
[0032] See also Figure 1 , Figure 1 This is a flowchart of a business data processing method based on blockchain provided by an embodiment of the present application. As shown in the figure, it is applied to electronic devices. The business data processing method based on blockchain includes:
[0033] 101. Obtain a business set based on a blockchain system, where the business set includes multiple businesses.
[0034] Among them, in a specific implementation, the business set may include multiple businesses, and the multiple businesses may be accounting businesses. The electronic device may take the businesses within a period of time as a business set, or the electronic device may take the businesses handled by a certain salesperson as a business set, or the electronic device may take the businesses of a certain outlet as a business set, or the electronic device may take the businesses of a certain unit or company as a business set. The business may be at least one of the following: normal repayment business, overdue repayment business, early repayment business, loan business, financial management business, etc. The electronic device may obtain the business set based on the blockchain system, and the blockchain system may be used for business processing. The above-mentioned blockchain system may be a digital medical system. Based on the digital medical system, the following functions may be realized: medical informatization, smart medical care, remote medical treatment, electronic information archives, disease risk assessment, precision medicine, health management, AI+medical care, etc., which are not limited here. Blockchain technology can ensure the security between different digital medical systems and can ensure cross-chain data consistency. The business set may be digital medical related businesses. Of course, when the blockchain system can also be other systems, such as ticket purchase system, bank system, stock system, insurance system, school system, enterprise system, government system, etc., which are not limited here.
[0035] In the embodiment of the present application, the blockchain system may include multiple nodes, each node corresponds to an organization or a device, and the blockchain system may be a system built for a company or a region using blockchain technology.
[0036] In the specific implementation, the service may not be initiated by the customer, or the service may be initiated by the system. In this case, taking the deduction service as an example, when the service is initiated by the system, the customer has no perception of the deduction time limit. Different services may correspond to different service identifiers, and the service identifier may be used to indicate the category to which the service belongs. The electronic device may obtain a service set based on the blockchain system at a preset time interval, and the preset time interval may be set by the user or by the system default.
[0037] Optionally, step 101, obtaining a service set based on the blockchain system, may include the following steps:
[0038] A11. Obtain target configuration parameters;
[0039] A12. Search in a preset service database according to the target configuration parameters to obtain the service set.
[0040] Among them, in the embodiment of the present application, the configuration parameter can be at least one of the following: preset time period, preset network point, preset business type, etc., which are not limited here. The preset time period, preset network point, and preset business type can be set by the user or by the system default. Different permissions can correspond to different configuration information. The mapping relationship between permissions and configuration information can be pre-stored in the electronic device, and then the user permissions are obtained, and the target configuration information corresponding to the user permissions is determined according to the mapping relationship between the permissions and the configuration information. The mapping relationship between permissions and configuration information is shown in the following table:
[0041] Permissions Configuration Information Permission 1 Configuration information 1 Permission 2 Configuration information 2 ... ... Permissions Configuration Information
[0042] In a specific implementation, the mapping relationship between permissions and configuration information may be a mapping table, as shown in the above table, through which different permissions and their corresponding configuration information may be queried.
[0043] In a specific implementation, the electronic device may store a large number of services in a preset service database, each service may correspond to a time point, a network point, and a service type, and may also include information about the service provider who handles the service, and the service provider information may include at least one of the following: name, work number, age, mobile phone number, landline number, etc., which are not limited here. In a specific implementation, the electronic device may obtain target configuration parameters, and search in the preset database according to the target configuration parameters to obtain a service set, so that the service set required by the user can be obtained.
[0044] Optionally, the above step 101, obtaining a service set based on the blockchain system, may include the following steps:
[0045] B11. Obtain target identity information;
[0046] B12. Determine the target service allocation identifier corresponding to the target identity information according to the mapping relationship between the preset identity information and the service allocation identifier;
[0047] B13. Sending a service acquisition instruction to a server based on the blockchain system, wherein the service acquisition instruction carries the target service allocation identifier;
[0048] B14. Receive a service set corresponding to the target service allocation identifier sent by the server.
[0049] Among them, in the embodiment of the present application, the identity information can be at least one of the following: work number, user name, identity level, position, years of service, etc., which are not limited here. The mapping relationship between the preset identity information and the business allocation identifier can be pre-stored in the electronic device. The business allocation identifier is used to index the corresponding business to the server. Of course, the business allocation identifier can also include the IP address of the server, and a business acquisition request can be sent to the corresponding server based on the business allocation identifier.
[0050] In a specific implementation, the electronic device can obtain the target identity information, and determine the target business allocation identifier corresponding to the target identity information according to the mapping relationship between the preset identity information and the business allocation identifier, and then send a business acquisition instruction to the server based on the blockchain system. The business acquisition instruction carries the target business allocation identifier. The server can respond to the business acquisition instruction, obtain the business set corresponding to the target business allocation identifier from the database, and send the business set to the electronic device. The electronic device can receive the business set corresponding to the target business allocation identifier sent by the server. The server can be a cloud server, and the business can be stored on the server, which greatly reduces the risk of local storage.
[0051] Optionally, step 101, before obtaining the service set based on the blockchain system, may include the following steps:
[0052] C1. Obtain the business volume of the business to be processed;
[0053] C2. When the business volume is greater than a preset amount, execute the step of obtaining the business volume.
[0054] Among them, the preset number can be set by the user or by the system default. The business volume can be understood as the number of businesses or the size of the memory occupied by the business. In a specific implementation, the electronic device can obtain the business volume of the business to be processed. When the business volume is greater than the preset number, the step of obtaining the business volume is executed. Otherwise, the subsequent steps are not executed. The step of obtaining the business volume is executed only when the business accumulation reaches the preset number. In this way, the business can be processed centrally and the business processing efficiency can be improved based on blockchain technology. Of course, the preset number can be set dynamically, and different business types can correspond to different preset numbers, or different regions can also correspond to different preset numbers.
[0055] 102. Classify the service set to obtain multiple types of services.
[0056] In a specific implementation, the electronic device may classify and process part or all of the services in the service set according to the service type to obtain multiple types of services. Each type of service may correspond to a thread or a process. The number of categories may be determined by the number of service types or by the source of the service. Each type of service may correspond to a service operation channel, which may include: a normal channel, a fast channel, and the like.
[0057] Optionally, the above step 102, classifying the service set to obtain multiple types of services, may include the following steps:
[0058] D21, obtaining a service identifier of each service in the service set;
[0059] D22. Classify the service set according to the service identifier to obtain multiple types of services.
[0060] Among them, each business in the business set can include a business identifier, which is used to mark the business type or business status. The electronic device can obtain the business identifier of each business in the business set based on the blockchain system, and then, the business set can be classified and processed according to the business identifier to obtain multiple types of business. In this way, business classification can be achieved.
[0061] Optionally, the above step 102, classifying the service set to obtain multiple types of services, may include the following steps:
[0062] E21. Determine the complexity of each service in the service set to obtain multiple complexities;
[0063] E22. Classify the service set according to the multiple complexities to obtain the multiple types of services.
[0064] In a specific implementation, different services correspond to different complexities. For example, the complexity can be determined based on the service processing time. The longer the service processing time, the higher the complexity, and the shorter the service processing time, the lower the complexity. A mapping relationship between service processing time and complexity is preset, and then the complexity corresponding to the service processing time of each service is determined based on the mapping relationship.
[0065] In a specific implementation, the electronic device can determine the complexity of each service in the service set and obtain multiple complexities. It can also set multiple thresholds. Then, the service set can be classified according to the multiple complexities to obtain the multiple types of services. The above thresholds can be set in advance or can be determined based on multiple complexities. For example, any two of the multiple complexities can be selected as thresholds.
[0066] 103. Determine an operation parameter corresponding to each type of service in the multiple types of services to obtain multiple groups of operation parameters, where each type of service corresponds to a group of operation parameters.
[0067] In the embodiment of the present application, the operation parameter may be at least one of the following: operation process, operation instruction, operation time, etc., which are not limited here. Different services may correspond to different operation processes. Each type of service may correspond to at least one thread or process, or each type of service may correspond to a data processing channel. The electronic device may determine the operation parameters corresponding to each type of service in multiple types of services, obtain multiple operation parameters, and each type of service corresponds to an operation parameter. In this way, the business processing efficiency can be improved based on blockchain technology. Each process or thread may correspond to a normal channel or a fast channel.
[0068] Optionally, the above step 103, determining the operation parameters corresponding to each type of service in the multiple types of services, may include the following steps:
[0069] 31. Determine a target service processing algorithm corresponding to the i-th service according to a preset mapping relationship between the service type and the service processing algorithm, wherein the i-th service is any service among the multiple services;
[0070] 32. Determine the target business volume corresponding to the i-th type of business;
[0071] 33. Determine the target adjustment parameter corresponding to the target business volume according to the preset mapping relationship between the business volume and the adjustment parameter;
[0072] 34. Obtaining initial algorithm control parameters corresponding to the target service processing algorithm;
[0073] 35. Adjust the initial algorithm control parameter according to the target adjustment parameter to obtain the target algorithm control parameter;
[0074] 36. Use the target service processing algorithm and the target algorithm control parameters as operation parameters of the i-th type of service.
[0075] Among them, the electronic device can pre-store the mapping relationship between the preset business type and the business processing algorithm, as well as the mapping relationship between the preset business volume and the adjustment parameter. Different businesses can correspond to different business processing algorithms, and different business volumes can correspond to different adjustment parameters. The adjustment parameters can adjust the processing efficiency of the business or the accuracy of the business processing.
[0076] In a specific implementation, taking the i-th type of business as an example, the i-th type of business is any type of business among multiple types of business, the electronic device can determine the target business processing algorithm corresponding to the i-th type of business according to the mapping relationship between the preset business type and the business processing algorithm, and determine the target business volume corresponding to the i-th type of business, and then, according to the mapping relationship between the preset business volume and the adjustment parameter, determine the target adjustment parameter corresponding to the target business volume. Each type of business can correspond to a business processing algorithm, and the business processing algorithm can correspond to the initial algorithm control parameter, and the algorithm control parameter is used to adjust the execution efficiency of the algorithm or the execution accuracy of the algorithm or the execution time of the algorithm.
[0077] Furthermore, the electronic device can obtain initial algorithm control parameters corresponding to the target business processing algorithm, adjust the initial algorithm control parameters according to the target adjustment parameters, and obtain the target algorithm control parameters. The initial algorithm control parameters may include one or more parameters. Specifically, the target algorithm control parameters = (1 + target adjustment parameters) * initial algorithm control parameters. Finally, the target business processing algorithm and the target algorithm control parameters can be used as operating parameters for the i-th category of business. In this way, the progress of batch processing can be guaranteed.
[0078] 104. Determine a business operation channel corresponding to each of the multiple business types to obtain multiple business operation channels.
[0079] Each type of service may correspond to a service operation channel, and then the electronic device may determine the service operation channel corresponding to each type of service, and then multiple service operation channels may be obtained.
[0080] 105. Process the multiple types of services based on the multiple service operation channels and according to the multiple operation parameters.
[0081] In a specific implementation, the electronic device can process the multiple business operation channels based on the operation parameters corresponding to each type of business. In this way, the business processing efficiency can be improved based on blockchain technology.
[0082] For example, in the embodiment of the present application, the original batch deduction channel can be retained, which is specifically used for deductions with low timeliness requirements. For example, the batch deduction operation initiated by the system at dawn every day involves a large amount of data and a relatively complex deduction scenario. The entire process of channel division, card order, quotation, data preparation, and batch quotation is retained. Then, a fast and customized real-time channel is provided for scenarios with high timeliness requirements. Since the real-time channel scenario is relatively simple, such as manual deductions by expediters or loans for consumption scenarios, the deduction channel for fixed scenarios can be fixed, so there is no need for channel division and batch processing procedures. The quotation is issued immediately after receiving the data, and there is no need for scheduled task rotation training to wait for processing. After optimizing the batch, the average timeliness of a single deduction for collection is reduced from 18 minutes to 0.2 minutes, and the average timeliness of a single deduction for batches is reduced from 18 minutes to 5 minutes. Different processes of this application can correspond to different channels, so there are two options for accounting quotation to choose from, batch deduction and fast channel. Accounting can push the logo to the fund channel according to its actual time requirements. The fund channel is determined by the identification pushed by the accounting to determine whether it is a batch channel or a fast channel. This solves the problem of long online waiting time for collectors, thus improving business processing efficiency based on blockchain technology.
[0083] In the specific implementation, the accounting quotation scenario is more flexibly configured and more in line with the actual application scenario. The accounting quotation can be independently selected according to the specific scenario to meet the business requirements for the timeliness of deductions. In addition, the problem of long online waiting time for collectors is solved, and the loan issuance for consumption types is also faster. For batch deductions with low timeliness requirements but more complex scenarios, the batch deduction channel is used, which is more stable. For deductions with higher timeliness, the timeliness can be greatly improved: the average timeliness of a single deduction is reduced from 18 minutes to 0.2 minutes, and the average timeliness of a single batch deduction is reduced from 18 minutes to 5 minutes.
[0084] Optionally, step 105, processing the multiple types of services according to the multiple operating parameters, may include the following steps:
[0085] 51. Determine the number of groups corresponding to the multiple groups of operating parameters;
[0086] 52. Configure a corresponding number of processes according to the number of groups to obtain a plurality of processes;
[0087] 53. Process the multiple types of services according to the multiple processes and the multiple operating parameters.
[0088] Among them, the electronic device can determine the number of groups corresponding to multiple groups of operating parameters, and configure the corresponding number of processes according to the number of groups to obtain multiple processes, one process corresponds to at least one group, for example, each group corresponds to one process, and for example, two groups correspond to one process. Furthermore, the electronic device can process multiple types of services according to multiple processes and multiple operating parameters, so that business batch processing can be achieved, that is, the corresponding processes can be configured according to the number of operating parameters, and multiple types of services can be processed based on multiple processes, which helps to improve business processing efficiency based on blockchain technology.
[0089] It can be seen that the blockchain-based business data processing method described in the embodiment of the present application obtains a business set based on the blockchain system, and the business set includes multiple businesses. The business set is classified and processed to obtain multiple categories of business, each category of business includes at least one business, and the operating parameters corresponding to each category of business in the multiple categories of business are determined to obtain multiple groups of operating parameters, each category of business corresponds to a group of operating parameters, and the business operation channels corresponding to each category of business in the multiple categories of business are determined to obtain multiple business operation channels. Based on the multiple business operation channels, the multiple categories of business are processed according to the multiple groups of operating parameters. In this way, the business can be classified, and the corresponding operating parameters can be configured according to the characteristics of each category of business, and each category of business can be processed, which is helpful to improve the business processing efficiency based on blockchain technology.
[0090] See also Figure 2 , Figure 2: is a flowchart of a business data processing method based on blockchain provided by an embodiment of the present application, which is applied to electronic devices. As shown in the figure, the business data processing method based on blockchain includes:
[0091] 201. Obtain a business set based on a blockchain system, where the business set includes multiple businesses.
[0092] In a specific implementation, a business set may include multiple businesses, which may be accounting businesses. The electronic device may take businesses within a period of time as a business set, or the electronic device may take businesses handled by a certain business operator as a business set, or the electronic device may take businesses of a certain outlet as a business set, or the electronic device may take businesses of a certain unit or company as a business set. The business may be at least one of the following: normal repayment business, overdue repayment business, early repayment business, loan business, financial management business, etc.
[0093] 202. Obtain target business environment parameters.
[0094] Among them, in an embodiment of the present application, the target business environment parameters may include software business environment parameters, and / or hardware business environment parameters. Software business environment parameters may include at least one of the following: CPU temperature, GPU temperature, foreground application type, number of processes, CPU resource occupancy, GPU resource occupancy, memory size, screen resolution, system type, etc., which are not limited here. Hardware business environment parameters may include at least one of the following: CPU model, GPU model, number of CPU cores, CPU processing rate, GPU processing rate, etc., which are not limited here. The target business environment parameters are the business environment parameters under the current environment.
[0095] 203. Determine the target classification category quantity corresponding to the target business environment parameter according to the preset mapping relationship between the business environment parameter and the classification category quantity.
[0096] Among them, in an embodiment of the present application, the mapping relationship between preset business environment parameters and the number of classification categories can be pre-stored in the electronic device, and the business environment parameters may include software business environment parameters, and / or hardware business environment parameters. Software business environment parameters may include at least one of the following: CPU temperature, GPU temperature, foreground application type, number of processes, CPU resource occupancy, GPU resource occupancy, memory size, screen resolution, system type, etc., which are not limited here. Hardware business environment parameters may include at least one of the following: CPU model, GPU model, number of CPU cores, CPU processing rate, GPU processing rate, etc., which are not limited here. Different software or hardware environments can accommodate different channels. Therefore, the corresponding number of classification categories can be determined based on their business environment parameters. In this way, the mapping relationship between the preset test environment parameters and the number of classification categories for the normal operation of business processing can be guaranteed.
[0097] 204. Classify the service set according to the number of target classification categories to obtain multiple types of services, each type of service including at least one service.
[0098] In a specific implementation, the electronic device can classify the service set according to the number of target classification categories to obtain multiple types of services, each type of service includes at least one service, that is, the number of categories of the multiple types of services is equal to the number of target classification categories.
[0099] 205. Determine an operation parameter corresponding to each type of service in the multiple types of services to obtain multiple groups of operation parameters, where each type of service corresponds to a group of operation parameters.
[0100] In the embodiment of the present application, the operation parameter may be at least one of the following: operation process, operation instruction, operation time, operation channel, etc., which are not limited here. Different services may correspond to different operation processes. Each type of service may correspond to at least one thread or process, or each type of service may correspond to a data processing channel. The electronic device may determine the operation parameters corresponding to each type of service in multiple types of services, obtain multiple operation parameters, and each type of service corresponds to an operation parameter. In this way, the business processing efficiency can be improved based on blockchain technology. Each process or thread may correspond to a normal channel or a fast channel.
[0101] 206. Determine a business operation channel corresponding to each of the multiple business types to obtain multiple business operation channels.
[0102] 207. Based on the multiple service operation channels, process the multiple types of services according to the multiple groups of operation parameters.
[0103] In a specific implementation, electronic devices can process each type of business according to the operating parameters corresponding to it, thereby improving business processing efficiency based on blockchain technology.
[0104] Of course, the specific description of the above steps 201, 206, and 207 can refer to the above Figure 1 The corresponding steps described are not repeated here.
[0105] It can be seen that the blockchain-based business data processing method described in the embodiment of the present application obtains a business set based on the blockchain system, the business set includes multiple businesses, obtains target business environment parameters, and determines the number of target classification categories corresponding to the target business environment parameters according to the mapping relationship between the preset business environment parameters and the number of classification categories. The business set is classified and processed according to the number of target classification categories to obtain multiple types of businesses, each type of business includes at least one business, and the operation parameters corresponding to each type of business in the multiple types of businesses are determined to obtain multiple groups of operation parameters, each type of business corresponds to a group of operation parameters, and the business operation channels corresponding to each type of business in the multiple types of businesses are determined to obtain multiple business operation channels. Based on the multiple business operation channels and according to the multiple groups of operation parameters, the multiple types of businesses are processed. In this way, the business can be classified according to the business environment, and the corresponding operation parameters are configured according to the characteristics of each type of business, and each type of business is processed, which is helpful to improve the business processing efficiency based on blockchain technology.
[0106] In accordance with the above embodiment, please refer to Figure 3 , Figure 3 : is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0107] Acquire a business set based on the blockchain system, where the business set includes multiple businesses;
[0108] Classifying the service set to obtain multiple types of services, each type of service including at least one service;
[0109] Determine an operation parameter corresponding to each of the multiple types of services to obtain multiple groups of operation parameters, each type of service corresponding to a group of operation parameters;
[0110] Determine a business operation channel corresponding to each of the multiple business types to obtain multiple business operation channels;
[0111] Based on the multiple service operation channels, the multiple types of services are processed according to the multiple groups of operation parameters.
[0112] It can be seen that the electronic device described in the embodiment of the present application obtains a business set based on the blockchain system, the business set includes multiple businesses, classifies and processes the business set to obtain multiple categories of business, each category of business includes at least one business, determines the operating parameters corresponding to each category of business in the multiple categories of business, obtains multiple groups of operating parameters, each category of business corresponds to a group of operating parameters, determines the business operation channels corresponding to each category of business in the multiple categories of business, obtains multiple business operation channels, and processes the multiple categories of business based on the multiple business operation channels and according to the multiple groups of operating parameters. In this way, the business can be classified, the corresponding operating parameters can be configured according to the characteristics of each category of business, and each category of business can be processed, which is helpful to improve the business processing efficiency based on blockchain technology.
[0113] Optionally, in the aspect of acquiring a service set based on a blockchain system, the program includes instructions for performing the following steps:
[0114] Get target configuration parameters;
[0115] The service set is obtained by searching in a preset service database according to the target configuration parameters.
[0116] Optionally, in the aspect of acquiring a service set based on a blockchain system, the program includes instructions for performing the following steps:
[0117] Obtain target identity information;
[0118] Determine the target service allocation identifier corresponding to the target identity information according to the mapping relationship between the preset identity information and the service allocation identifier;
[0119] Sending a service acquisition instruction to a server based on the blockchain system, wherein the service acquisition instruction carries the target service allocation identifier;
[0120] A service set corresponding to the target service allocation identifier sent by the server is received.
[0121] Optionally, in the aspect of classifying the service set to obtain multiple types of services, the program includes instructions for executing the following steps:
[0122] Obtaining a service identifier for each service in the service set;
[0123] The service set is classified according to the service identifier to obtain multiple types of services.
[0124] Optionally, in the aspect of classifying the service set to obtain multiple types of services, the program includes instructions for executing the following steps:
[0125] Determine the complexity of each business in the business set to obtain multiple complexities;
[0126] The service set is classified according to the multiple complexities to obtain the multiple types of services.
[0127] Optionally, in the aspect of determining the operating parameters corresponding to each type of service in the multiple types of services to obtain multiple groups of operating parameters, wherein each type of service corresponds to a group of operating parameters, the program includes instructions for executing the following steps:
[0128] Determining the number of groups corresponding to the multiple groups of operating parameters;
[0129] According to the number of groups, a corresponding number of processes is configured to obtain a plurality of processes;
[0130] The multiple types of services are processed in parallel according to the multiple processes and the multiple operating parameters.
[0131] Optionally, before acquiring the service set based on the blockchain system, the program further includes instructions for executing the following steps:
[0132] Obtaining the business volume of pending business;
[0133] When the business volume is greater than a preset amount, the step of acquiring a business set based on the blockchain system is executed.
[0134] Optionally, in determining the operating parameters corresponding to each of the multiple types of services, the program includes instructions for performing the following steps:
[0135] Determine, according to a preset mapping relationship between a service type and a service processing algorithm, a target service processing algorithm corresponding to an i-th service, wherein the i-th service is any one of the multiple services;
[0136] Determining a target traffic volume corresponding to the i-th type of traffic;
[0137] Determine the target adjustment parameter corresponding to the target business volume according to the preset mapping relationship between the business volume and the adjustment parameter;
[0138] Obtaining initial algorithm control parameters corresponding to the target service processing algorithm;
[0139] Adjusting the initial algorithm control parameters according to the target adjustment parameters to obtain target algorithm control parameters;
[0140] The target service processing algorithm and the target algorithm control parameters are used as operation parameters of the i-th type service.
[0141] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0142] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0143] Figure 4 400 is a functional unit composition block diagram of a business data processing device 400 based on blockchain involved in an embodiment of the present application. The business data processing device 400 based on blockchain includes: an acquisition unit 401, a classification unit 402, a determination unit 403 and a processing unit 404, wherein:
[0144] The acquisition unit 401 is used to acquire a service set based on the blockchain system, where the service set includes multiple services;
[0145] The classification unit 402 is used to classify the service set to obtain multiple types of services, each type of service includes at least one service;
[0146] The determining unit 403 is used to determine the operating parameters corresponding to each type of service in the multiple types of services, and obtain multiple groups of operating parameters, each type of service corresponding to a group of operating parameters;
[0147] The determining unit 403 is further configured to determine a service operation channel corresponding to each of the multiple service types to obtain multiple service operation channels;
[0148] The processing unit 404 is configured to process the multiple types of services based on the multiple service operation channels and according to the multiple groups of operation parameters.
[0149] It can be seen that the blockchain-based business data processing device described in the embodiment of the present application obtains a business set based on the blockchain system, the business set includes multiple businesses, classifies the business set to obtain multiple categories of business, each category of business includes at least one business, determines the operating parameters corresponding to each category of business in the multiple categories of business, obtains multiple groups of operating parameters, each category of business corresponds to a group of operating parameters, determines the business operation channels corresponding to each category of business in the multiple categories of business, obtains multiple business operation channels, and processes the multiple categories of business based on the multiple business operation channels and according to the multiple groups of operating parameters. In this way, the business can be classified, the corresponding operating parameters can be configured according to the characteristics of each category of business, and each category of business can be processed, which is helpful to improve the business processing efficiency based on blockchain technology.
[0150] Optionally, in the aspect of acquiring a service set based on a blockchain system, the acquiring unit 401 is specifically used for:
[0151] Get target configuration parameters;
[0152] The service set is obtained by searching in a preset service database according to the target configuration parameters.
[0153] Optionally, in the aspect of acquiring a service set based on a blockchain system, the acquiring unit 401 is specifically used for:
[0154] Obtain target identity information;
[0155] Determine the target service allocation identifier corresponding to the target identity information according to the mapping relationship between the preset identity information and the service allocation identifier;
[0156] Sending a service acquisition instruction to a server based on the blockchain system, wherein the service acquisition instruction carries the target service allocation identifier;
[0157] A service set corresponding to the target service allocation identifier sent by the server is received.
[0158] Optionally, in the aspect of classifying the service set to obtain multiple types of services, the classification unit 402 is specifically configured to:
[0159] Obtaining a service identifier for each service in the service set;
[0160] The service set is classified according to the service identifier to obtain multiple types of services.
[0161] Optionally, in the aspect of classifying the service set to obtain multiple types of services, the classification unit 402 is specifically configured to:
[0162] Determine the complexity of each business in the business set to obtain multiple complexities;
[0163] The service set is classified according to the multiple complexities to obtain the multiple types of services.
[0164] Optionally, in determining the operating parameters corresponding to each type of service in the multiple types of services to obtain multiple groups of operating parameters, each type of service corresponding to a group of operating parameters, the determining unit 403 is specifically configured to:
[0165] Determining the number of groups corresponding to the multiple groups of operating parameters;
[0166] According to the number of groups, a corresponding number of processes is configured to obtain a plurality of processes;
[0167] The multiple types of services are processed in parallel according to the multiple processes and the multiple operating parameters.
[0168] Optionally, before acquiring the service set based on the blockchain system, the device 400 is further configured to perform the following functions:
[0169] Obtaining the business volume of pending business;
[0170] When the business volume is greater than a preset number, the acquisition unit 401 executes the step of acquiring a business set based on the blockchain system.
[0171] Optionally, in determining the operation parameters corresponding to each type of service in the multiple types of services, the determining unit 403 is specifically configured to:
[0172] Determine, according to a preset mapping relationship between a service type and a service processing algorithm, a target service processing algorithm corresponding to an i-th service, wherein the i-th service is any one of the multiple services;
[0173] Determining a target traffic volume corresponding to the i-th type of traffic;
[0174] Determine the target adjustment parameter corresponding to the target business volume according to the preset mapping relationship between the business volume and the adjustment parameter;
[0175] Obtaining initial algorithm control parameters corresponding to the target service processing algorithm;
[0176] Adjusting the initial algorithm control parameters according to the target adjustment parameters to obtain target algorithm control parameters;
[0177] The target service processing algorithm and the target algorithm control parameters are used as operation parameters of the i-th type service.
[0178] It can be understood that the functions of each program module of the blockchain-based business data processing device of this embodiment can be specifically implemented according to the method in the above-mentioned method embodiment, and its specific implementation process can refer to the relevant description of the above-mentioned method embodiment, which will not be repeated here.
[0179] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0180] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0181] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0182] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0183] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0184] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0186] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0187] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0188] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A business data processing method based on blockchain, characterized in that: The method comprises: Acquire a business set based on the blockchain system, where the business set includes multiple businesses; Classifying the service set to obtain multiple types of services, each type of service including at least one service; Determine an operation parameter corresponding to each of the multiple types of services to obtain multiple groups of operation parameters, each type of service corresponding to a group of operation parameters; Determine a business operation channel corresponding to each of the multiple business types to obtain multiple business operation channels; Based on the multiple service operation channels, and according to the multiple groups of operation parameters, the multiple types of services are processed; The determining of the operation parameters corresponding to each type of service in the multiple types of services includes: Determine, according to a preset mapping relationship between a service type and a service processing algorithm, a target service processing algorithm corresponding to an i-th service, wherein the i-th service is any one of the multiple services; Determining a target traffic volume corresponding to the i-th type of traffic; Determine the target adjustment parameter corresponding to the target business volume according to the preset mapping relationship between the business volume and the adjustment parameter; Obtaining initial algorithm control parameters corresponding to the target service processing algorithm; Adjusting the initial algorithm control parameters according to the target adjustment parameters to obtain target algorithm control parameters; The target service processing algorithm and the target algorithm control parameters are used as operation parameters of the i-th type service.
2. The method according to claim 1, characterized in that: The obtaining of a business set based on a blockchain system includes: Obtain target identity information; Determine the target service allocation identifier corresponding to the target identity information according to the mapping relationship between the preset identity information and the service allocation identifier; Sending a service acquisition instruction to a server based on the blockchain system, wherein the service acquisition instruction carries the target service allocation identifier; A service set corresponding to the target service allocation identifier sent by the server is received.
3. The method according to claim 1 or 2, characterized in that: The service set is classified to obtain multiple types of services, including: Obtaining a service identifier for each service in the service set; The service set is classified according to the service identifier to obtain multiple types of services.
4. The method according to claim 1 or 2, characterized in that: The service set is classified to obtain multiple types of services, including: Determine the complexity of each business in the business set to obtain multiple complexities; The service set is classified according to the multiple complexities to obtain the multiple types of services.
5. The method according to claim 1 or 2, characterized in that: The determining of the operation parameters corresponding to each type of service in the multiple types of services to obtain multiple groups of operation parameters, each type of service corresponding to a group of operation parameters, includes: Determining the number of groups corresponding to the multiple groups of operating parameters; According to the number of groups, a corresponding number of processes is configured to obtain a plurality of processes; The multiple types of services are processed in parallel according to the multiple processes and the multiple operating parameters.
6. The method according to claim 1 or 2, characterized in that: Before acquiring the service set based on the blockchain system, the method further includes: Obtaining the business volume of pending business; When the business volume is greater than a preset amount, the step of acquiring a business set based on the blockchain system is executed.
7. A business data processing device based on blockchain, characterized in that: The device comprises: an acquisition unit, a classification unit, a determination unit and a processing unit, wherein: The acquisition unit is used to acquire a service set based on the blockchain system, where the service set includes multiple services; The classification unit is used to classify the service set to obtain multiple types of services, each type of service including at least one service; The determining unit is used to determine the operating parameters corresponding to each type of service in the multiple types of services to obtain multiple groups of operating parameters, each type of service corresponding to a group of operating parameters; The determining unit is further configured to determine a service operation channel corresponding to each of the multiple service types to obtain multiple service operation channels; The processing unit is used to process the multiple types of services based on the multiple service operation channels and according to the multiple groups of operation parameters; The determining of the operation parameters corresponding to each type of service in the multiple types of services includes: Determine, according to a preset mapping relationship between a service type and a service processing algorithm, a target service processing algorithm corresponding to an i-th service, wherein the i-th service is any one of the multiple services; Determining a target traffic volume corresponding to the i-th type of traffic; Determine the target adjustment parameter corresponding to the target business volume according to the preset mapping relationship between the business volume and the adjustment parameter; Obtaining initial algorithm control parameters corresponding to the target service processing algorithm; Adjusting the initial algorithm control parameters according to the target adjustment parameters to obtain target algorithm control parameters; The target service processing algorithm and the target algorithm control parameters are used as operation parameters of the i-th type service.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 6.
