Atomic Transaction Posting in Go: Getting Balance Invariants Right Under Concurrency
Imagine an account with 100 taka in it, and two withdrawals of 100 taka arriving at the exact same instant. Both read the balance, both see 100, both say "yep, enough money," and both go through. The
notes.sohag.pro9 min read