Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why use Node.js if I don't require real-time functionality? [closed]

I'm considering using Node.js with a framework such as express, meteor, or sails (a directory with social features such as sharing, messaging and uploading media). I don't have any features planned that explicitly require real-time functionality, so does it make sense to use Node.js anyway instead of Rails?

There's so much buzz around Node.js that I am tempted to use it just so that I don't get left behind.

like image 743
PollenBrands Avatar asked Jun 24 '26 11:06

PollenBrands


1 Answers

As DHH wisely noticed regarding Node vs Rails, "everything can be used instead of everything else". That's somewhat true in a sense that, for example, a site in Rails with promptly set up caching can be as fast as one written in Node.js.

Besides, Node is not necessarily about real-time. It's more about being able to handle many light (in terms of processing time needed) requests. If you expect high level of concurrency (I mean, really, expect, not just are dreaming of it) and every request is supposed to be relatively small, then you could consider using Node, just because handling bigger load (up to some point) will require less work with Node.

Bottom line, use what you are good at. Unless you want to try something new. And Node.js is definitely worth trying.

like image 150
bredikhin Avatar answered Jun 26 '26 00:06

bredikhin