Ledger throughput rewrite for a B2B payments platform
A double-entry ledger written in Ruby was capping at 340 postings/sec under payroll-day contention. We re-implemented the posting engine in Go with per-account serial queues and a Raft-backed journal, gated behind a differential tester that replayed a year of production journal entries. Sustained throughput now sits above 11,000 postings/sec with p99 under 40ms.
Go 1.22 · PostgreSQL 15 · NATS JetStream · etcd/raft · OpenTelemetry