Answer the question
In order to leave comments, you need to log in
Ruby on Rails vs Node.js: which is better to choose?
What consumes less resources (memory), has fewer dependencies and performs its tasks more efficiently?
Answer the question
In order to leave comments, you need to log in
Node with rails can not be compared at all. No way.
An analogue of a node in Ruby is https://github.com/eventmachine/eventmachine - a framework for asynchronous work with sockets. Everything that can be done in a node can also be done in the eventmachine.
Eventmachine resources will eat up more nodes. Not by orders of magnitude, but at times. This is a minus, critical only in very rare situations. The advantage of the eventmachine will be that it will not be used javascript, but ruby and all the accompanying ruby infrastructure - thousands of libraries (gems) for all occasions.
You didn’t write what purpose you choose the framework for, but I can assume that for some web project, for 99.99% of which neither node nor eventmachine is suitable due to their asynchrony and low-level nature.
If you need a framework for writing a web application, then rails simply has no competitors in the ruby / nodejs environment. express.js/sinatra and other mini frameworks for something serious should not be considered, although if you like to invent bicycles and do everything by hand, then you can.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question