Ruby on Rails or Node.js? What is better for e-commerce sites?

I make an e-commerce site that deals with drugs, a large number of them. I can not choose between Ruby on Rails and Node.js. Can someone tell me which would be more helpful?

I just need some opinions. Thanks

+4
source share
2 answers

From a technological point of view, both of them are very capable. It depends on your preferences and the situation for which you choose.

However, if this is a commercial project, I would say that the undoubted winner will be a ruby. It is more mature than node, and therefore it has better tools, improves Google’s ability, and it will be much easier for you to find employees who have experience in development and debugging. These considerations will be much more important for most projects than a purely technical comparison.

+4
source

Basically you will receive biased and stubborn answers to this question.

Both options are very good, but you should choose what is more familiar to you (or if you plan to study with what you like best). In addition, you need to think about the platform on which you will deploy: can you install additional software (for example, libraries) on it? Can you use gem (Ruby) or npm (Node.js) to set up additional requirements that you might need?

All this is very relative to you. They are both excellent tools.


Note. Next answer perhaps definitely stubborn.

I would say that Rails, because it could (in my experience) work faster and easier.

In terms of performance, I think node.js might be a little better, but if you don't have a lot of traffic, it doesn't matter.

In addition, do not forget that you are always Unicorn (MRI / CRuby) or Puma (JRuby, Rubinius), and combining these two with nginx , and you are on horseback! Well, on a cougar or on a unicorn, technically ... So, that would solve your performance problem if that happened.

In addition, Ruby (a humanist, afterall) is a much more elegant language than JavaScript, although you can get around its subjective ugliness [1] using CoffeeScript .

In the end, it depends on preferences. I like both, but I prefer Ruby a bit over JavaScript, and I also prefer Rails a bit over node.js.


[1]: I don't find it ugly in person.

+12
source

All Articles