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.
- Lesson 38
The balance projection
Cache the balance as a projection, never as truth. The ledger always wins.
- Lesson 39
Double-spend prevention
Two concurrent withdrawals can each pass the same balance check. Lock or constrain.
- Lesson 40
Rebuilding from the ledger
When the cache corrupts, the ledger lets you start over.
- Lesson 41
Partitioning and historical snapshots
Bound the hot working set. Snapshot at period close. Archive the rest.