Asynchronous Blockchain Block Processing Bridge
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current blockchain systems face challenges in achieving high throughput and processing efficiency while ensuring fault tolerance when interacting with third-party systems, particularly in bridging communications and handling blockchain blocks.
Innovation Solution
A bridge device is introduced that is communicatively linked to a blockchain network node, utilizing asynchronous processing to retrieve and verify blockchain blocks independently, leveraging multi-thread processing to improve throughput and maintain data security and trustworthiness, and providing fault tolerance by managing cursor values to regulate processing and recovery from system failures.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If synchronous processing is used to retrieve and verify blockchain blocks, then data security and trustworthiness are maintained, but processing efficiency and throughput are reduced
Solution Approach 1:
The bridge device divides block processing into separate retrieval and verification operations executed by different threads. The first thread retrieves blocks from the blockchain network while the second thread verifies them, allowing these operations to proceed independently and concurrently, thus improving throughput while maintaining security through separate verification
Solution Approach 2:
The bridge device acts as an intermediary between the third-party system and the blockchain network. It retrieves blocks from the blockchain, verifies them using cursor values to ensure integrity, and then provides data to the third-party system. This intermediary role enables asynchronous processing while maintaining data security through verification
2Productivity
If asynchronous processing is used to improve throughput, then processing efficiency increases, but system complexity increases
Solution Approach 1:
The system segments processing into distinct threads: a first thread for retrieving blocks and a second thread for verifying blocks. Each thread has a specific function, reducing the complexity within each thread while enabling parallel execution to improve overall throughput
Solution Approach 2:
The bridge device uses cursor values to track the state of block processing. The cursor values provide feedback mechanisms that allow the verification thread to check the integrity of retrieved blocks without requiring complex synchronization, simplifying the asynchronous processing architecture
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
Disclosed herein are methods, systems, and apparatus, including computer programs encoded on computer storage media, for implementing a blockchain-based fault-tolerant system. One of the methods includes retrieving a first set of blockchain blocks from the blockchain network node using a first set of threads of the bridge device. The bridge device stores the first set of blockchain blocks in the bridge device. The bridge device verifies a second set of blockchain blocks that are stored in the bridge device using a second set of threads of the bridge device. The first set of threads are different from the second set of threads. Retrieving the first set of blockchain blocks and verifying the second set of blockchain blocks are performed asynchronously using the first set of threads and the second set of threads.