CN112419014A - Block chain system, data processing method and device thereof and storage medium - Google Patents

Block chain system, data processing method and device thereof and storage medium Download PDF

Info

Publication number
CN112419014A
CN112419014A CN202110065838.9A CN202110065838A CN112419014A CN 112419014 A CN112419014 A CN 112419014A CN 202110065838 A CN202110065838 A CN 202110065838A CN 112419014 A CN112419014 A CN 112419014A
Authority
CN
China
Prior art keywords
block chain
blockchain
sub
characteristic information
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110065838.9A
Other languages
Chinese (zh)
Inventor
王慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yuying College Of Vocational Technology
Original Assignee
Zhejiang Yuying College Of Vocational Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Yuying College Of Vocational Technology filed Critical Zhejiang Yuying College Of Vocational Technology
Priority to CN202110065838.9A priority Critical patent/CN112419014A/en
Publication of CN112419014A publication Critical patent/CN112419014A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24575Query processing with adaptation to user needs using context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a block chain system, a data processing method, a data processing device and a storage medium thereof, wherein the method comprises the following steps: acquiring physiological characteristic information when a user browses a shopping website, and sending the physiological characteristic information to a node shared processing device in a block chain system; when the processing equipment receives the physiological characteristic information, judging whether the task amount currently operated by the processing equipment exceeds a preset amount; if so, acquiring the task with the most block chain nodes in the tasks currently operated by the processing equipment, and suspending the task to release occupied computing resources so that the processing equipment can analyze the physiological characteristic information; and acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result, and generating commodity recommendation information according to the emotional characteristic information. Therefore, the problems that a user cannot obtain a good recommendation result when purchasing other commodities which are not purchased and the block chain resources are insufficient due to commodity recommendation based on historical purchase information can be solved.

Description

