Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 60357

Questions about maintaining consistency between a set of related operations, in a way that either all succeed, or the state of the system remains unchanged.

16 votes
Accepted

Group set of commands as atomic transactions (C++)

In practice, such atomic transactions do not exist. Instead, you can try to make all operations idempotent so that they can be safely retried. Idempotence is particularly important for network operati …
amon's user avatar
  • 135k
3 votes
Accepted

Build a Rust project using Clean architecture and DB transactions in the same DDD bounded co...

Or, the transaction can buffer all proposed changes, and only apply them once the transaction is committed. In either case, the transaction will track information about the proposed changes. … In Rust, such sharing would likely require an Arc<Transaction> or Arc<Mutex<Transaction>>. …
amon's user avatar
  • 135k