News for hackers. Stuff that matters.
Re:Balloons.io: an awesome looking realtime chat on node.js by theturtle32 on Sunday June 03, 2012 @10:56PM (#4062471)
It depends on how it's implemented. I used node.js to implement the websocket-based real-time aspects of my startup, Worlize, a graphical avatar-based chat platform where everyone can create their own chat world.

I use a sharded approach where each room is assigned to a random node.js websocket server when the first person enters it, and it's unloaded when the last person leaves. Just spin up more websocket servers to scale.

We have a hybrid platform with the website running on Ruby on Rails (REE 1.8.7, Unicorn, fronted by Nginx), and the real-time interaction handled by Node.js. I can tell you that the RoR servers fall over LONG before the Node.js servers even begin to break a sweat.

edit: Link to Worlize if you're curious: https://www.worlize.com/ Our Node.JS WebSocket Library: https://github.com/Worlize/WebSocket-Node

Re:Balloons.io: an awesome looking realtime chat on node.js by factorialboy on Monday June 04, 2012 @12:04AM (#4062631)
Nice!

How does it compare with Socket.io? I use Socket.io for Review19 - http://review19.com - and am always looking to experiment with new frameworks.. :-)

Re:Balloons.io: an awesome looking realtime chat on node.js by theturtle32 on Monday June 04, 2012 @12:36AM (#4062707)
The two aren't necessarily the same kind of thing. WebSocket-Node is a low-level WebSocket framework. It supports both text and raw binary WebSocket messages. Socket.IO is not a WebSocket library, but sits one level higher on the stack. It's an abstraction layer that supports many different transports and overlays its own messaging semantics. For example, WebSocket-Node could theoretically provide the WebSocket transport for Socket.IO.

If you want WebSocket specifically, and don't care about falling back to long-polling techniques, or you want something that allows you to use true binary messages, look at a WebSocket library rather than an abstracted communications library like Socket.IO.

Re:Balloons.io: an awesome looking realtime chat on node.js by theturtle32 on Monday June 04, 2012 @12:40AM (#4062715)
Review19 looks pretty cool! Looking forward to trying it out!