3 ms·
Banks do their transactions with reorderable increments and decrements, and reconciliation after the fact - they are "eventually consistent". More realistic ex
by JulianMorrison 13y ago
Banks do their transactions with reorderable increments and decrements, and reconciliation after the fact - they are "eventually consistent".
More realistic example of stuff actually mattering: you sold product and took the money. People will be annoyed if they don't get their goods.
- rescrv 13y agoAnd each of those individual operations must be preserved. The example of account credit/debit is not used because it reflects reality 100%, but because its a simple-to-understand example to illustrate the power of transactions. Most developers should be able to look beyond that simplification and see how they can put transactions to work (or see that they are unnecessary).