Scale and concurrency

Projections, locks, rebuild paths, partitioning. How the ledger stays fast at billions of rows.

4 hands-on lessons in this topic. Read each one free, then practice it on a real double-entry ledger in the lab.

  1. Lesson 38

    The balance projection

    Cache the balance as a projection, never as truth. The ledger always wins.

  2. Lesson 39

    Double-spend prevention

    Two concurrent withdrawals can each pass the same balance check. Lock or constrain.

  3. Lesson 40

    Rebuilding from the ledger

    When the cache corrupts, the ledger lets you start over.

  4. Lesson 41

    Partitioning and historical snapshots

    Bound the hot working set. Snapshot at period close. Archive the rest.

Search lessons

Type to find any of the 85 lessons. Press Enter to open.