Engineering deeper
Event sourcing + CQRS, multi-region replication, sharding, WORM, column encryption. The architecture for ledgers at billions of rows.
5 hands-on lessons in this topic. Read each one free, then practice it on a real double-entry ledger in the lab.
- Lesson 81
Event sourcing vs CQRS for the ledger
Your journal IS an event log. Don't fight that fact.
- Lesson 82
Multi-region replication for ledgers
Eventual consistency is fine for blog posts. It's not fine for double-spend prevention.
- Lesson 83
Sharding strategies for ledger tables
100 million users, one Postgres won't hold them. Pick a shard key.
- Lesson 84
WORM enforcement: write-once-read-many for the journal
Auditors trust your ledger to the degree they trust nobody can edit history.
- Lesson 85
Encryption at rest for sensitive ledger fields
Encrypt at the column level, not just the disk. Your DBA shouldn't see PII.