I have been developing server side applications for decades using Java and then Python in the recent years. Performance has never been an issue, especially with Java. I decided to join the Nodejs community for developing server side. It's impressively simple to develop REST endpoints using Nodejs frameworks (Express, Feathers, Fastify, etc). Thanks to JavaScript, which allows to express many advanced constructions easily.My fist experience with Nodejs in the server side has been frustrating. I did a few experiments and have noticed the very low throughput, please see:https://github.com/feathersjs/feathers/issues/1297https://github.com/fastify/benchmarks/pull/51I have tested Nodejs 10.x on a Windows 10 laptop, with good specs: i7 4 cores, 32 GB RAM, SSD, 2.2 GHz, and also on a Linux server running CentOS 7, 4 cores, SSD, 3 GHz. I have gotten similar results on these machines, no more than 4k requests per second using a very simple REST endpoint.It seems that Nodejs can have great performance only on servers with high specs.Could you please share your thoughts on this subject?
Submitted April 21, 2019 at 11:24AM by averri
No comments:
Post a Comment