𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲 𝗔𝗖𝗜𝗗 𝗔𝘁𝗼𝗺𝗶𝗰𝗶𝘁𝘆

ACID keeps your database data correct.

Here is the breakdown:

Focus on Atomicity. It means all or nothing.

Think of a payment process:

Step 2 fails. Step 1 stays in the database. The user sees a success message. The money is missing. Your data is now wrong.

The fix is a transaction. Group all these steps. If one step fails, the database rolls back. Everything returns to the start. Your data stays clean.

Source: https://dev.to/qq5yu/database-acid-atomicity-54lb