Распределенный blockchain процессинг / Алексей Трошичев...
TRANSCRIPT
Distributed
Blockchain
Processing Alexey Troshichev
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