Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.16 KB

File metadata and controls

22 lines (15 loc) · 1.16 KB

Atomicity

  • Atomicity is a feature of databases systems dictating where a transaction must be all-or-nothing.
  • That is, the transaction must either fully happen, or not happen at all. It must not complete partially.
  • Each transaction is considered as one unit and either runs to completion or is not executed at all.
  • In database systems, atomicity is the ACID property.
  • The ability to abort a transaction on error and have all writes from that transaction discarded is the defining feature of ACID atomicity.

It involves the following two operations.

  • Abort - If a transaction aborts, changes made to the database are not visible.
  • Commit - If a transaction commits, changes made are visible.

Two Phase Commit

img.png

Examples Use Cases

Use Case
Redis Transaction Lock