2 ms·
> It could be that, in reality, that kind of data doesn't exist, because any data worth keeping is worth the trouble of keeping consistent Not necessarily. Wha
by rdtsc 12y ago
> It could be that, in reality, that kind of data doesn't exist, because any data worth keeping is worth the trouble of keeping consistent
Not necessarily. What is important is not "dropping" the data on the floor in an unpredictable fashion. The sane eventually consistent models will present the conflicted versions to the user. (Optionally all sides picking the same one value, as winner, but never throwing away others).
That is what Riak does in its correct (sadly non-default) configuration and that is what CouchDB does.
This bubbling up of eventual consistency to the very top layer is the correct behavior. The database might find that both you and your friend withdrew $100 from the same account. Now that account is in a negative balance perhaps. But the important thing is it keeps both transactions. So something above can decide to pick a winning one, not pick any and cancel both, to use maybe a timestamp. Or to cancel the account because of possible fraud.