Block chain system, data processing method and device thereof and storage medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain system, a data processing method and apparatus thereof, and a storage medium.
Background
The block chain is a distributed shared account book and a database, and has the characteristics of decentralization, non-tampering, whole-course trace retention, traceability, collective maintenance, openness and transparency and the like, so that the block chain has rich application scenes based on the characteristics, and can be applied to shopping.
In the related art, historical purchase information of a user is stored in a block chain, and when the user purchases a commodity, the commodity recommendation is performed according to the identity information of the user and the historical purchase information stored in the block chain. Because the commodity recommendation is performed based on the historical purchase information, only similar commodities which are purchased can be recommended to the user, so that the user cannot obtain a good recommendation result when purchasing other commodities which are not purchased, and meanwhile, when a plurality of users purchase commodities at the same time, the problem of insufficient block chain resources is easily caused due to unreasonable block chain resource allocation.
Disclosure of Invention
Technical problem to be solved
In view of the foregoing disadvantages and deficiencies of the prior art, the present invention provides a blockchain system, a data processing method thereof, a data processing device thereof, and a storage medium thereof, which solve the technical problems that a good recommendation result cannot be obtained when a user purchases other goods that are not purchased due to goods recommendation performed based on historical purchase information, and that when a plurality of users purchase goods simultaneously, the blockchain resources are not allocated reasonably, so that the blockchain resources are easily insufficient.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
in a first aspect, an embodiment of the present invention provides a data processing method based on a blockchain system, including the following steps: the method comprises the steps of obtaining physiological characteristic information when a user browses a shopping website, and sending the physiological characteristic information to a block chain system, wherein the block chain system comprises a plurality of sub-block chain groups, and nodes in the sub-block chain groups share processing equipment; when the processing equipment receives the physiological characteristic information, determining that the processing equipment has new requirements to occupy computing resources, and judging whether the task quantity currently operated by the processing equipment exceeds a preset quantity; if the task amount currently operated by the processing equipment exceeds the preset amount, acquiring a task with the most block chain node in the tasks currently operated by the processing equipment, and suspending the task with the most block chain node from the processing equipment to release occupied computing resources so that the processing equipment can analyze the physiological characteristic information; and acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result, and generating commodity recommendation information according to the emotional characteristic information.
According to the data processing method based on the block chain system, provided by the embodiment of the invention, through analyzing the physiological characteristic information when a user browses a shopping website, acquiring the emotional characteristic information associated with the commodities on the shopping website according to the analysis result, and generating the commodity recommendation information according to the emotional characteristic information, as the emotional characteristic information can directly reflect the current real psychological state of the user, even if the user does not purchase the commodities being browsed, the good commodity recommendation can be performed on the user based on the emotional characteristic information, so that the technical problem that the user cannot obtain a good recommendation result when purchasing other commodities which are not purchased due to the fact that the commodity recommendation is performed based on historical purchase information is solved. Meanwhile, the physiological characteristic information is sent to processing equipment in a block chain system, the processing equipment analyzes the physiological characteristic information, whether the task quantity currently operated by the processing equipment exceeds a preset quantity is judged before the analysis, if yes, the task with the most block chain node in the tasks currently operated by the processing equipment is obtained, and the task with the most block chain node is hung from the processing equipment to release occupied computing resources so as to facilitate the analysis of the physiological characteristic information by the processing equipment, wherein due to the fact that the requirement on the real-time performance of commodity recommendation is not high, data which does not need to be processed in time, such as data related to the commodity recommendation, such as the physiological characteristic information, can be sent to shared processing equipment to be processed, so that the computing resources of the block chain system can be effectively saved, and the shortage of computing resources is avoided.
Optionally, the data processing method based on the blockchain system further includes: when the blockchain system receives a transaction request generated by a user according to the commodity recommendation information, the transaction request is randomly distributed to any one of the sub-blockchain groups, so that each sub-blockchain group receives different transaction requests, and production nodes in different sub-blockchain groups are processed in parallel, wherein each sub-blockchain group has identification information; generating a production node with the accounting right through each sub-block chain group based on a POW (point of identity) consensus mechanism, and performing whole-network broadcasting on the transaction processing result packaged in the corresponding sub-block chain group and the identification information of the sub-block chain group through the production node with the accounting right; each node in the blockchain system verifies and executes the received transaction processing result sequence according to the identification information of the sub-blockchain group to create a serial blockchain.
Optionally, the node sharing the processing device in the chain of subblocks is different from the production node having the accounting rights.
Optionally, the physiological characteristic information includes brain wave information or pulse information.
In a second aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a data processing program based on a blockchain system is stored, and when the data processing program is executed by a processor, the data processing program implements the data processing method based on the blockchain system.
The computer-readable storage medium provided by the embodiment of the invention can effectively solve the technical problems that a good recommendation result cannot be obtained when a user purchases other goods which are not purchased due to the fact that goods are recommended based on historical purchase information by executing the data processing method based on the block chain system, and the block chain resource is easily insufficient due to unreasonable resource allocation when a plurality of users purchase goods simultaneously.
In a third aspect, an embodiment of the present invention provides a blockchain system, which includes a memory, a processor, and a data processing program based on the blockchain system, where the data processing program is stored in the memory and is executable on the processor, and when the processor executes the data processing program, the data processing method based on the blockchain system is implemented.
By executing the data processing method based on the block chain system, the block chain system provided by the embodiment of the invention can effectively solve the technical problems that a good recommendation result cannot be obtained when a user purchases other goods which are not purchased due to commodity recommendation based on historical purchase information, and the block chain resource is insufficient easily due to unreasonable resource allocation when a plurality of users purchase goods simultaneously.
In a fourth aspect, an embodiment of the present invention provides a data processing apparatus based on a blockchain system, including: the acquisition module is used for acquiring physiological characteristic information when a user browses a shopping website; the system comprises a sending module, a block chain system and a processing module, wherein the sending module is used for sending the physiological characteristic information to the block chain system, the block chain system comprises a plurality of sub-block chain groups, and nodes in the plurality of sub-block chain groups share the processing equipment; the determining module is used for determining that the processing equipment has new requirements to occupy computing resources when the processing equipment receives the physiological characteristic information, judging whether the task quantity currently operated by the processing equipment exceeds a preset quantity, acquiring a task with the largest block chain node in the tasks currently operated by the processing equipment when the task quantity currently operated by the processing equipment exceeds the preset quantity, and suspending the task with the largest block chain node from the processing equipment to release the occupied computing resources so that the processing equipment can analyze the physiological characteristic information; and the recommending module is used for acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result and generating commodity recommending information according to the emotional characteristic information.
According to the data processing device based on the block chain system, provided by the embodiment of the invention, through analyzing the physiological characteristic information when the user browses the shopping website, acquiring the emotional characteristic information associated with the commodities on the shopping website according to the analysis result and generating the commodity recommendation information according to the emotional characteristic information, as the emotional characteristic information can directly reflect the current real psychological state of the user, even if the user does not purchase the commodities being browsed, the good commodity recommendation can be performed on the user based on the emotional characteristic information, so that the technical problem that the user cannot obtain a good recommendation result when purchasing other commodities which are not purchased due to the fact that the commodity recommendation is performed based on the historical purchase information is solved. Meanwhile, the physiological characteristic information is sent to processing equipment in a block chain system, the processing equipment analyzes the physiological characteristic information, whether the task quantity currently operated by the processing equipment exceeds a preset quantity is judged before the analysis, if yes, the task with the most block chain node in the tasks currently operated by the processing equipment is obtained, and the task with the most block chain node is hung from the processing equipment to release occupied computing resources so as to facilitate the analysis of the physiological characteristic information by the processing equipment, wherein due to the fact that the requirement on the real-time performance of commodity recommendation is not high, data which does not need to be processed in time, such as data related to the commodity recommendation, such as the physiological characteristic information, can be sent to shared processing equipment to be processed, so that the computing resources of the block chain system can be effectively saved, and the shortage of computing resources is avoided.
Optionally, the data processing apparatus based on the blockchain system further includes: the distribution module is used for randomly distributing the transaction request to any one sub-blockchain group when the blockchain system receives the transaction request generated by the user according to the commodity recommendation information, so that each sub-blockchain group receives different transaction requests, and the production nodes in different sub-blockchain groups are processed in parallel, wherein each sub-blockchain group has identification information; and the creating module generates a production node with the accounting right through each sub-block chain group based on a POW common identification mechanism, and performs whole-network broadcasting on the transaction processing result packaged in the corresponding sub-block chain group and the identification information of the sub-block chain group through the production node with the accounting right, so that each node in the block chain system verifies and executes the received transaction processing result sequence according to the identification information of the sub-block chain group to create a serial block chain.
Optionally, the node sharing the processing device in the chain of subblocks is different from the production node having the accounting rights.
Optionally, the physiological characteristic information includes brain wave information or pulse information.
(III) advantageous effects
The invention has the beneficial effects that: compared with the prior art, the block chain system and the data processing method, device and storage medium thereof can effectively solve the technical problems that the user cannot obtain good recommendation results when purchasing other unpurchased commodities due to commodity recommendation based on historical purchase information, and the block chain resources are not reasonably distributed when a plurality of users purchase commodities simultaneously, so that the block chain resources are easily insufficient, the effects of recommending the commodities which are not purchased and improving the use efficiency of computing resources are achieved.
Drawings
FIG. 1 is a flow chart of a data processing method based on a blockchain system according to an embodiment of the invention;
FIG. 2 is a block chain system according to an embodiment of the invention;
FIG. 3 is a flow chart of a data processing method based on a blockchain system according to another embodiment of the present invention;
FIG. 4 is a block diagram of a data processing apparatus based on a blockchain system according to one embodiment of the present invention;
fig. 5 is a block diagram of a data processing apparatus based on a blockchain system according to another embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
The block chain system and the data processing method, device and storage medium thereof provided by the embodiment of the invention determine that the processing device has new requirements to occupy computing resources when the processing device receives the physiological characteristic information by acquiring the physiological characteristic information when a user browses a shopping website and sending the physiological characteristic information to the node sharing processing device in the block chain system, judge whether the task quantity currently operated by the processing device exceeds a preset quantity, if the task quantity currently operated by the processing device exceeds the preset quantity, acquire the task with the largest block chain node in the tasks currently operated by the processing device, suspend the task with the largest block chain node from the processing device to release the occupied computing resources so that the processing device can analyze the physiological characteristic information, and acquire the emotional characteristic information associated with commodities on the shopping website according to the analysis result, and generates commodity recommendation information according to the emotional characteristic information. The emotion characteristic information can directly reflect the current real psychological state of the user, so that good commodity recommendation can be performed on the user based on the emotion characteristic information even if the user does not purchase browsed commodities, the technical problem that good recommendation results cannot be obtained when the user purchases other unpurchased commodities due to commodity recommendation based on historical purchase information is solved, the effect of recommending the unpurchased commodities is achieved, meanwhile, due to the fact that the requirement on the instantaneity of commodity recommendation is not high, data which do not need to be processed in time, such as data related to commodity recommendation, such as physiological characteristic information, can be sent to shared processing equipment to be processed, the computing resources of a block chain system can be effectively saved, and the problem of insufficient computing resources is avoided.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart of a data processing method based on a blockchain system according to an embodiment of the present invention, and referring to fig. 1, the data processing method based on the blockchain system includes the following steps:
step S101, acquiring physiological characteristic information when a user browses a shopping website, and sending the physiological characteristic information to a block chain system, wherein the block chain system comprises a plurality of sub-block chain groups, and nodes in the plurality of sub-block chain groups share processing equipment.
Specifically, when a user carries out online shopping, the user can browse commodities through a shopping website, and in the process, the shopping website can acquire physiological characteristic information of the user when the user browses the shopping website through corresponding acquisition equipment and send the physiological characteristic information to the block chain system.
For example, the physiological characteristic information may be brain wave information, and may be acquired by a brain wave acquisition device. The brain wave acquisition equipment can be wearable equipment with a brain wave acquisition sensor, when a user browses commodities, the wearable equipment is worn on the brain of the user, the acquisition end of the brain wave acquisition sensor is close to the brain, in the commodity browsing process of the user, commodity information can be converted into brain signals in a thinking environment through some media, the user understands and memorizes commodity information through cognitive processing and generates psychological activity, meanwhile, the brain wave of the user can generate series changes based on the psychological activity of the user and the reaction of emotion, in the process, the brain wave acquisition equipment acquires the brain wave information of the user and sends the brain wave information to a block chain system.
For another example, the physiological characteristic information may be pulse information, which may be acquired by a pulse acquisition device. The pulse acquisition equipment can be wearable equipment with a pulse acquisition sensor, when a user browses commodities, the wearable equipment is worn on the wrist of the user, the acquisition end of the pulse acquisition sensor is made to be attached to the pulse of the wrist of the user, in the commodity browsing process of the user, the pulse of the user can generate series changes based on the psychological activity and emotion reaction of the user, the pulse acquisition equipment acquires the pulse information of the user, and the pulse information is sent to the block chain system.
Of course, the physiological characteristic information may be voice characteristic information or the like as long as the emotional characteristic information of the user can be directly reflected.
The blockchain system is a distributed system sharing accounts and databases, and may include a plurality of subblock chain groups, and nodes in the plurality of subblock chain groups share a processing device. For example, referring to fig. 2, the blockchain system may include three subblock chain groups, each subblock chain group has a plurality of nodes, and some nodes in the three subblock chain groups share a processing device, which is mainly used for processing data that does not need to be processed in time, and may be a server or any other device with certain computing power disposed in the blockchain system. For example, because the timeliness requirement of the user on the commodity recommendation is not high, the physiological characteristic information of the user can be sent to the processing device and processed by the processing device, so that the computing resource of the block chain system is saved.
Step S102, when the processing device receives the physiological characteristic information, determining that the processing device has a new requirement to occupy the computing resource, and judging whether the task amount currently operated by the processing device exceeds a preset amount.
Specifically, when the processing device receives the physiological characteristic information of the user, it can be determined that the processing device has a new requirement and needs to occupy the computing resource, and at this time, the task amount currently running by the processing device is obtained, and whether the task amount exceeds the preset amount is judged.
It should be noted that, the initial value of the task amount currently run by the processing device is 0, when the processing device runs the verification and broadcast task of one node, the task amount is increased by 1, and meanwhile, the processing device is added as one node to the sub-block chain group corresponding to the node, and so on, the task amount currently run by the processing device can be obtained. The preset value is the total number of tasks that the computing resources of the processing device can allow to run at most, and can be specifically determined according to the performance of the processing device.
Step S103, if the task amount currently operated by the processing equipment exceeds the preset amount, acquiring the task with the most block chain node in the tasks currently operated by the processing equipment, and suspending the task with the most block chain node from the processing equipment to release occupied computing resources so that the processing equipment can analyze the physiological characteristic information.
That is, when the amount of tasks currently run by the processing device exceeds the total number of tasks allowed by the processing device, the allocation of computing resources is performed, for example, the task having the most blockchain node among the tasks currently run by the processing device is acquired, and the task having the most blockchain node is suspended from the processing device to release the occupied computing resources, so that the processing device can analyze the physiological characteristic information.
Specifically, the processing device may run multiple tasks at the same time, and the processing device may perform information interaction with the sub-block chain group corresponding to the currently running task to obtain the number of nodes in the sub-block chain group corresponding to the currently running task, determine, according to the number of nodes, a task having the largest block chain node among the currently running task, and then suspend the task from the processing device to release the computing resource occupied by the task, so that the processing device analyzes the physiological characteristic information.
It should be noted that when the processing device receives a plurality of physiological characteristic information, the plurality of physiological characteristic information may be analyzed simultaneously in the case of sufficient computing resources of the processing device, and the plurality of physiological characteristic information may be analyzed one by one in the receiving order in the case of insufficient computing resources of the processing device. That is to say, when the processing device receives a plurality of physiological characteristic information, because the real-time requirement for physiological characteristic information analysis is not high, under the condition that the computing resources of the processing device are limited, the physiological characteristic information is analyzed one by one according to the receiving sequence so as to reduce the occupation of the computing resources of the block chain system, and under the condition that the computing resources of the processing device are sufficient, the physiological characteristic information can be analyzed simultaneously so as to ensure the timeliness of commodity recommendation as much as possible.
And step S104, acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result, and generating commodity recommendation information according to the emotional characteristic information.
Specifically, the processing device may obtain emotional characteristic information of the user by parsing physiological characteristic information of the user. For example, when the physiological characteristic information is brain wave information, a brain wave spectrum of the user may be obtained by analyzing the brain wave information, and emotional characteristic information of the user, which may be positive, neutral, and negative, may be obtained from the brain wave spectrum. For example, when the user sees a favorite commodity, the brain wave spectrum of the user is a, and it can be determined that the emotion of the user is positive; if the user sees a very annoying item, the user's brain wave spectrum is B, and it can be determined that the user's emotion is negative.
For another example, when the physiological characteristic information is pulse information, a pulse spectrum of the user can be obtained by analyzing the pulse information, and emotional characteristic information of the user, which may be positive, neutral, and negative, can be obtained from the pulse spectrum. For example, when the user sees a favorite commodity, the pulse spectrum of the user is C, and it can be determined that the emotion of the user is positive; if the user sees a very annoying item, the user's pulse spectrum is D, at which point it can be determined that the user's mood is negative.
After the processing device analyzes the physiological characteristic information of the user to obtain the emotional characteristic information of the user, the product corresponding to the emotional characteristic information can be obtained from the shopping website according to the emotional characteristic information, and corresponding product recommendation information is generated. For example, when the emotional information of the user is positive, a large number of commodities similar to the commodity currently viewed by the user may be recommended; when the emotion information of the user is negative, a commodity which is not similar to the commodity can be recommended; when the emotion information of the user is neutral, the user can recommend commodities similar to the commodities currently browsed by the user or recommend different commodities, and the proportion of the occupied commodities is high. Thus, commodity recommendation to the user is achieved.
In the above example, by recommending the commodity according to the emotional characteristic information of the user, since the emotional characteristic information can directly reflect the current real psychological state of the user, even if the user does not purchase the commodity being browsed, the commodity can be well recommended to the user based on the emotional characteristic information, thereby solving the technical problem that the user cannot obtain a good recommendation result when purchasing other commodities not purchased due to commodity recommendation based on historical purchase information; meanwhile, the requirement on the real-time performance of commodity recommendation is not high, so that the physiological characteristic information of the user is sent to the shared processing equipment in the block chain system for processing, and the shared processing equipment processes one or more pieces of physiological characteristic information, so that the computing resources of the block chain system can be saved.
In an embodiment of the present invention, referring to fig. 3, the data processing method based on the blockchain system further includes:
step S301, when the blockchain system receives a transaction request generated by a user according to the commodity recommendation information, the transaction request is randomly allocated to any one of the sub-blockchain groups, so that each sub-blockchain group receives different transaction requests, and the production nodes in different sub-blockchain groups are processed in parallel, wherein each sub-blockchain group has identification information.
Specifically, after the block chain system generates commodity recommendation information based on the emotional characteristic information of the user, the commodity recommendation information is sent to a shopping website, and the user can select commodities meeting the needs of the user according to the commodity recommendation information. When a user finishes selecting and conducting transaction, a shopping website sends a transaction request to a blockchain system, the blockchain system randomly distributes the transaction request to any one of the subblock chain groups after receiving the transaction request, and each transaction request is not repeatedly distributed, so that the transaction requests received by each subblock chain group are different, and thus, production nodes in different subblock chain groups can process the received transaction requests in parallel, namely, a plurality of transaction requests can be processed at the same time, so that the processing speed can be increased, the transaction can be quickly finished, and the waiting time of the user can be reduced. For example, referring to fig. 2, when the blockchain system receives a transaction request from a user, the transaction request may be randomly allocated to any one of the subblock chain groups, such as the subblock chain group, and assuming that there are currently 3 transaction requests and randomly allocated to the subblock chain group 1, the subblock chain group 2 and the subblock chain group 3, the production nodes in the three subblock chain groups will process the 3 transaction requests simultaneously to ensure the timeliness of each transaction and reduce the waiting time of the user.
That is, when the same time blockchain system receives a plurality of transaction requests, the plurality of transaction requests can be randomly distributed to a plurality of sub-blockchain groups, and the plurality of sub-blockchain groups simultaneously process the plurality of transaction requests, so as to ensure the timeliness of transactions and reduce the waiting time of users.
Step S302, based on the POW consensus mechanism, a production node with the accounting right is generated through each sub-block chain group, and the packaged transaction processing result in the corresponding sub-block chain group and the identification information of the sub-block chain group are broadcast through the production node with the accounting right.
Specifically, the accounting right of the production node may be distributed through each sub-block chain group based on the POW common identification mechanism, that is, the ownership of the accounting right is determined, then when the transaction processing result reaches the production condition, the production node with the accounting right packages the transaction request in the sub-block chain group to which the production node belongs to form the transaction processing result, and performs the network-wide broadcast on the packaged transaction processing result and the identification information (unique encoding information) of the sub-block chain group, which is generated when the sub-block chain group is divided. The determination method that the transaction processing result reaches the production condition may be various, for example, the production time interval of the transaction processing result is preset, when the production node with the accounting right performs production, the production node with the accounting right judges whether the time difference between the current time and the production time of the previous transaction processing result reaches the preset production time interval of the transaction processing result in real time, and if so, the transaction processing result is determined to reach the production condition.
It should be noted that, when any one of the sub-blockchain groups receives a randomly allocated transaction request, the processing manner of the production node in the sub-blockchain group to the transaction request is various, for example, when the production node in any one of the sub-blockchain groups receives a randomly allocated transaction request, the production node in any one of the sub-blockchain groups judges whether the transaction request is a transaction request allocated to its own sub-blockchain group according to the allocation information of the blockchain system, if so, the transaction request is locally stored, otherwise, the transaction request is not stored but broadcasted, so that the nodes in the same sub-blockchain group may not have a direct connection in the blockchain system, and the transaction request belonging to the own sub-blockchain group can be obtained by broadcasting the transaction request by the nodes in other sub-blockchain groups, thereby reducing the connection load between the nodes.
As an example, when any one of the sub-blockchain groups receives a randomly assigned transaction request, the production nodes in that sub-blockchain group produce the transaction request result according to the assigned transaction request, while nodes of other sub-blockchain groups broadcast the transaction request to which that sub-blockchain group is assigned.
As another example, the blockchain system presets an assignment range, presets a subblock chain group corresponding to each assignment in the assignment range, when a new transaction request is generated, the blockchain system assigns a random value within the assignment range to the transaction request, when any production node in the blockchain receives the new transaction request, determines whether the new transaction request is assigned to the subblock chain group to which the new transaction request belongs according to the random value, if so, locally stores the new transaction request, and if not, broadcasts the new transaction request.
It should be noted that the node sharing the processing device in the sub-block chain group is different from the production node having the accounting right, wherein the node sharing the processing device is mainly used for processing data that does not need to be processed in time to save the computing resources of the block chain system, and the production node having the accounting right is mainly used for processing data that needs to be processed in time in parallel to increase the data processing speed, so the node sharing the processing device is different from the production node having the accounting right.
In step S303, each node in the blockchain system verifies and executes the received transaction processing result sequence according to the identification information of the sub-blockchain group to create a serial blockchain.
That is, when each node in the blockchain system receives the transaction request result, the verification and execution processes of the transaction request result are performed according to the sequence of the sub-blockchain groups (for example, according to the sequence of english letters in the identification information of the sub-blockchain groups, or the sequence of numbers) to construct a serial blockchain.
As an example, when the number of the sub-block chain groups in the block chain system is 3, numbering each sub-block chain group by 1, 2, and 3, when each node in the block chain system receives a broadcast packet (the broadcast packet includes a transaction request result and identification information of the sub-block chain group corresponding to the transaction request result), parsing the broadcast packet to obtain the transaction request result and the identification information of the sub-block chain group corresponding to the transaction request result, and verifying whether the identification information of the sub-block chain group corresponding to the current broadcast packet is 1, if yes, executing the transaction request included in the transaction request result in the broadcast packet, and linking the sub-block chain group to the block chain after the execution is completed; if not, caching the broadcast packet, verifying and executing the transaction request result according to the sequence of the identification information of the sub-block chain group after the broadcast packet with the identification information of the sub-block chain group being 1 is obtained, and linking the corresponding transaction request result to the block chain according to the sequence after the verification and the execution are finished so as to construct a serial block chain.
As another example, a variable may be set in the blockchain system, and the variable may be used to record the identification information of the sub-blockchain group corresponding to the result of the transaction request that has been currently validated and executed, so that each node in the blockchain system determines whether the transaction request result in the current broadcast packet is the transaction request result in the corresponding sequence when receiving the broadcast packet, and after the verification and execution in the numbering order in the sub-blockchain group are completed, the variable is set to an initial value, for example, when the number of the sub-blockchain groups is 3, when the sub-blockchain groups are numbered with 1, 2 and 3, after the transaction request result produced by the sub-blockchain group corresponding to the value 3 is verified and executed, the variable is set to 1, and thus, the transaction request results generated in the blockchain are circularly verified and executed to construct a serial blockchain.
In the above example, considering that the requirement on real-time performance of commodity transaction is high, when the blockchain system receives a plurality of transaction requests of a user, the transaction requests of the user are randomly allocated to any one of the sub-blockchain groups, so that each sub-blockchain group receives different transaction requests, and thus, production nodes in different sub-blockchain groups perform parallel processing on the transaction requests, the processing speed is greatly improved, the transaction is quickly completed, and the waiting time of the user is reduced.
Based on the above embodiments, the inventive concept of the present application lies in that a processing device shared by a node is disposed in a blockchain system, the processing device processes data that does not need to be processed in time, such as physiological characteristic information related to commodity recommendation, and when the processing device has insufficient computing resources, the processing device processes the data in a processing manner one by one, so as to save the computing resources of the blockchain system, and the processing device processes data that needs to be processed in time, such as transaction requests related to commodity transactions, in parallel by using production nodes of a plurality of sub-blockchain groups, so as to increase the processing speed, so that the transactions are completed quickly, and the waiting time of users is reduced. Meanwhile, commodity recommendation is carried out based on the emotional characteristic information of the user, so that good recommendation effect on commodities which are not purchased is achieved.
In summary, the data processing method based on the blockchain system according to the embodiment of the present invention can not only solve the problem that a good recommendation result cannot be obtained when a user purchases other goods that are not purchased due to the fact that goods are recommended based on historical purchase information, but also effectively avoid the problem of insufficient blockchain resources by reasonably allocating computing resources when a plurality of users purchase goods simultaneously, and can ensure timeliness of goods transaction and reduce user waiting time.
In an embodiment of the present invention, a computer-readable storage medium is further provided, on which a data processing program based on a blockchain system is stored, and the data processing program, when executed by a processor, implements the data processing method based on the blockchain system described above.
The computer-readable storage medium provided by the embodiment of the invention can effectively solve the technical problems that a good recommendation result cannot be obtained when a user purchases other goods which are not purchased due to the fact that goods are recommended based on historical purchase information by executing the data processing method based on the block chain system, and the block chain resource is easily insufficient due to unreasonable resource allocation when a plurality of users purchase goods simultaneously.
In an embodiment of the present invention, a blockchain system is further provided, which includes a memory, a processor, and a data processing program based on the blockchain system, where the data processing program is stored in the memory and is executable on the processor, and when the processor executes the data processing program, the data processing method based on the blockchain system is implemented.
By executing the data processing method based on the block chain system, the block chain system provided by the embodiment of the invention can effectively solve the technical problems that a good recommendation result cannot be obtained when a user purchases other goods which are not purchased due to commodity recommendation based on historical purchase information, and the block chain resource is insufficient easily due to unreasonable resource allocation when a plurality of users purchase goods simultaneously.
In an embodiment of the present invention, there is also provided a data processing apparatus based on a blockchain system, and referring to fig. 4, the data processing apparatus 100 based on the blockchain system includes: the system comprises an acquisition module 10, a sending module 20, a determination module 30 and a recommendation module 40.
The acquisition module 10 is used for acquiring physiological characteristic information of a user when the user browses a shopping website; the sending module 20 is configured to send the physiological characteristic information to a blockchain system, where the blockchain system includes a plurality of subblock chain groups, and nodes in the plurality of subblock chain groups share a processing device; the determining module 30 is configured to determine that, when the processing device receives the physiological characteristic information, the processing device has a new requirement to occupy the computing resource, determine whether the task amount currently running by the processing device exceeds a preset amount, acquire a task having a largest blockchain node among the tasks currently running by the processing device when the task amount currently running by the processing device exceeds the preset amount, and suspend the task having the largest blockchain node from the processing device to release the occupied computing resource, so that the processing device parses the physiological characteristic information; and the recommending module 40 is used for acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result and generating commodity recommending information according to the emotional characteristic information.
Optionally, referring to fig. 5, the data processing apparatus 100 based on the blockchain system further includes: an assignment module 50 and a creation module 60. The distribution module 50 is configured to, when the blockchain system receives a transaction request generated by a user according to the commodity recommendation information, randomly distribute the transaction request to any one of the sub-blockchain groups, so that each sub-blockchain group receives a different transaction request, and thus production nodes in different sub-blockchain groups are processed in parallel, where each sub-blockchain group has identification information; the creating module 60 generates a production node with an accounting right through each sub-blockchain group based on the POW consensus mechanism, and performs broadcast over the network on the transaction processing results packaged in the corresponding sub-blockchain group and the identification information of the sub-blockchain group through the production node with the accounting right, so that each node in the blockchain system verifies and executes the received transaction processing results according to the identification information of the sub-blockchain group to create a serial blockchain.
Optionally, the node sharing the processing device in the chain of subblocks is different from the production node having the accounting rights.
Optionally, the physiological characteristic information includes brain wave information or pulse information.
It should be noted that, for the description of the data processing apparatus based on the blockchain system in the present application, reference may be made to the description of the data processing method based on the blockchain system in the present application, and details are not repeated here.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium; either as communication within the two elements or as an interactive relationship of the two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, a first feature may be "on" or "under" a second feature, and the first and second features may be in direct contact, or the first and second features may be in indirect contact via an intermediate. Also, a first feature "on," "above," and "over" a second feature may be directly or obliquely above the second feature, or simply mean that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the second feature, or may simply mean that the first feature is at a lower level than the second feature.
In the description herein, the description of the terms "one embodiment," "some embodiments," "an embodiment," "an example," "a specific example" or "some examples" or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and not restrictive, and that those skilled in the art may make changes, modifications, substitutions and alterations to the above embodiments without departing from the scope of the present invention.

