最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Shall I use Node.js Instead of Rails for Real-time WebApps? - Stack Overflow

programmeradmin1浏览0评论

I'm in the process of building a plex web app that must work a lot with real-time data and showing that data to the user.

Given that I'm more used to Rails, I'm wondering if there's a big advantage of dumping rails and use node.js to build the app or if there's a way I can have the real-time advantages of Node.js in Rails.

Better would be to be able to use Node.js and Rails. Is that a possibility?

Thanks

I'm in the process of building a plex web app that must work a lot with real-time data and showing that data to the user.

Given that I'm more used to Rails, I'm wondering if there's a big advantage of dumping rails and use node.js to build the app or if there's a way I can have the real-time advantages of Node.js in Rails.

Better would be to be able to use Node.js and Rails. Is that a possibility?

Thanks

Share Improve this question asked Apr 4, 2011 at 13:46 donalddonald 23.7k45 gold badges145 silver badges224 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 6

Better would be to be able to use Node.js and Rails. Is that a possibility?

IMHO bining the best of both worlds is a very good idea since you can use your existing experience to build "standard" MVC parts of your web application and use node.js for specific real-time based elements. This can not only widen your skill set but you can also learn new techniques on how to solve various problems with appropriate tools.

You should read this : Ruby on rails and Node.js

The answers of Shripad K and Andy Atkinson are greats !

Node.js has a lot of advantages, but you do have to know what you're doing to take advantage of it's power. That usually takes some time. The primary bonus against rails is that Node.js is more lightweight than Rails (which is saying a lot, IMO), and supports higher concurrency.

Though I feel I should side note at this point that a lot of real-time data retrieval doesn't necessarily mean you need high concurrency. It means that you need to make sure your middle tier and data access tier are very speedy, and that you can handle the throughput. By definition, Node.js covers the first one. Though either way you're talking in low milliseconds for response times.

If you want to get in to the JavaScript event-driven world, I'd certainly remend trying it out. But for something that's not just a 'test it out' project (for your first attempt), I don't know how good of an idea it is.

Either way, best of luck!

发布评论

评论列表(0)

  1. 暂无评论