Atonicity

To prevent this, systems use . In this "all-or-nothing" approach, the database treats the two steps as one:

If these steps weren't "atomic," a technical glitch (like a power outage or server crash) occurring exactly between step one and step two could lead to a disaster. Your money would vanish from your account, but it would never arrive in your friend's account. The money would simply disappear into the digital void. How Atomicity Saves the Day atonicity

The concept of —the idea that a complex process must be treated as a single, indivisible unit—is best understood through the lens of a bank transfer . To prevent this, systems use

If anything goes wrong at any point, the system performs a rollback . It undoes any partial changes, returning your account balance to exactly what it was before you hit "send". The money would simply disappear into the digital void

If both steps complete successfully, the entire transaction is "committed" to the record books.

By ensuring that a process cannot be "half-finished," atomicity maintains the integrity and reliability of our digital world, from banking to collaborative recipe platforms .

Imagine you are sending money to a friend to pay for dinner. This seemingly simple action actually requires two distinct steps within the bank's database: the amount from your account balance. Adding that same amount to your friend’s account balance. The Story of a Failed Transaction

Shopping Cart