Ruby on Rails
Sunday, March 2, 2014
Have you read this: http://greenash.net.au/thoughts/2012/11/nodejs-itself-is-blocking-only-its-io-is-non-blocking/
Its about having a non-blocking system which helps in increasing speed of execution.. it not about the language. Depends on whether your AJAX calls are calling blocking systems, or non-blocking ones.
Learn node.js. It does not seem to be a passing fad. Rails is very much alive and kicking. Also check out Java/Scala Play. Then see how the dots all connect.
Regards
Gurpreet
On 2 March 2014 01:37, Jedrin <jrubiando@gmail.com> wrote:
--
I have heard alot about Node.js and watched a few tutorials and read some stuff. I get the impression that in certain situations AJAX calls with node.js is alot faster than with rails. I also have somewhat of an impression that with Rails web sockets are complicated to implement but with node.js web sockets might be alot easier.
I am trying to figure out if I should learn some node.js or if it could be a passing fad to be replaced with some other technology soon. I am also wondering what sorts of improvements to rails might be coming in the future that could make AJAX calls faster in some situations as well as easier web socket implementations ? Are there things out there already ? Does it make sense to run a sinatra app along with rails for faster AJAX ?
How can a websocket implementation work easily with rails when it is different than the typical request cycle of HTTP ?
Otherwise I guess alot of AJAX stuff is just based on polling if the server wants to refresh page content without any user triggered events ?
I did an experimental web socket implementation using ruby faye a couple of years ago that needed event machine. I did think it was a bit complicated.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/806b2117-9e54-4fa1-bda2-f9be49a94680%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHKR60z-3FDrF2mR5%2BYQ8vaqFh3Tsb69dEZ31xdKDht-AGCCyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment