AI Features

Introduction to Transactions

Transaction

Let’s consider the cliche example of a bank transaction. Say Trump is making an online transfer of $100 into Biden’s bank account. To reflect this transaction successfully in both the accounts, the bank software has to deduct $100 from Trump’s account and add $100 to Biden’s account. These are two writes to the database and we want either both of them to succeed or both of them to fail in order ...