Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Do Nascimento Romain
Do Nascimento Romain
6,303 Points

Is making an Instant Messaging System with RubyOnRails a bad idea ?

Hello,

I'm thinking of making a web app that provides instant messaging services (something similar to Slack, Skype, Hall...) with some social features.

I first thought that Ruby would be a nice programming language to do so.

However, I found several times on the Internet that Ruby was quite bad at handling lots of requests, and making an instant messaging system with it is not a good idea. People instead suggested me to use an event-driven programming language such as node.js.

Are they right ? What do you think about it guys ?

Thanks :)

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

You can research Rails' support for Websockets through alternative servers like Puma or Phusion Passenger. I can't say how well this would perform under load, I just wrote a simple chat using this tutorial: http://www.sitepoint.com/realtime-mini-chat-rails-faye/

It worked fine, even when deployed on Heroku. It's possible that Node is better suited for this, but I have no experience with it.

Do Nascimento Romain
Do Nascimento Romain
6,303 Points

Thank you ! The tutorial looks great I'll try it as soon as I'll have a little time.