Blockchain Data Migration for High-Concurrency Node Storage
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
As the number of blocks in a blockchain system increases, the incremental block data storage affects the memory response speed and efficiency of node devices in processing high-concurrency consensus, verification, and read/write operations, leading to reduced performance and storage capacity in the first storage system.
Innovation Solution
A blockchain-based data migration method and apparatus that migrates historical block data from a centralized first storage system to a distributed second storage system, using a coordinator node and storage cluster nodes, and invoking smart contracts to manage data migration based on predetermined trigger rules, allowing the first storage system to optimize for high-concurrency operations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If block data is stored in the first storage system, then data capacity increases, but memory response speed and processing efficiency deteriorate
Solution Approach 1:
The patent divides the storage system into two separate storage systems: a first storage system for recent block data requiring fast access, and a second storage system for historical block data. This segmentation allows each storage system to be optimized for its specific function, resolving the contradiction between data capacity and response speed.
Solution Approach 2:
The patent extracts historical block data from the first storage system and stores it in a separate second storage system. This extraction removes the burden of storing large volumes of historical data from the first storage system, thereby improving its memory response speed and processing efficiency while maintaining overall data capacity through the second storage system.
2Quantity of substance
If block data is stored in the first storage system, then data storage capacity increases, but processing efficiency deteriorates
Solution Approach 1:
The patent segments the storage architecture into two distinct storage systems with different optimization goals. The first storage system is optimized for processing efficiency and speed, while the second storage system provides additional data storage capacity. This segmentation resolves the contradiction by allowing each system to specialize in one aspect.
Solution Approach 2:
By extracting historical block data from the first storage system to the second storage system, the patent improves the processing efficiency of the first storage system while maintaining overall data storage capacity through the combined capacity of both storage systems.
3Productivity
If high-performance hardware is used in the first storage system, then processing efficiency improves, but system cost increases
Solution Approach 1:
The patent segments the storage system into two parts with different performance requirements. The first storage system uses high-performance hardware optimized for fast processing of recent block data, while the second storage system uses lower-performance, more cost-effective hardware for storing historical data. This segmentation resolves the contradiction by allocating high-performance resources only where necessary.
Solution Approach 2:
The patent applies local quality by giving different hardware performance levels to different parts of the storage system based on their specific requirements. The first storage system receives high-performance hardware for fast access, while the second storage system uses standard hardware sufficient for its read-only historical data function, thereby optimizing overall system cost.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
A block of a blockchain is received by a blockchain node, where the blockchain node stores data using a storage architecture including a first storage system and a second storage system interconnected with the first storage system. The block is stored in the first storage system. Whether a migration trigger event for block data stored in the first storage system is detected is determined. Block data that is stored in the first storage system and that exists before migration reference time to the second storage system is migrated in response to the migration trigger event.