|
|
|
|
|
by cakoose
3401 days ago
|
|
How would you perform the classic "transfer money from one account to another" operation? Would you create a single operation that reads one record, checks that it's enough, then adds the amount to another record? Or maybe you'd first read both accounts, then issue a conditional write operation that makes sure the data hasn't changed before doing the write? |
|
edit: here's an example in our Scala DSL: