Synchronizing ledger data in real-time
summary
A horizontally scaling many-queue system called the tree queue keeps ledger entries ordered only where necessary by storing per-event prereq arrays and locking roots with select for update; a Postgres proof-of-concept runs in production, processes wide but shallow trees (hundreds of parallel nodes), trims finished rows weekly, and removes global logjams when one transaction fails. A Kafka scaling plan maps ledger streams to tables and emits “ready to process” events for larger scale and partitioning.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 1:08Agenda and problem context
- 3:14When real-time sync is necessary
- 7:26Daily batch processing limits
- 8:09Cursor-based sync challenges
- 11:59Tree queue solution explained
- 17:35Questions and clarifications
- 22:11PostgreSQL implementation demo
- 34:12Kafka-based approach theory
- 40:13Q&A and resources
