On 2026-11-03 23:47, John Levine wrote:
> According to Pancho <Panc…@protonmail.com>:
>>>>> I know at least one guy working on IBM mainframes, and he tells me >>>>> they are in high need of good assembler programmers. >>>>> >>>>> They need high i/o with very large databases. >>>>> ...
>
>> Traditional banking transactions almost certainly could be parallelised, >> to quite a high degree, whether they were or not, I don't know. They are >> nowadays.
> > Only up to a point. Making the read part of databases run in parallel > is easy. Making the write part is not. > > If you have $100 in your bank account, and two $75 debit transactions > arrive at the same time, if the result is anything other than that one > succeeded and the other failed*, your bank has a problem. The reason they > need very fast very large databases is that updates have to be serialized > and there's no way to make them faster than the underlying system. Same > for airlines allocating seats and any other database reflecting a real world > application where there's a finite amount of something to be parcelled out.
I suppose the first transaction arriving blocks the record. Even if both arrives the same microsecond, only one gets the lock.
> > > > * - yes I know about overdrafts, this is an example
-- Cheers, Carlos E.R. ES🇪🇸, EU🇪🇺.