SlideShare a Scribd company logo
1 of 31
Download to read offline
Database Solutions
Used within Blockchain
Platforms
❖ Understanding Blockchain Databases and Background Studies
❖ Top Database Solutions for Blockchain
❖ Future Trends and Innovations
❖ Conclusion
Agenda
Section 1
Understanding Blockchain
Databases and Background
Studies
➢ Blockchain: cryptographically-secured transactional machine
➢ Cryptographically signed transaction modifies the blockchain state
➢ Databases: components that store the state written in the shared
blockchain ledger
Role of Databases in Blockchain
➢ Blockchain State
○ Global truth about the overall information
➢ Blockchain components
○ Consensus Component
○ Network Component
Blockchain Components and Global State
Immutable Data Storage
Blockchain databases ensure the immutability of
data, preventing unauthorized modifications and
maintaining a secure record of transactions and
information. The database solutions used within
blockchain platforms are designed to enforce the
integrity and permanence of the stored data,
aligning with the core principles of blockchain
technology.
Privacy and Compliance in Blockchain Databases
02
01
Consensus Algorithms
The choice of database solutions within blockchain
platforms aligns with the consensus mechanisms
employed, such as proof of work, proof of stake, or
other consensus models. The database solutions
support the consensus algorithms by providing the
necessary data storage and retrieval capabilities to
facilitate the validation and recording of
transactions according to the consensus rules.
Performance
Larger volumes of
simultaneous
transactions
Scalability
Need of Database Solutions
Concurrency control
mechanisms
3
2
1 4
Databases within blockchain platforms play a crucial
role in storing the state written in the shared
blockchain ledger, ensuring the integrity and security
of the data. This storage is fundamental to maintaining
an accurate and tamper-proof record of transactions
and information within the blockchain network.
Role of Databases in Blockchain
Storage of Shared Ledger
Many platforms utilize key-value stores such as
LevelDB or RocksDB, which offer write-optimized
storage solutions for fast lookups and efficient data
retrieval. These key-value stores are designed to
handle the specific requirements of blockchain data
storage, providing the necessary performance and
reliability for managing the blockchain ledger.
Key-Value Stores
❖ Merges blockchain and database properties
❖ Combine the best of the two technologies
❖ Nodes Local MongoDB database
Background of Databases in Blockchain
BigchainDB
❖ Decentralized blockchain features
❖ Optimized query processing
❖ Distributed approach
❖ Only a subset of changes by transactions
within a given block are stored into
distributed hash tables
ChainSQL
❖ Storage engine
❖ Data provenance
❖ Implements necessary features
Data Provenance OR Additional File Systems
Forkbase
❖ Additional key-value stores or file systems
❖ Additional development cost
❖ Performance overhead
Ethereum
1 2 3
Role of Key-Value
Stores
Key-value stores like LevelDB
and RocksDB are prevalent
within blockchain platforms due
to their ability to perform fast
lookups and efficient data
retrieval, essential for
blockchain operations. These
database solutions are
optimized to handle the unique
characteristics of blockchain
data, including the high volume
of transactions and the
distributed nature of the ledger.
Integration of
Traditional Databases
Traditional databases, including
SQL and NoSQL solutions, are
also integrated into blockchain
platforms to support diverse
data storage and retrieval
needs. The integration of
traditional databases enables
blockchain developers to
leverage established data
management technologies
while addressing the specific
requirements of blockchain
applications.
Scalability and
Performance
Database solutions for
blockchain prioritize scalability
and performance to
accommodate the growing
volume of transactions and
data within the network. These
solutions are engineered to
handle the increasing demands
on data storage and retrieval
while maintaining the efficiency
and responsiveness of the
blockchain platform.
Database Solutions for Blockchain
These are open to anyone and
are not controlled by a central
authority, providing transparency
and accessibility to all
participants in the network.
Public blockchains leverage
database solutions to store and
manage the shared ledger,
enabling decentralized and
permissionless access to the
recorded data and transactions.
Types of Blockchain Databases
Public Blockchains
In contrast, private blockchains
are permissioned and restrict
access to authorized entities,
ensuring privacy and control over
the network. Database solutions
for private blockchains focus on
maintaining data confidentiality
and access control, catering to
the specific governance and
security requirements of closed
blockchain ecosystems.
Private Blockchains
Some platforms leverage hybrid
blockchains, combining elements
of both public and private
blockchains to cater to diverse
use cases and requirements.
Database solutions within hybrid
blockchains are designed to
accommodate the varying levels
of transparency, privacy, and
accessibility needed for different
aspects of the blockchain
network.
Hybrid Blockchains
Section 2
Top Database Solutions for
Blockchain
Selecting Blockchain
Platforms Process
Faster lookups are a key factory
Some platforms use multiple option
The choice depends on the specific requirements, such as scalability, performance,
security, and data structure.
13 out of 20 blockchain platforms use key-value stores
Overall Result
Total number of
individual database
solutions used among
blockchain platforms.
Column Family Databases
Document Stores
Key-value Stores
Types of Databases Used in Blockchain
Objects and Blob Stores
Tabular Databases
Graph Databases
Blockchain data is stored
as ordered key-value pairs
of string sequences (byte
arrays in the background).
Database states are stored
as read-only snapshots,
which can be referenced
when needed.
The read performance is
improved by automatically
compressing data before
persistently storing it to the
disk. Also, caching is used
to avoid decompressing
data for each query.
LevelDB
An open-source on-disk
key-value store. The core
storage architecture of
LevelDB is a log-structured
merge tree (LSM), which is a
write-optimized B-tree
variant. It is optimized for
large sequential writes as
opposed to small random
writes.
★ It's used in various applications, including Google Chrome's IndexedDB, Bitcoin Core, go-ethereum.
An LSM tree is a data structure with performance
characteristics that make it attractive for providing
indexed access to files with high insert volume,
such as transactional log data. LSM trees maintain
data in two or more separate structures, each of
which is optimized for its respective underlying
storage medium. Data is synchronized between the
two structures efficiently, in batches.
log-structured merge (LSM)
A B-tree is a self-balancing tree data structure that
maintains sorted data and allows for efficient
searches, sequential access, insertions, and
deletions in logarithmic time. The B-tree
generalizes the binary search tree, allowing for
nodes with more than two children.
B-tree
LevelDB
LevelDB stores keys and values in arbitrary byte arrays, and data is sorted by key. This
means you can store any type of data (not just strings) as long as it can be represented
as a byte array.
LevelDB has three basic operations: Get, Put, and Delete. Get retrieves a value given a
key, Put writes a value into a key (creating the key if it doesn't exist), and Delete removes
the key and it's value.
Data Storage
Basic
Operations
Batching
Writes and
Iteration
LevelDB supports batching writes, which means you can write multiple key-value pairs at
once. It also supports forward and backward iteration over the keys and values.
LevelDB
LevelDB supports compression of the data via Google's Snappy compression library. This
helps reduce the storage space required for the data.
LevelDB is a NoSQL database, which means it does not have a relational data model and
it does not support SQL queries. It also does not support indexes.
Compression
NoSQL
Database
Usage as a
Library
Applications use LevelDB as a library, as it does not provide a server or command-line
interface
LevelDB serves as the storage
engine for Ethereum, providing
efficient data management
capabilities for the Ethereum
blockchain network. The
integration of LevelDB within the
Ethereum platform supports the
reliable storage and retrieval of
blockchain data, contributing to
the operational integrity and
performance of the Ethereum
blockchain.
Ethereum Blockchain and LevelDB
Storage Engine for Ethereum
It supports the storage of smart
contracts, transaction data, and
state information, contributing to
the operational integrity of the
Ethereum platform. The support
for smart contracts and
transaction data storage within
LevelDB enhances the
functionality and reliability of
Ethereum's blockchain
applications, ensuring the secure
and efficient execution of smart
contract operations.
Support for Smart Contracts
The integration of LevelDB
addresses scalability challenges,
ensuring the seamless storage
and retrieval of blockchain data
within the Ethereum ecosystem.
The scalability features of
LevelDB support the growing
demands for data storage and
access within the Ethereum
blockchain, providing a robust
and adaptable solution for
managing the expanding volume
of transactions and state
information.
Scalability Challenges
RocksDB uses the
column-oriented approach
in persistent storage.
Specifically, RocksDB uses
the concept of column
families to partition the
database logically.
It was developed by
Facebook to meet the
high-performance
requirements of key-value
stores in the era of flash
storage. tts primary goal is
to fully use the fast access
speed provided by
fashstorage, and adapt to
different workloads.
RocksDB
RocksDB is an open-source,
embeddable, persistent
key-value store for fast
storage. Like LevelDB,
RocksDB also stores keys
and values in arbitrary byte
arrays, and data is sorted
byte-wise by key or by
providing a custom
comparator.
RocksDB
RocksDB organizes all data in sorted order and the common operations are Get (key), Put
(key), Delete (key) and Scan (key).
RocksDB provides basic operations such as opening and closing a database, reading and
writing to more advanced operations such as merging and compaction filters
Data Storage
Basic
Operations
High
Performance
RocksDB uses a log-structured database engine, written entirely in C++, for maximum
performance. Keys and values are just arbitrarily-sized byte streams.
RocksDB
RocksDB is optimized for fast, low latency storage such as flash drives and high-speed
disk drives. RocksDB exploits the full potential of high read/write rates offered by flash or
RAM.
RocksDB is adaptable to different workloads. From database storage engines such as
MyRocks to application data caching to embedded workloads, RocksDB can be used for
a variety of data needs.
Optimized for
Fast Storage
Adaptable
PostgreSQL
● Requires upfront schema definition, which can be difficult for blockchain's dynamic
nature.
● Data type selection for large hash values can be inefficient (e.g., INTEGER vs.
BIGINT).
● Schema design impacts query performance significantly. (the mismatch between
32- and 64-bit values)
● Backward iteration not natively supported.
● ACID (Atomicity, Consistency, Isolation, Durability) compliance ensures data
integrity and provenance.
● Data recovery and availability through replication.
Fixed schema
challenges
Benefits
PostgreSQL
● Careful schema design is crucial for optimal performance in PostgreSQL for blockchain data.
● Must consider alternative data types for hash values to optimize storage.
● Leverage replication for data protection and availability.
● Potential performance implications of schema design choices, especially for query execution.
● Explore workarounds for backward iteration if needed.
Section 3
Future Trends and
Innovations
Growing trend of
tokenization,
representing
real-world assets on
the blockchain for
increased liquidity.
Increased use of smart
contracts for
automation and
efficiency in various
industries.
Integration of AI and
machine learning with
blockchain for
advanced data
analytics and insights.
Future Trends in Blockchain
Interoperability will be
a key focus, allowing
different blockchains
to work together
seamlessly.
3
2
1 4
Conclusion and Discussion
In conclusion, the integration of database solutions within blockchain platforms is
essential for ensuring the secure, efficient, and reliable management of
blockchain data. The role of key-value stores, traditional databases, and
specialized solutions such as LevelDB and RocksDB demonstrates the diverse
and tailored approaches to addressing the unique requirements of blockchain
data storage and retrieval. Practical considerations and best practices emphasize
the importance of data privacy, scalability and performance optimization, laying
the foundation for the future trends and innovations in decentralized database
protocols, data sharding, Al and machine learning integration, and collaborative
ecosystems. As blockchain technology continues to evolve, the seamless
integration of database solutions will play a bold role in shaping the future of
decentralized and distributed data management within blockchain ecosystems.
The ongoing advancements in database technologies and their integration with
blockchain platforms will contribute to the continued growth and innovation in
the field of decentralized data management.
Future advancements in
blockchain databases are
likely to focus on enhancing
scalability and data privacy.
The choice of database
solution depends on the
specific requirements of
the blockchain application,
such as scalability,
performance, security, and
data structure.
Conclusion and Discussion
Database solutions are a
critical component of
blockchain platforms,
providing the necessary
infrastructure for data
management and storage.

More Related Content

Similar to Database Solutions Used within Blockchain Platforms

Bigchaindb whitepaper
Bigchaindb whitepaperBigchaindb whitepaper
Bigchaindb whitepaperArek Talun
 
What Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdfWhat Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdfLaura Miller
 
decentralized cloud storage and blockchian.pdf
decentralized cloud storage and blockchian.pdfdecentralized cloud storage and blockchian.pdf
decentralized cloud storage and blockchian.pdfqitchain.net
 
Brief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehBrief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehFas (Feisal) Mosleh
 
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...Maginatics
 
Key aspects of big data storage and its architecture
Key aspects of big data storage and its architectureKey aspects of big data storage and its architecture
Key aspects of big data storage and its architectureRahul Chaturvedi
 
NoSQL Architecture Overview
NoSQL Architecture OverviewNoSQL Architecture Overview
NoSQL Architecture OverviewChristopher Foot
 
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise Blockchain
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise BlockchainHyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise Blockchain
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise BlockchainAltoros
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Martin Bém
 
5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen ArchitecturesNuoDB
 
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptxRushikeshChikane2
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.Navdeep Charan
 
Azure - Data Platform
Azure - Data PlatformAzure - Data Platform
Azure - Data Platformgiventocode
 
Performance analysis of MongoDB and HBase
Performance analysis of MongoDB and HBasePerformance analysis of MongoDB and HBase
Performance analysis of MongoDB and HBaseSindhujanDhayalan
 

Similar to Database Solutions Used within Blockchain Platforms (20)

Bigchaindb whitepaper
Bigchaindb whitepaperBigchaindb whitepaper
Bigchaindb whitepaper
 
What Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdfWhat Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdf
 
unit2-ppt1.pptx
unit2-ppt1.pptxunit2-ppt1.pptx
unit2-ppt1.pptx
 
decentralized cloud storage and blockchian.pdf
decentralized cloud storage and blockchian.pdfdecentralized cloud storage and blockchian.pdf
decentralized cloud storage and blockchian.pdf
 
Brief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehBrief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas mosleh
 
Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
 
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...
Maginatics @ SDC 2013: Architecting An Enterprise Storage Platform Using Obje...
 
Rise of NewSQL
Rise of NewSQLRise of NewSQL
Rise of NewSQL
 
Key aspects of big data storage and its architecture
Key aspects of big data storage and its architectureKey aspects of big data storage and its architecture
Key aspects of big data storage and its architecture
 
NoSQL Architecture Overview
NoSQL Architecture OverviewNoSQL Architecture Overview
NoSQL Architecture Overview
 
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise Blockchain
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise BlockchainHyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise Blockchain
Hyperledger Sawtooth Lake Intel's OSS Contribution to Enterprise Blockchain
 
Unit-10.pptx
Unit-10.pptxUnit-10.pptx
Unit-10.pptx
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27
 
5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures
 
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
3.Implementation with NOSQL databases Document Databases (Mongodb).pptx
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.
 
NOsql Presentation.pdf
NOsql Presentation.pdfNOsql Presentation.pdf
NOsql Presentation.pdf
 
Azure - Data Platform
Azure - Data PlatformAzure - Data Platform
Azure - Data Platform
 
WEB_DATABASE_chapter_4.pptx
WEB_DATABASE_chapter_4.pptxWEB_DATABASE_chapter_4.pptx
WEB_DATABASE_chapter_4.pptx
 
Performance analysis of MongoDB and HBase
Performance analysis of MongoDB and HBasePerformance analysis of MongoDB and HBase
Performance analysis of MongoDB and HBase
 

Recently uploaded

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Database Solutions Used within Blockchain Platforms

  • 1. Database Solutions Used within Blockchain Platforms
  • 2. ❖ Understanding Blockchain Databases and Background Studies ❖ Top Database Solutions for Blockchain ❖ Future Trends and Innovations ❖ Conclusion Agenda
  • 4. ➢ Blockchain: cryptographically-secured transactional machine ➢ Cryptographically signed transaction modifies the blockchain state ➢ Databases: components that store the state written in the shared blockchain ledger Role of Databases in Blockchain
  • 5. ➢ Blockchain State ○ Global truth about the overall information ➢ Blockchain components ○ Consensus Component ○ Network Component Blockchain Components and Global State
  • 6. Immutable Data Storage Blockchain databases ensure the immutability of data, preventing unauthorized modifications and maintaining a secure record of transactions and information. The database solutions used within blockchain platforms are designed to enforce the integrity and permanence of the stored data, aligning with the core principles of blockchain technology. Privacy and Compliance in Blockchain Databases 02 01 Consensus Algorithms The choice of database solutions within blockchain platforms aligns with the consensus mechanisms employed, such as proof of work, proof of stake, or other consensus models. The database solutions support the consensus algorithms by providing the necessary data storage and retrieval capabilities to facilitate the validation and recording of transactions according to the consensus rules.
  • 7. Performance Larger volumes of simultaneous transactions Scalability Need of Database Solutions Concurrency control mechanisms 3 2 1 4
  • 8. Databases within blockchain platforms play a crucial role in storing the state written in the shared blockchain ledger, ensuring the integrity and security of the data. This storage is fundamental to maintaining an accurate and tamper-proof record of transactions and information within the blockchain network. Role of Databases in Blockchain Storage of Shared Ledger Many platforms utilize key-value stores such as LevelDB or RocksDB, which offer write-optimized storage solutions for fast lookups and efficient data retrieval. These key-value stores are designed to handle the specific requirements of blockchain data storage, providing the necessary performance and reliability for managing the blockchain ledger. Key-Value Stores
  • 9. ❖ Merges blockchain and database properties ❖ Combine the best of the two technologies ❖ Nodes Local MongoDB database Background of Databases in Blockchain BigchainDB ❖ Decentralized blockchain features ❖ Optimized query processing ❖ Distributed approach ❖ Only a subset of changes by transactions within a given block are stored into distributed hash tables ChainSQL
  • 10. ❖ Storage engine ❖ Data provenance ❖ Implements necessary features Data Provenance OR Additional File Systems Forkbase ❖ Additional key-value stores or file systems ❖ Additional development cost ❖ Performance overhead Ethereum
  • 11. 1 2 3 Role of Key-Value Stores Key-value stores like LevelDB and RocksDB are prevalent within blockchain platforms due to their ability to perform fast lookups and efficient data retrieval, essential for blockchain operations. These database solutions are optimized to handle the unique characteristics of blockchain data, including the high volume of transactions and the distributed nature of the ledger. Integration of Traditional Databases Traditional databases, including SQL and NoSQL solutions, are also integrated into blockchain platforms to support diverse data storage and retrieval needs. The integration of traditional databases enables blockchain developers to leverage established data management technologies while addressing the specific requirements of blockchain applications. Scalability and Performance Database solutions for blockchain prioritize scalability and performance to accommodate the growing volume of transactions and data within the network. These solutions are engineered to handle the increasing demands on data storage and retrieval while maintaining the efficiency and responsiveness of the blockchain platform. Database Solutions for Blockchain
  • 12. These are open to anyone and are not controlled by a central authority, providing transparency and accessibility to all participants in the network. Public blockchains leverage database solutions to store and manage the shared ledger, enabling decentralized and permissionless access to the recorded data and transactions. Types of Blockchain Databases Public Blockchains In contrast, private blockchains are permissioned and restrict access to authorized entities, ensuring privacy and control over the network. Database solutions for private blockchains focus on maintaining data confidentiality and access control, catering to the specific governance and security requirements of closed blockchain ecosystems. Private Blockchains Some platforms leverage hybrid blockchains, combining elements of both public and private blockchains to cater to diverse use cases and requirements. Database solutions within hybrid blockchains are designed to accommodate the varying levels of transparency, privacy, and accessibility needed for different aspects of the blockchain network. Hybrid Blockchains
  • 13. Section 2 Top Database Solutions for Blockchain
  • 15. Faster lookups are a key factory Some platforms use multiple option The choice depends on the specific requirements, such as scalability, performance, security, and data structure. 13 out of 20 blockchain platforms use key-value stores Overall Result
  • 16. Total number of individual database solutions used among blockchain platforms.
  • 17. Column Family Databases Document Stores Key-value Stores Types of Databases Used in Blockchain Objects and Blob Stores Tabular Databases Graph Databases
  • 18. Blockchain data is stored as ordered key-value pairs of string sequences (byte arrays in the background). Database states are stored as read-only snapshots, which can be referenced when needed. The read performance is improved by automatically compressing data before persistently storing it to the disk. Also, caching is used to avoid decompressing data for each query. LevelDB An open-source on-disk key-value store. The core storage architecture of LevelDB is a log-structured merge tree (LSM), which is a write-optimized B-tree variant. It is optimized for large sequential writes as opposed to small random writes. ★ It's used in various applications, including Google Chrome's IndexedDB, Bitcoin Core, go-ethereum.
  • 19. An LSM tree is a data structure with performance characteristics that make it attractive for providing indexed access to files with high insert volume, such as transactional log data. LSM trees maintain data in two or more separate structures, each of which is optimized for its respective underlying storage medium. Data is synchronized between the two structures efficiently, in batches. log-structured merge (LSM) A B-tree is a self-balancing tree data structure that maintains sorted data and allows for efficient searches, sequential access, insertions, and deletions in logarithmic time. The B-tree generalizes the binary search tree, allowing for nodes with more than two children. B-tree
  • 20. LevelDB LevelDB stores keys and values in arbitrary byte arrays, and data is sorted by key. This means you can store any type of data (not just strings) as long as it can be represented as a byte array. LevelDB has three basic operations: Get, Put, and Delete. Get retrieves a value given a key, Put writes a value into a key (creating the key if it doesn't exist), and Delete removes the key and it's value. Data Storage Basic Operations Batching Writes and Iteration LevelDB supports batching writes, which means you can write multiple key-value pairs at once. It also supports forward and backward iteration over the keys and values.
  • 21. LevelDB LevelDB supports compression of the data via Google's Snappy compression library. This helps reduce the storage space required for the data. LevelDB is a NoSQL database, which means it does not have a relational data model and it does not support SQL queries. It also does not support indexes. Compression NoSQL Database Usage as a Library Applications use LevelDB as a library, as it does not provide a server or command-line interface
  • 22. LevelDB serves as the storage engine for Ethereum, providing efficient data management capabilities for the Ethereum blockchain network. The integration of LevelDB within the Ethereum platform supports the reliable storage and retrieval of blockchain data, contributing to the operational integrity and performance of the Ethereum blockchain. Ethereum Blockchain and LevelDB Storage Engine for Ethereum It supports the storage of smart contracts, transaction data, and state information, contributing to the operational integrity of the Ethereum platform. The support for smart contracts and transaction data storage within LevelDB enhances the functionality and reliability of Ethereum's blockchain applications, ensuring the secure and efficient execution of smart contract operations. Support for Smart Contracts The integration of LevelDB addresses scalability challenges, ensuring the seamless storage and retrieval of blockchain data within the Ethereum ecosystem. The scalability features of LevelDB support the growing demands for data storage and access within the Ethereum blockchain, providing a robust and adaptable solution for managing the expanding volume of transactions and state information. Scalability Challenges
  • 23. RocksDB uses the column-oriented approach in persistent storage. Specifically, RocksDB uses the concept of column families to partition the database logically. It was developed by Facebook to meet the high-performance requirements of key-value stores in the era of flash storage. tts primary goal is to fully use the fast access speed provided by fashstorage, and adapt to different workloads. RocksDB RocksDB is an open-source, embeddable, persistent key-value store for fast storage. Like LevelDB, RocksDB also stores keys and values in arbitrary byte arrays, and data is sorted byte-wise by key or by providing a custom comparator.
  • 24. RocksDB RocksDB organizes all data in sorted order and the common operations are Get (key), Put (key), Delete (key) and Scan (key). RocksDB provides basic operations such as opening and closing a database, reading and writing to more advanced operations such as merging and compaction filters Data Storage Basic Operations High Performance RocksDB uses a log-structured database engine, written entirely in C++, for maximum performance. Keys and values are just arbitrarily-sized byte streams.
  • 25. RocksDB RocksDB is optimized for fast, low latency storage such as flash drives and high-speed disk drives. RocksDB exploits the full potential of high read/write rates offered by flash or RAM. RocksDB is adaptable to different workloads. From database storage engines such as MyRocks to application data caching to embedded workloads, RocksDB can be used for a variety of data needs. Optimized for Fast Storage Adaptable
  • 26. PostgreSQL ● Requires upfront schema definition, which can be difficult for blockchain's dynamic nature. ● Data type selection for large hash values can be inefficient (e.g., INTEGER vs. BIGINT). ● Schema design impacts query performance significantly. (the mismatch between 32- and 64-bit values) ● Backward iteration not natively supported. ● ACID (Atomicity, Consistency, Isolation, Durability) compliance ensures data integrity and provenance. ● Data recovery and availability through replication. Fixed schema challenges Benefits
  • 27. PostgreSQL ● Careful schema design is crucial for optimal performance in PostgreSQL for blockchain data. ● Must consider alternative data types for hash values to optimize storage. ● Leverage replication for data protection and availability. ● Potential performance implications of schema design choices, especially for query execution. ● Explore workarounds for backward iteration if needed.
  • 28. Section 3 Future Trends and Innovations
  • 29. Growing trend of tokenization, representing real-world assets on the blockchain for increased liquidity. Increased use of smart contracts for automation and efficiency in various industries. Integration of AI and machine learning with blockchain for advanced data analytics and insights. Future Trends in Blockchain Interoperability will be a key focus, allowing different blockchains to work together seamlessly. 3 2 1 4
  • 30. Conclusion and Discussion In conclusion, the integration of database solutions within blockchain platforms is essential for ensuring the secure, efficient, and reliable management of blockchain data. The role of key-value stores, traditional databases, and specialized solutions such as LevelDB and RocksDB demonstrates the diverse and tailored approaches to addressing the unique requirements of blockchain data storage and retrieval. Practical considerations and best practices emphasize the importance of data privacy, scalability and performance optimization, laying the foundation for the future trends and innovations in decentralized database protocols, data sharding, Al and machine learning integration, and collaborative ecosystems. As blockchain technology continues to evolve, the seamless integration of database solutions will play a bold role in shaping the future of decentralized and distributed data management within blockchain ecosystems. The ongoing advancements in database technologies and their integration with blockchain platforms will contribute to the continued growth and innovation in the field of decentralized data management.
  • 31. Future advancements in blockchain databases are likely to focus on enhancing scalability and data privacy. The choice of database solution depends on the specific requirements of the blockchain application, such as scalability, performance, security, and data structure. Conclusion and Discussion Database solutions are a critical component of blockchain platforms, providing the necessary infrastructure for data management and storage.