Claims (10)

1. A data processing method based on a block chain system is characterized by comprising the following steps:
the method comprises the steps of obtaining physiological characteristic information when a user browses a shopping website, and sending the physiological characteristic information to a block chain system, wherein the block chain system comprises a plurality of sub-block chain groups, and nodes in the sub-block chain groups share processing equipment;
when the processing equipment receives the physiological characteristic information, determining that the processing equipment has a new requirement to occupy computing resources, and judging whether the task amount currently operated by the processing equipment exceeds a preset amount;
if the task amount currently operated by the processing equipment exceeds a preset amount, acquiring a task with the most block chain node in the tasks currently operated by the processing equipment, and suspending the task with the most block chain node from the processing equipment to release occupied computing resources so that the processing equipment can analyze the physiological characteristic information;
and acquiring emotion characteristic information associated with the commodities on the shopping website according to the analysis result, and generating commodity recommendation information according to the emotion characteristic information.
2. The data processing method based on the blockchain system as claimed in claim 1, further comprising:
when the blockchain system receives a transaction request generated by a user according to the commodity recommendation information, the transaction request is randomly distributed to any one of the sub-blockchain groups, so that each sub-blockchain group receives different transaction requests, and production nodes in different sub-blockchain groups are processed in parallel, wherein each sub-blockchain group has identification information;
generating a production node with the accounting right through each sub-block chain group based on a POW (point of identity) consensus mechanism, and performing whole-network broadcasting on the transaction processing result packaged in the corresponding sub-block chain group and the identification information of the sub-block chain group through the production node with the accounting right;
and each node in the blockchain system verifies and executes the received transaction processing result sequence according to the identification information of the sub-blockchain group to create a serial blockchain.
3. The method of data processing based on a blockchain system of claim 1, wherein a node of the group of the subblocks that shares the processing device is different from a production node that has a billing right.
4. The method for data processing based on a blockchain system according to any one of claims 1 to 3, wherein the physiological characteristic information includes brain wave information or pulse information.
5. A computer-readable storage medium, on which a data processing program based on a blockchain system is stored, the data processing program, when executed by a processor, implementing the method of data processing based on a blockchain system as claimed in any one of claims 1 to 4.
6. A blockchain system comprising a memory, a processor and a data processing program based on the blockchain system, wherein the data processing program is stored in the memory and can run on the processor, and when the processor executes the data processing program, the data processing method based on the blockchain system as claimed in any one of claims 1 to 4 is implemented.
7. A data processing apparatus based on a blockchain system, comprising:
the acquisition module is used for acquiring physiological characteristic information when a user browses a shopping website;
a sending module, configured to send the physiological characteristic information to a blockchain system, where the blockchain system includes a plurality of subblock chain groups, and nodes in the plurality of subblock chain groups share a processing device;
a determining module, configured to determine that, when the processing device receives the physiological characteristic information, the processing device has a new requirement to occupy a computing resource, determine whether a task amount currently running by the processing device exceeds a preset amount, acquire, when the task amount currently running by the processing device exceeds the preset amount, a task having a largest blockchain node among tasks currently running by the processing device, and suspend the task having the largest blockchain node from the processing device to release the occupied computing resource, so that the processing device analyzes the physiological characteristic information;
and the recommending module is used for acquiring emotional characteristic information associated with the commodities on the shopping website according to the analysis result and generating commodity recommending information according to the emotional characteristic information.
8. The data processing apparatus based on a blockchain system of claim 7, further comprising:
the distribution module is used for distributing the transaction request to any one sub-blockchain group randomly when the blockchain system receives a transaction request generated by a user according to the commodity recommendation information, so that each sub-blockchain group receives different transaction requests, and production nodes in different sub-blockchain groups are processed in parallel, wherein each sub-blockchain group has identification information;
and the creating module generates a production node with an accounting right through each sub-block chain group based on a POW (point of identity) consensus mechanism, and performs whole-network broadcasting on the transaction processing result packaged in the corresponding sub-block chain group and the identification information of the sub-block chain group through the production node with the accounting right, so that each node in the block chain system verifies and executes the sequence of the received transaction processing result according to the identification information of the sub-block chain group to create a serial block chain.
9. The data processing apparatus of claim 7, wherein a node of the sub-blockchain group that shares processing devices is different from a production node that owns accounting rights.
10. The block-chain system-based data processing apparatus according to any one of claims 7 to 9, wherein the physiological characteristic information includes brain wave information or pulse information.
CN202110065838.9A 2021-01-19 2021-01-19 Block chain system, data processing method and device thereof and storage medium Pending CN112419014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110065838.9A CN112419014A (en) 2021-01-19 2021-01-19 Block chain system, data processing method and device thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110065838.9A CN112419014A (en) 2021-01-19 2021-01-19 Block chain system, data processing method and device thereof and storage medium

