ACID transactions are a set of properties that ensure reliability and consistency in database transactions. The term "
ACID" stands for:
Atomcity: Atomicity ensures that all operations within a transaction are treated as a single unit of work. Either all of the operations are successfully completed and the transaction is committed, or none of the operations are performed. If any part of the transaction fails, all the transactions made are undone and the transaction is rolled back to its original state. This property guarantees that the database remains in a consistent state even in the event of any failure.
Consistency: Consistency ensures that the database remains in a valid state before and after the transaction. The integrity constraints and rules defined for the database are not violated during the execution of a transaction.
Isolation: Isolation ensures that each transaction operates independently of other transactions. The intermediate states of a transaction are not visible to other transactions until the transaction is completed (committed)
Durability: Durability ensures that the changes made by a committed transaction persist even in case of system failures, such as crashes or power outages. Once a transaction is committed, its changes are permanently written to the database and cannot be lost. Durability is typically achieved by writing transaction logs.
https://redis.com/glossary/acid-transactions/
Dirty read, Non-repeatable read, and Phantom read