Y
Y
Yuri S.2013-12-01 06:59:11
Ruby on Rails
Yuri S., 2013-12-01 06:59:11

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

3 answer(s)
A
Andrey Sidorov, 2013-12-02
@yucom

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.

P
pomeo, 2013-12-01
@pomeo

You are comparing wrong, only express.js vs sinatra makes sense.

P
pavelBEPCTAJLLlIK, 2014-07-11
@pavelBEPCTAJLLlIK

<HTML>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question