IntermediateAbout 16 min

    ACID Transactions

    Read the full article on Substack

    7 min read.

    Explore the four guarantees — Atomicity, Consistency, Isolation, Durability — that make database transactions safe even during crashes, rule violations, and concurrent updates.

    Think of it this way: Think of a bank teller processing your wire transfer: either the full transfer happens (money leaves your account AND arrives in theirs) or nothing happens at all — the teller never leaves you with money missing from both sides.

    Account A
    $200
    Account B
    $100

    Move $50 from A to B. That is two writes: debit A, then credit B.

    1/11

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Which letter of ACID?

    Sort

    Sort each guarantee into the ACID property it describes.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Atomicity

    Drop items here

    Consistency

    Drop items here

    Isolation

    Drop items here

    Durability

    Drop items here
    5 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    A bank transfer debits Account A successfully but the server crashes before crediting Account B. $50 disappears. Which ACID property, if enforced, would have prevented this?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going