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
Top comments (0)