This type of coding is far beyond me but you'd think a (relatively) modest market of BTC wouldn't pound an exchange so hard that it can't keep up. I know in other good threads it was explained that just faster HDDs or SSDs wouldn't solve the problem alone but if not that then what? Spread the load to more physical systems? I don't think you could simplify the necessary transaction data further.
It just seems so odd that in periods of insane activity that they crash. If they're in an office building I'd imagine their net in and out is fast enough to handle tons of small KB-sized chunks.
I'm all for someone having an exchange without lag, though I'm sure it's easier said than done.
wall street seems to manage it