Publications (1)

Publication Number Publication Date
CN112419014A true CN112419014A (en) 2021-02-26

Family

ID=74782951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110065838.9A Pending CN112419014A (en) 2021-01-19 2021-01-19 Block chain system, data processing method and device thereof and storage medium

Country Status (1)

Country Link
CN (1) CN112419014A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240826A (en) * 2018-08-15 2019-01-18 泰链(厦门)科技有限公司 Multi-tiling chain network interior joint shares computational resource allocation method when calculating equipment
CN109309708A (en) * 2018-08-16 2019-02-05 泰链(厦门)科技有限公司 The quickening method, medium, device and block catenary system of block speed of production in block catenary system
CN110570283A (en) * 2019-09-11 2019-12-13 炫盛(上海)科技有限公司 shopping method and system based on block chain
CN111340592A (en) * 2020-02-26 2020-06-26 武汉比特链信息科技有限公司 Artificial intelligence block chain electronic commerce system and method based on 5G communication
CN111915394A (en) * 2020-07-03 2020-11-10 明光市零落信息科技有限公司 Shopping system based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240826A (en) * 2018-08-15 2019-01-18 泰链(厦门)科技有限公司 Multi-tiling chain network interior joint shares computational resource allocation method when calculating equipment
CN109309708A (en) * 2018-08-16 2019-02-05 泰链(厦门)科技有限公司 The quickening method, medium, device and block catenary system of block speed of production in block catenary system
CN110570283A (en) * 2019-09-11 2019-12-13 炫盛(上海)科技有限公司 shopping method and system based on block chain
CN111340592A (en) * 2020-02-26 2020-06-26 武汉比特链信息科技有限公司 Artificial intelligence block chain electronic commerce system and method based on 5G communication
CN111915394A (en) * 2020-07-03 2020-11-10 明光市零落信息科技有限公司 Shopping system based on block chain technology

