BigchainDB is an open-source blockchain database. It is a NoSQL database that has blockchain properties such as immutability, decentralization and owner-controlled asset.[04]
- Source Code
- https://github.com/bigchaindb/bigchaindb[02]
- @BigchainDB
- Developer
- Country of Origin
- DE
- Start Year
- 2015 [08]
- End Year
- 2022
- Project Types
- Commercial, Open Source
- Written in
- Python
- Supported Languages
- JavaScript, Python
- Embeds / Uses
- MongoDB
- License
- Apache v2
Immutability is the property that once the data is stored in BigchainDB, it can’t be modified or erased. Decentralization means there is no single point of failure in the control and storage process of the data. The owner-controlled asset is the property that only the owner of the asset can transfer the asset. The database provides the user with Byzantine Fault Tolerance (BFT) with no more than one-third arbitrary node failures. There are two main layers in BigchainDB, the consensus layer based on Tendermint the and storage layer based on MongoDB.
BigchainDB is an open-source blockchain database. It is a NoSQL database that has blockchain properties such as immutability, decentralization and owner-controlled asset. Immutability is the property that once the data is stored in BigchainDB, it can’t be modified or erased. Decentralization means there is no single point of failure in the control and storage process of the data. The owner-controlled asset is the property that only the owner of the asset can transfer the asset. The database provides the user with Byzantine Fault Tolerance (BFT) with no more than one-third arbitrary node failures. There are two main layers in BigchainDB, the consensus layer based on Tendermint the and storage layer based on MongoDB.[04]
History[05]
The first version of BigchainDB was published in February 2016. However, there were many issues with the initial version. For example, the system was not Byzantine Fault tolerant, and there was a single point of failure in the underlying storage database and the system supported only one logical database, which means once got the control of the database the adversary could delete the whole database. BigchainDB 2.0 was published in 2018 and solved all the issues above.
The project was abandoned in 2018 after BigchainDB GmbH laid off the employees working on the DBMS. There has not been any significant update to the system's open-source repository since 2022.
Checkpoints[04][06]
The consensus layer is based on Tendermint. Tendermint uses LevelDB as blockchain storage. LevelDB builds checkpoints in a blocking manner, see LevelDB for more details. The storage layer is based on MongoDB. MongoDB builds consisten checkpoints, see MongoDB for more details.
Concurrency Control[04][06]
The consensus layer is based on Tendermint. Tendermint uses LevelDB as blockchain storage. LevelDB uses Two-Phase Locking with Deadlock Prevention, see LevelDB for more details. The storage layer on each node is based on MongoDB. MongoDB uses Two-Phase Locking with Deadlock Prevention and Optimistic Concurrency Control, see MongoDB for more details.
Data Model[04]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. The main data model is Document/XML.
Indexes[04]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. The B+Tree is the index for main storage.
Isolation Levels[04]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. LevelDB guarantees snapshot isolation for blockchain storage. MongoDB guarantees read uncommitted isolation level for main storage.
Logging[04]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. MongoDB uses physiological logging, LevelDB uses logical logging.
Query Execution[04]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details.
Query Interface[03][04]
BigchainDB officially provides the users with multiple programming languages including Python, JavaScript/Node.js, and Java. And there are also many community driven libraries and tools available including Haskell transaction builder, Golang and Ruby driver.
Storage Architecture[07][03]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. MongoDB supports both in-memory and disk-oriented storage, while LevelDB only supports disk-oriented storage.
Storage Model[07]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. MongoDB supports custom storage model. LevelDB uses N-ary Storage Model.
Storage Organization[07]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. There is not enough information about MongoDB. LevelDB uses log-structured storage organization.
System Architecture[07]
BigchainDB 2.0 has two layers, the consensus layer, and the storage layer. Each node runs its own MongoDB database as the storage layer and uses Tendermint consensus protocol to communicate with each other. Each node maintains its own MongoDB database to store the structured data and handle queries, it also maintains a LevelDB key-value store to keep the blockchain and support the consensus protocol.
Each transaction is proposed by the proposer in each round, and the changes are not committed to the underlying MongoDB until it is settled on the blockchain. The Tendermint protocol can guarantee the BFT under at most one-third arbitrary node failures.
Views[07]
The consensus layer is based on LevelDB, see LevelDB for more details. The storage layer is based on MongoDB, see MongoDB for more details. MongoDB supports virtual views. LevelDB does not support views.
Citations
8 sources- https://www.bigchaindb.com bigchaindb.com
- GitHub - bigchaindb/bigchaindb: Meet BigchainDB. The blockchain database. · GitHub github.com
- BigchainDB Documentation — BigchainDB 2.2.2 documentation bigchaindb.com
- https://www.bigchaindb.com/whitepaper/bigchaindb-whitepaper.pdf bigchaindb.com
- Project Status · Issue #2731 · bigchaindb/bigchaindb github.com
- Tendermint Core Documentation | Tendermint Core tendermint.com
- BigchainDB 2.0 Whitepaper • • BigchainDB bigchaindb.com
- About BigchainDB • • BigchainDB bigchaindb.com