3 ms·
Threads are cheap compared to the process-per-request model that came before. And they're easy to code for, you don't have to worry about blocking code or await
by the8472 3y ago
Threads are cheap compared to the process-per-request model that came before. And they're easy to code for, you don't have to worry about blocking code or awaiting your futures in the correct way or things like that.
They're not optimal if you want to squeeze lots of concurrent requests into some memory-limited box. But on the other hand even dumb threading offers more throughput than python or node.