Re:NoSQL Meets Bitcoin and Brings Down Two Exchanges
by Alex3917 on Sunday April 06, 2014 @07:22PM
(#7543675)
The problem is that eventual consistency doesn't mean eventual correctness. The basic issue is that math usually only works if you do it in the correct order, e.g. (X+2)5 != (X5)+2. And if you're using a document store to do mathematical transactions then you're not guaranteed that they execute in the correct order, all that you're guaranteed is that all the nodes will eventually be the same in your database.
[ Parent
| on HN ]
Re:NoSQL Meets Bitcoin and Brings Down Two Exchanges
by nevi-me on Sunday April 06, 2014 @08:55PM
(#7544022)
But debits and credits do not use multiplication nor division, so for those transactions the order doesn't matter.
Re:NoSQL Meets Bitcoin and Brings Down Two Exchanges
by jamesaguilar on Monday April 07, 2014 @12:23AM
(#7544624)
If eventually consistent databases stored pending operations rather than pending values, this would matter. Unfortunately, they actually tend to be value based. So when you perform an operation on stale data, either the new operation will be lost, or the old one, depending on the implementation.