Case 03
Ledger API
A double-entry ledger service behind a payouts product, with idempotent writes and an audit trail finance can read.
- Role
- Backend engineer
- Year
- 2024
- Stack
- Go, PostgreSQL, Kafka
- Links
The problem
Retries from mobile clients occasionally created duplicate payouts that had to be reversed by hand.
What I did
Required an idempotency key on every write, recorded each movement as balanced entries, and exposed a read-only audit view for the finance team.
Outcome
Duplicate payouts stopped. Month-end reconciliation dropped from two days to an afternoon.