Post on 11-Apr-2017
Blockchains and the IoT
Mat Keep Director of Product & Markets, MongoDB mat.keep@mongodb.com @matkeep
Bitcoin
• Released in 2009 via a niche mailing list • Now world’s largest digital currency • Six hundred trillion SHA256 computations
performed per second • Worth over $1k per bitcoin – 24,000%
growth since launch • Buy pretty much anything
Blockchain: What’s Special? • Decentralized database maintaining a
growing list of records • Peer-to-peer – not owned by a single
instance • Any member can add it (if other
participants agree) • State is distributed to all nodes • Immutable, tamper-proof • Trusted transfer of assets, value &
ownership
Blockchain Software Stack
Application: Supply Chain, Identity Management,
Energy Credits, Stocks, etc.
Blockchain Layer
Database Layer
Implementation Pattern
Blockchain DB e.g. BigchainDB
Client 1 Client 2
Admin
Client 10,000
Co- Admin 1
Co- Admin 2
Co- Admin
21
control control
data
Distributed DB MongoDB
Core DB MongoDB
Client 1 Client 2
Client 10,000
data
Why MongoDB for the Blockchain Database
Scalability & Performance
Always On, Global Deployments
Data Model Flexibility Expressive Query Language & Secondary Indexes
Strong Consistency & Data Integrity
Enterprise Management & Security
Learn More
• Visit MongoDB Stand S12
• Download Enterprise Grade Blockchain whitepaper
• Book a 2-hour workshop
Block #122 Hash Timestamp Nonce Transaction #817 • Metadata • Transaction Data Transaction #725 • Metadata • Transaction Data Transaction #933 • Metadata • Transaction Data
Transaction #xxxxx • xxxxxx • xxxxxx
Block #123
Block #123 Hash Timestamp Nonce Transaction #7002 • Metadata • Transaction Data Transaction #3155 • Metadata • Transaction Data Transaction #2111 • Metadata • Transaction Data
Transaction #xxxxx • xxxxxx • xxxxxx
Block #124
Block #124 Hash Timestamp Nonce Transaction #353 • Metadata • Transaction Data Transaction #10005 • Metadata • Transaction Data Transaction #8555 • Metadata • Transaction Data
Transaction #xxxxx • xxxxxx • xxxxxx
Block #125
Blockchain Under the Covers
Characteristic MongoDB Traditional Blockchain
Blockchainified MongoDB
Database Characteristics
Queryability ✔ ✔
Scale ✔ ✔
Operationalized ✔ ✔
Blockchain Characteristics
Decentralized ✔ ✔
Immutable ✔ ✔
Assets ✔ ✔
Marrying Blockchain and the Database
Processing (e.g. Ethereum, Hyperledger)
File System (e.g. IPFS)
Database Blockchainified
MongoDB (eg BigchainDB)
Applications
Decentralized Centralized
Processing (e.g. local server, EC2)
File System (e.g.
Linux FS, HDFS, S3)
Database MongoDB
Applications
Processing (e.g. local server, EC2)
File System (e.g.
Linux FS, HDFS, S3)
Database Blockchainified
MongoDB (eg BigchainDB)
Applications
Database MongoDB
Partly Decentralized
Enterprise Blockchain Maturity Model