Upload
alexey-troshichev
View
602
Download
3
Embed Size (px)
Citation preview
Race Condition • Unsafe operations with shared resource
• Unsafe replication over distributed resource
Serious bug?
https://en.wikipedia.org/wiki/Northeast_blackout_of_2003
Soft lock
select balance from customers where id = $id;
{logic}
update customers set balance = $new_balance
where id = $id and balance = $balance;
Starbucks case
http://sakurity.com/blog/2015/05/21/starbucks.html
Benefits • Uniform distribution transactions all over cluster
• Execution time have weak dependency on number of nodes
• Real-time transactions.
• Blockchain can be validated
independently.