Innomerc Learn
English is the default.
A worked example

Two changes, one transaction.

One exchange at a time. Read what changes, then explain it in your own words before moving on.

  1. Meet the components
  2. Follow the steps
  3. Compare an example
  4. Check your understanding
Interactive Lab

Two changes, one transaction.

Example: ten fictional game points move between two records. This is a database model, not a payment service.

Steps1. BEGIN + changes 2. COMMIT 3. Success
Click a box or choose its name to learn what it means.
Game serviceReadyDatabaseReadyResultReadyGame serviceReadyDatabaseReadyResultReady
Ready to traceBoth changes commit
Before you start · 3 stepsBoth changes commit

The application groups the dependent updates in one database transaction.

How to use this example

Select Next step to read at your own pace, or Animate step to watch one exchange. Nothing advances until you choose.

Inspect components & read every step
  • Game service

    The fictional application requesting a points transfer.

    Example: It asks the database to subtract and add points as one transaction.

  • Database

    An organized store of records that software can read and update.

    Example: A shop stores product quantities and order records.

  • Result

    The outcome produced by the operation in this example.

    Example: Read the current state and the step explanation to see what succeeded or failed.

Both changes commit

The application groups the dependent updates in one database transaction.

  1. Game service Database: BEGIN + changes. Subtract from one fictional record and add to the other within the transaction.
  2. Game service Database: COMMIT. The successful transaction is committed as one unit.
  3. Database Result: Success. The result reports a completed database transaction.

A condition fails

The application discards the transaction when a required condition is not satisfied.

  1. Game service Database: BEGIN + check. The application begins and checks the required conditions.
  2. Game service Database: ROLLBACK. A required condition fails, so the transaction is rolled back.
  3. Database Result: Not completed. The result explains that this attempted transfer did not commit.

Fictional teaching trace. One moving dot represents an exchange, not a measured network capture.