Similar Documents

Publication Publication Date Title
CN103678408B (en) A kind of method and device of inquiry data
JP6201077B1 (en) Investigation data processing apparatus and investigation data processing method
CN104090894B (en) The method of online parallel computation recommendation information, device and server
CN109255072A (en) Information recalls method and device, computer storage medium, electronic equipment
CN112870726B (en) Resource allocation method, device and storage medium for graphic processor
CN103944830A (en) Computer system
CN110308995A (en) A kind of edge cloud computing service system edges cloud node deployment device
CN108600300A (en) Daily record data processing method and processing device
CN110278283A (en) Ranking list processing method, device, computer readable storage medium and electronic equipment
CN107181817B (en) A kind of wechat extension system Internet-based and method
CN109033404A (en) Daily record data processing method, device and system
CN106936874B (en) Physical source distributing method, apparatus and system
CN106506475A (en) Group management and device
CN102521706A (en) KPI data analysis method and device for the same
CN103475730B (en) The web services system of selection that under a kind of cloud environment, user's degree of certainty guides
CN108629651B (en) Binding online content segments for presentation based on content-specific metrics and inter-content constraints
CN110138988A (en) A kind of method and device of smart allocation visitor
CN110035128A (en) A kind of live streaming dispatching method, device, live broadcast system and storage medium
CN103795758A (en) Content browsing method, content generating method, content interaction method, content browsing terminal, content server and content interaction system
CN108965360A (en) A kind of recommending data processing method and server, computer storage medium
CN103902380B (en) A kind of method, apparatus and equipment determining resource allocation using sandbox
CN106209731B (en) Session service processing method and device
CN112419014A (en) Block chain system, data processing method and device thereof and storage medium
CN106790258B (en) A kind of method and system of screening server network request
CN107910044A (en) object push method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226