Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,441 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.