Understand ACID and Transaction

sadiqur_rahman

Sadiqur Rahman

Posted on May 16, 2022

Understand ACID and Transaction

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
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.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

Modern C++ for LeetCode 🧑‍💻🚀
leetcode Modern C++ for LeetCode 🧑‍💻🚀

November 29, 2024