Top Banner
Distributed Blockchain Processing
21

Distributed Blockchain Processing

Feb 11, 2017

Download

Engineering

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Distributed Blockchain Processing

Distributed

Blockchain

Processing

Page 2: Distributed Blockchain Processing

What is processing?

Page 3: Distributed Blockchain Processing

Processing

Page 4: Distributed Blockchain Processing

Race Condition • Unsafe operations with shared resource

• Unsafe replication over distributed resource

Page 5: Distributed Blockchain Processing

Serious bug?

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

Page 6: Distributed Blockchain Processing

Lock

Page 7: Distributed Blockchain Processing

Deadlock

Page 8: Distributed Blockchain Processing

Soft lock

select balance from customers where id = $id;

{logic}

update customers set balance = $new_balance

where id = $id and balance = $balance;

Page 9: Distributed Blockchain Processing

Eventual consistency

Page 10: Distributed Blockchain Processing

Starbucks case

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

Page 11: Distributed Blockchain Processing

WTF blockchain? • Check sequence

• Check integrity

• Authenticate transactions

Page 12: Distributed Blockchain Processing

DHT

Page 13: Distributed Blockchain Processing

DHT + Blockchain

Page 14: Distributed Blockchain Processing

DHT + Blockchain

Page 15: Distributed Blockchain Processing

Consistency control

Page 16: Distributed Blockchain Processing

Consistency control

Page 17: Distributed Blockchain Processing

Consistency control

Page 18: Distributed Blockchain Processing

Benefits • Uniform distribution transactions all over cluster

• Execution time have weak dependency on number of nodes

• Real-time transactions.

• Blockchain can be validated

independently.

Page 19: Distributed Blockchain Processing

Real-time

Page 20: Distributed Blockchain Processing

Further

• BTC integration

• Fail tolerance

• BitTorrent announce

Page 21: Distributed Blockchain Processing

Questions ?