4 ms·
Does Node really scales better than other solutions with blocking operation ? ( read/write files, read/write from synchronous dbs ,etc... ) , i understand it wo
by camus 14y ago
Does Node really scales better than other solutions with blocking operation ? ( read/write files, read/write from synchronous dbs ,etc... ) , i understand it works quite well with queue messaging or async databases ,etc ...
But is it really better when one uses it for "classic" CRUD websites that display webpages and get their infos from , a postgres database ?
- Jean-Philipe 14y agopostgres or postgresql, not postgre. SCNR
- camus 14y agoSince you are so smart, why dont you answer the question ,french man?
- jeremiep 14y agoThe blocking in node.js happens at the C++ level. Your JavaScript thread is still free to process other requests while your initial request waits for a response from the database. However, without a memcache or redis layer in front of postgres I suspect the database machine will run out of resources way before the web server machine does.
- nobleach 14y agoFor your typical CRUD app, you won't notice a big difference. Rails/PHP/Java/ASP.net should deliver similar performance. If you're using Windows, Rails will slow down significantly unless you're using the latest JRuby 1.7/Java 7 release. The biggest "no-no" for a node app is proxying it behind a threaded webserver like Apache.