<@U5NBC1Q4U> Coroutines in a single thread give no...
# coroutines
e
@s1m0nw1 Coroutines in a single thread give no parallelism benefit, but they give you better throughput under certain conditions. In particular, if you can efficiently scale your app horizontally (by running multiple copies of it), which is the case for many simple apps that do not contain any large in-memory caches or other data structures, then you can get better performance from a particular piece of hardware by running N copies of your app (one per core), and using single-threaded coroutines in each running copy of your app. This is how a typical node.js app is structured, for example.
👍 2