~/talk

Double-entry accounting at scale

Talkat fintech_devcon 2023 · 2023-08-23..08-25· [databases, payments-and-fintech]
links:none on file
slides:none on file

Relational ledgers hit a hard throughput wall because row-level locks limit updates to about 25 requests per second on a hot account; proof comes from Locust-driven tests against Postgres. The solution builds an API that writes entries immediately, tags them with account versioning, then batches additive entries via AWS SQS pollers into a single UPDATE per account. Idempotency uses a processed_entry table; median queue roundtrips are ~300–400ms (99th ≈1.3s). The hybrid async pipeline removes the hot-account bottleneck while preserving double-entry correctness.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What is double-entry accounting
  3. 3:55Why track money with a ledger
  4. 5:39Basic ledger data model
  5. 7:43Performance bottleneck in ledgers
  6. 10:53Solving balance consistency with versions
  7. 12:19API usage example
  8. 14:49Performance test setup
  9. 17:17Hot account problem
  10. 20:27Asynchronous batch processing
  11. 22:31Hybrid synchronous async workflow
  12. 25:02Handling queue failures
  13. 28:35Out-of-order message handling
  14. 32:08Monitoring queue latency
  15. 35:20Verifying account balances
  16. 37:08Design advice for ledgers
  17. 38:11Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.