
Tech
We Treated Our Ledger Like a Database Table. It Cost Us Six Months
We stored account balances as a mutable column and updated them on every transfer. It worked fine until a race condition double-processed a batch of payouts, and we discovered we had no way to independently verify what the correct balances should have been. We rebuilt the system around an append-only ledger, where balances are computed from history rather than stored directly, backfilled six weeks of parallel verification, and only then retired the old column. Here's what broke, why it bro...
Read the full discussion on HackerNoon
This article was aggregated from HackerNoon. Click to join the conversation.
View on HackerNoon