Transcript
Page 1: Trent McConaghy- BigchainDB

BigchainDB: A Scalable

Blockchain Database, In Python

Trent McConaghy

Page 2: Trent McConaghy- BigchainDB

Processing

Storage

The Elements of

Computing

Co

mm

un

icati

on

s

Page 3: Trent McConaghy- BigchainDB

Processing

Modern Application

StacksC

om

mu

nic

ati

on

s

File System:

Storage

Database:

QueryabilityHierarchy

Applications

Page 4: Trent McConaghy- BigchainDB

Processing

File System Database

Applications

The modern cloud

application stack

Page 5: Trent McConaghy- BigchainDB

“Magic Internet Money”

Along came Bitcoin…

Page 6: Trent McConaghy- BigchainDB

Processing

File System Decentralized

“Database”

Partly-Decentralized

Applications

Bitcoin sparked a revolutionTruly own digital assets, supply chain visibility, ….

Page 7: Trent McConaghy- BigchainDB

What about planetary scale?

1.5 tx/s50GB

Page 8: Trent McConaghy- BigchainDB

Planetary scale:

Netflix uses 37% of

Internet bandwidth

Page 9: Trent McConaghy- BigchainDB

“Big data” Distributed DBs

http://1.bp.blogspot.com/-ZFtW7MFMqZQ/TrG5ujuDGdI/AAAAAAAAAWw/heceeMD50x4/s1600/scale.png

Planetary scale:

Netflix uses 37% of

Internet bandwidth

Writes / s vs. # nodes

Page 10: Trent McConaghy- BigchainDB

To be Distributed,

Big Data DBs Must Solve Consensus

Byzantine Consensus (1982)

Paxos (1990/1998)

https://medium.com/the-bigchaindb-blog/the-writings-of-leslie-lamport-abridged-a67df77f464#.1lr34qt6shttp://the-paper-trail.org/blog/consensus-protocols-paxos/

Page 11: Trent McConaghy- BigchainDB

Two ways to scale up

Big data-fy the blockchain

• Builds on man-decades of work

• Significant scalability hurdles?

<or>

Blockchain-ify big data

• Builds on man-centuries (millennia?) of work

• Scalability challenges already resolved

• How to blockchain-ify? …

Page 12: Trent McConaghy- BigchainDB

“Blockchain-ify”

Decentralization: no single entity owns or controls

Immutability: tamper-resistant

Assets: Can issue & transfer assets

Blockchain (noun): hashed-together chain of blocks (1991!)

Blockchain (noun): storage that is decentralized + immutable + assets

Blockchain (adj): decentralized + immutable + assets

Page 13: Trent McConaghy- BigchainDB

INTRODUCING

BIGCHAINDB

Page 14: Trent McConaghy- BigchainDB

How to Blockchain-ify Big Data

Retain Big Data DB’s Performance

• Let the Paxos derivative solve order.

Get out of its way!

• It naturally builds a log of all txs

Add in blockchain characteristics

• Decentralization: federation voting

on txs. Group into blocks for speed.

• Immutability: hash on prev. blocks

• Assets: Digital signatures etc.

Page 15: Trent McConaghy- BigchainDB

System ArchBigchainDB Federation

RethinkDB Cluster

Alice

Bob

★ RethinkDB

handles intra-cluster

communication

★ BigchainDB Nodes

accept new transactions

via an API

★ BigchainDB Nodes

bundle transactions in

blocks and validate them

Page 16: Trent McConaghy- BigchainDB

Two Tables

Transaction set S (“backlog”) Block chain C

txs when a signing node

creates a new block

txs when a block has

invalid transactions

tx G

tx A

tx L

tx H

tx Etx C

tx D

S1

S2

S3

S C

null tx

tx G

B1

B2

tx L

tx A

tx HB2

tx E

(genesis block)

Page 17: Trent McConaghy- BigchainDB

Benchmarks 1/2

Storage: SSD

Nodes: 32

EC2 instance: c3.8xlarge

Cores: 32

Network: 10Gbps

www.bigchaindb.com/whitepaper

Page 18: Trent McConaghy- BigchainDB

Writes / s vs. # nodes

Benchmarks 2/2

www.bigchaindb.com/whitepaper

Page 19: Trent McConaghy- BigchainDB

www.bigchaindb.com/whitepaper

Page 20: Trent McConaghy- BigchainDB

Immutability

Decentralized control

Assets

High Throughput

Low Latency

High Capacity

Rich Permissioning

Big Data

Query Capabilities

Traditional

blockchains

Page 21: Trent McConaghy- BigchainDB

User:

Vertical: Diamond

Supply Chain

Value prop: identify & prevent

fraud. 7-40% in $80B industry

Page 22: Trent McConaghy- BigchainDB

User:

Vertical: Energy

Supply Chain

Value prop: manage $ flow in

energy deregulation

Page 23: Trent McConaghy- BigchainDB

User:

Vertical: Medical Journals /

Supply Chain

Value prop: government-

mandated transparent $ flow

Page 24: Trent McConaghy- BigchainDB

Users: ascribe.io, 5000 artists, 25

marketplaces & non-profits

Value Props: secure provenance

in $64B art industry, IP mgmt.

Verticals: Art Supply Chain,

Intellectual Property

Page 25: Trent McConaghy- BigchainDB

PYTHON &

USAGE

Page 26: Trent McConaghy- BigchainDB
Page 27: Trent McConaghy- BigchainDB
Page 28: Trent McConaghy- BigchainDB
Page 29: Trent McConaghy- BigchainDB
Page 30: Trent McConaghy- BigchainDB
Page 31: Trent McConaghy- BigchainDB
Page 32: Trent McConaghy- BigchainDB
Page 33: Trent McConaghy- BigchainDB
Page 34: Trent McConaghy- BigchainDB
Page 35: Trent McConaghy- BigchainDB
Page 36: Trent McConaghy- BigchainDB

Decentralization of the Cloud

Proc’ing

FS Dec. DB

Partly Dec. Apps

Proc’ing

FS DB

Apps

Dec. Proc’ing

Dec. FS Dec. DB

Dec. Apps

CentralizedPartly

Decentralized

Fully

Decentralized

Page 37: Trent McConaghy- BigchainDB

BigchainDB: A Scalable

Blockchain Database, In Python

bigchaindb.com

bigchaindb.readthedocs.orggithub.com/bigchaindb


Top Related