
IBAX Technical Highlights - Blockchain + Database Storage Model
Blockchain + Database Storage Model
Many people have a misconception that blockchain data are stored in the form of files, storing all the data on the chain. In fact, only relatively early chains are stored through files, such as Bitcoin and Hyperledger Fabric are the main representatives of file storage.The limited number of concurrencies of the blockchain is mainly related to the use of data storage in the form of files. It is technically unrealistic to achieve support for tens of thousands of transactions per second using the file read and write form. In contrast, it is common to support tens of thousands of concurrent transactions per second in traditional centralized systems, because they use commercial databases with high performance and high concurrency.
The data storage of IBAX is done through a combination of chain and database. The data on the chain is written in blocks, which record the information and content of each transaction, while the database is responsible for the storage of the data generated by the computing process and results.
Block Content Details:
1、 Block Header Information: block height, packing node, previous block hash, signature, etc.2、Block Content: current block hash, number of transactions, Merkle Root, block size.
3、Transactions: the content of each transaction.
The database stores the basic information of each ecosystem on the chain, including ecosystem information, ecosystem settings, users, contracts, permissions, etc. The original records and results of each transaction data are calculated and stored in the corresponding data table, and this way has greatly improved the data processing ability of the chain.
IBAX uses PostgreSQL database, which is a mature and stable relational database that supports complex queries, transactions, views, etc. After introducing the database architecture IBAX achieved the number of concurrent transactions to 3000 TPS. 3000 TPS is not high for a centralized project, however, those who can actually reach this level of concurrency in blockchain are star projects.
The low level of concurrency has been a major factor affecting the development of blockchain. Bitcoin is a public blockchain we are familiar with, Its average concurrency is only 6 TPS/sec, and Ether is the most used blockchain at present, It can only handle dozens of businesses per second. If we need to support complex commercial application scenarios and accommodate the data requests of billions of users worldwide, it is almost impossible to accomplish on Ethereum.
IBAX team will soon release a beta version of IBAX Network, which will use a higher performance database and more efficient contract virtual machine, and the processing ability of concurrency will reach 30,00TPS.