4 ms·
On an initial page load, the user tends to be blocking on the page response - the user is forced to treat it as a synchronous operation, though they can task sw
by gridspy 17y ago
On an initial page load, the user tends to be blocking on the page response - the user is forced to treat it as a synchronous operation, though they can task switch to other pages.
On the server side, the merit of asynchronous processing depends on the goal. I'm quite happy to spin up multiple processes and have each process synchronous process a single request on the server - my time is too valuable to debug the alternatives at the moment.
I'm quite happy to admit that my HTTP requests are processed synchronously by Apache, mod_python and django. Even the out-of-band requests from ajax also tend to be synchronously processed. On my power dashboard, I handle ongoing comms using Twisted and totally asynchronously - pushing data to the user through Orbited. This gives our system an extremely fast response rate.
Event loop driven code is the key to decent firmware performance. It is how we ensured that the responsiveness our our hardware solutions in the past (such as the Kiddie Kart) was very good.