Understand ACID and Transaction
Sadiqur Rahman
Posted on May 16, 2022
One document which had two pages content was sent to printer
Transaction - Document sent to printer
Atomicity - Printer prints two pages of a document or none.
Consistency - Printer prints half page and the page gets. stuck. The printer restarts itself and prints two pages with all content.
Isolation - While there were multiple print outs in progress - printer prints the right content of the document.
Durability - While printing, there was a power cut- printer again prints documents without any errors.
I really liked this simple exmplaination of transaction and ACID and I thought you guys might also benefit from it.
Ref: Stackoverflow
💖 💪 🙅 🚩
Sadiqur Rahman
Posted on May 16, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.