2 ms·
Threads work OK for concurrency in many apps. The developer cost of async may not be worth it in many cases.
by lumost 4y ago
Threads work OK for concurrency in many apps. The developer cost of async may not be worth it in many cases.
- ibraheemdev 4y agoI would say that threads work _very well_ for concurrency in _most_ apps. Thread context switches have gotten much much cheaper over the years, and the idea that threads are heavyweight is very outdated.
- lumost 4y agoTrue, java apps have comfortably run 10s of thousands of threads without issue historically. Coroutines are nice as they allow trivially writing an app which scales to millions of concurrent operations. Rust is nice as it lets us write code for every occasion, async is awful as it poisons the entire ecosystem. The same result could have been achieved with a few tactically inserted yield statements for I/O and locking which are pretty much the only times that async or coroutines help.