2 ms·
That was my thought to. They've got a problem where they've got no idea what a given transaction costs and some unpredictable amount of transactions result in
by duxup 7y ago
That was my thought to. They've got a problem where they've got no idea what a given transaction costs and some unpredictable amount of transactions result in some serious work that holds up the event queue.
God knows they could be waiting for some reel to reel tape to spin up somewhere...
- coddle-hark 7y agoThe whole point of async I/O is to be able to do something useful while waiting for tape to spin up. I don’t buy it.
- duxup 7y agoThe article certainly raises more questions than answers that's for sure.
- spamizbad 7y agoBut you need to know if you can do that something first, or if you've done that something too many times in the last N minutes (and could get blocked, forcing thousands of other somethings to get endlessly queued). Or if that something could take too long, and actually you could be doing 200 other somethings in the same time etc. It's not that simple.
- Slartie 7y agoBut the whole point of synchronous I/O is to isolate the programmer from having to think about that spinning tape up takes a non-zero time. I have a feeling that this gets lost sometimes in all that "async I/O is the GREATEST!" craze. Async is nice - if you can handle it. But this is not easy to do in complex systems and processes. It is certainly easier to work with an old-fashioned process that blocks when waiting for whatever you need to wait for, and just scale by letting the OS run lots of those in parallel. Sure, it's less efficient. But it's easier for the devs to handle. I just read the hidden undertone of this article as "our devs aren't that smart after all".