3 ms·
Because libuv (which Node uses for multi-tasking) depends on threads being yielded in order for multiple things to happen without blocking. This is way easier t
by vorpalhex 9y ago
Because libuv (which Node uses for multi-tasking) depends on threads being yielded in order for multiple things to happen without blocking. This is way easier to think about and harder to screw up then traditional thread management with mutexes.
If your api is not asynchronous, then any expensive call is going to lock the entire application which is bad and also why I won't be using this library despite the actual underlying implementation being much faster.
- wruza 9y ago“Which is bad”. Did you measure the impact, subtracting harder development and run- time? Do you like to code in all hard ways before you meet any problems? Is sqlite a key performance point in your app? (Why not async-pg then?) How many requests per second do you have at average peak hours?