News for hackers. Stuff that matters.

Ask HN: How are account balances updated in a real bank?

To folks who worked with financial organisations, I wonder how accurate the Account Balance updated examples are with respect to transaction isolation and concurrent updates? Or do banks just updates ledger and balances in a literally serialized manner with one thead avoiding any complexity altogether?
( 8 comments | 4 points | on HN )
Re:Ask HN: How are account balances updated in a real bank? by stop50 on Tuesday February 13, 2024 @01:23PM (#39360886)
In the past it was mostly the second, but now its the first.
Re:Ask HN: How are account balances updated in a real bank? by gitgud on Tuesday February 13, 2024 @07:04PM (#39364612)
It’s all an immutable ledger, where the “account balance” is just a sum of all transactions on the account…

disclaimer: I don’t work in finance at all

Re:Ask HN: How are account balances updated in a real bank? by b20000 on Tuesday February 13, 2024 @08:55PM (#39365424)
it all just lives in a bunch of csv files on a few people’s PCs and every night a 62 year old man copy pastes it together and checks everything and then uploads it to some old mainframe. he is the only one who knows how to do that job.
Re:Ask HN: How are account balances updated in a real bank? by kul_ on Wednesday February 14, 2024 @09:23AM (#39370074)
I cannot tell if this is a serious comment.
Re:Ask HN: How are account balances updated in a real bank? by 0xBDB on Wednesday February 14, 2024 @03:20PM (#39374755)
It isn't, but it's not that far from being a serious comment.

The old man has an ancient PC choking on dust under his desk that runs a QWS3270 terminal that updates the mainframe directly. If it's a big bank, the bank owns the mainframe. If it's a small bank, a vendor (probably Fiserv) does.

Source: I've consulted for a lot of banks.

Re:Ask HN: How are account balances updated in a real bank? by sloaken on Tuesday February 13, 2024 @11:09PM (#39366366)
I remember one bank used to, and it was big news, process all deductions from accounts, then issue overdrawn penalties, then any deposits. So if you had $500 in your account, then deposited $500 in cash, then withdrew $501, you would be overdrawn and assessed a penalty. Oh and it was a very major bank (in the US).
Re:Ask HN: How are account balances updated in a real bank? by twunde on Wednesday February 14, 2024 @02:01PM (#39373705)
If you're interested in this topic, you may want to read through some of the Bits about Money essays/newsletters: https://www.bitsaboutmoney.com/
Re:Ask HN: How are account balances updated in a real bank? by throwaway828 on Wednesday February 14, 2024 @02:04PM (#39373750)
Look into Flexcube docs to more fully answer your questions. It's a reasonably well established core banking product, or series of products.