database

ACID Lab

Atomicity — All or Nothing

A transaction is a single unit of work. If any part fails, the entire transaction fails, and the database state is left unchanged.

person
Account A
Raj
Balance
500.00
arrow_right_alt
person
Account B
Anand
Balance
200.00

Transaction Steps

hourglass_empty

Begin Transaction

TX_START initiated

hourglass_empty

Debit Account A

Subtract from Raj

hourglass_empty

Credit Account B

Add to Anand

hourglass_empty

Commit Transaction

TX_COMMIT - Save all changes

terminalSystem Logs

Waiting for simulation...