Production Case Studies
Unfiltered dissections of production systems: the messy initial problems, architectural decisions and trade-offs, and quantified performance outcomes.
LedgerFlow — Real-Time Idempotent Financial Reconciliation
Engineered an immutable, double-entry financial ledger that eliminated balance race conditions across 450,000 daily transactions with zero overdraft discrepancies.
Asynchronous payment settlement webhooks and mobile retry taps created phantom double-debit entries and balance overdraft race conditions during peak flash sales. The legacy system relied on simple UPDATE balance = balance - amount queries that failed under concurrent load.
Enforced strict double-entry accounting with PostgreSQL immutable ledger rows, serializable transaction isolation, Redis distributed mutex locks (Redlock), and database-level atomic balance check constraints.
Have a similar system to design or fix?
We turn sluggish query bottlenecks, dropped webhooks, and manual spreadsheets into rock-solid production software.