Blockchain Secondary-Node Processing: Parallel Execution, Serial Writing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The transaction processing efficiency of secondary nodes in a blockchain is low due to the need to execute transactions in series to maintain consistency with primary nodes, despite the primary nodes being able to process transactions in parallel.
Innovation Solution
Generate execution information indicating parallel execution of transactions and a write order for the secondary node to sequentially write execution results, ensuring consistency and improving efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the secondary node executes transactions in series to ensure consistency with the primary node, then the consistency between execution results is maintained, but the transaction processing efficiency of the secondary node decreases
Solution Approach 1:
The patent divides the transaction execution process into two independent segments: transaction execution (which can be done in parallel) and result writing (which must be done in series according to write order). This segmentation allows the secondary node to execute transactions in parallel for efficiency while maintaining serial writing for consistency, resolving the contradiction between productivity and reliability.
Solution Approach 2:
The primary node performs preliminary actions by generating execution information and write order information before transmitting to the secondary node. The write order information pre-establishes the sequence in which results should be written, allowing the secondary node to execute transactions in parallel while ensuring consistent result writing without needing to execute transactions serially.
2Productivity
If the primary node executes transactions in parallel to improve processing speed, then the transaction processing efficiency increases, but the hardware configuration and resource allocation requirements become more complex
Solution Approach 1:
The patent introduces execution information and write order information as intermediary data structures that mediate between the primary node's parallel execution capability and the secondary node's execution requirements. These intermediaries allow the system to achieve parallel processing efficiency without requiring complex hardware configurations at each node, as the coordination logic is encapsulated in the transmitted information rather than in the nodes' hardware architecture.
Data Source
AI summary
A transaction processing method includes: receiving, by a secondary node, execution information including transaction identification information and write information including a write order of execution results that are transmitted by a primary node; then executing, in parallel, a plurality of transactions corresponding to the transaction identification information, to obtain execution results of the plurality of transactions; and then sequentially writing the execution results of the plurality of transactions into a transaction snapshot of the secondary node in the write order.


