Re:How much memory do you need in 2024 to run 1M concurrent ...
by brabel on Friday November 29, 2024 @02:10AM
(#42271617)
If you want to run 1 million coroutines that just sleep in your app, yeah nodejs looks very efficient. The problem is that when each coroutine needs to allocate memory, which I would suppose anything real would do, the 2Kb Go pre-allocates will be an advantage - as it will probably be required except for the most trivial workloads (like in this benchmark) - and then because Go actually runs them in parallel, unlike nodejs, you would likely see a huge improvement in both performance and memory usage with Go or Rust.
[ Parent
| on HN ]
There are no comments on this comment yet.