pwtail As far as I know, using async does not affect the raw throughput, but may result in better latency and the case with many clients is handled better too. As far as I know, this is not exactly the case. Am I missing something?
it-a-me Async programming is better for for IO heavy tasks because work can be shared between OS threads. A modern async runtime is far more efficent at task switching than relying on the OS itself.
Ikey Thread context switches are heavy and contention for I/O is a bottleneck. Asynchronous (coroutine) runtimes use cheaper green threads which are application controlled and invariably soft lock/yield based on polling i/o