Hacker News new | ask | show | jobs
by azinman2 3713 days ago
"Everyone knows that asynchronous code performs better when applied to network operations"

Ummm that seems a bit far reaching.

1 comments

It depends on what "network operations" you are trying to do.

For high-concurrency purposes, asynchronous programming is far more scalable (see: epoll/kqueue + state machines).

For high-throughput, low-concurrency operations, it doesn't matter as much.

I happen to know of a very major tech company who scale is insane yet their core c++ code is based on highly tuned blocking threads. It's not a given that async is the only way to scale.