by vorpalhex · 9y ago · 0 comments
Simply booting up a single core http server should net you around 4-5k requests per second. Spin up an instance per core and you should be _at least_ in the 10k realm.
There's no such thing as "requests per second" generally. It's requests per second for a specific workload.
So, whether Node can do 4-5k rps with "hello world" doesn't matter much. It's the same engine that needs to also do the further processing for each fuller request.
Because the program is performing CPU compute for each request. Node is single threaded.
It's a shame that the Node project killed off the multithreaded web workers pull request. It sorely needs that functionality. Pools of node processes are a poor substitute.