distributed blockchain processing

21
Distributed Blockchain Processing

Upload: alexey-troshichev

Post on 11-Feb-2017

602 views

Category:

Engineering


3 download

TRANSCRIPT

Distributed

Blockchain

Processing

What is processing?

Processing

Race Condition • Unsafe operations with shared resource

• Unsafe replication over distributed resource

Serious bug?

https://en.wikipedia.org/wiki/Northeast_blackout_of_2003

Lock

Deadlock

Soft lock

select balance from customers where id = $id;

{logic}

update customers set balance = $new_balance

where id = $id and balance = $balance;

Eventual consistency

Starbucks case

http://sakurity.com/blog/2015/05/21/starbucks.html

WTF blockchain? • Check sequence

• Check integrity

• Authenticate transactions

DHT

DHT + Blockchain

DHT + Blockchain

Consistency control

Consistency control

Consistency control

Benefits • Uniform distribution transactions all over cluster

• Execution time have weak dependency on number of nodes

• Real-time transactions.

• Blockchain can be validated

independently.

Real-time

Further

• BTC integration

• Fail tolerance

• BitTorrent announce

Questions ?