News for hackers. Stuff that matters.
Re:NowJS Real-time Trials: Build a 2-week hack, win sweet pr... by cubicle67 on Friday September 16, 2011 @10:37PM (#3007065)
Reading through the examples and docs and I think this looks very interesting.

Anyone here have any experience with it?

Re:NowJS Real-time Trials: Build a 2-week hack, win sweet pr... by jeromeparadis on Saturday September 17, 2011 @10:36AM (#3008098)
I'm working on a pet project with nowjs and find it quite useful. What sucks is I started this a few weeks ago so I wouldn't be admissible for the contest. Nowjs basically kinds of adds an abstraction layer on top of socket.io and makes it easier to develop real-time apps.

It's especially useful if you need the concept of room. They have a multi-room chat sample which gives a good start. For example, this would be quite useful if you wanted to build a MMORPG game with different maps/rooms where each user is in a single room at a time.

I'm using it with the concept of rooms and instead of sending chat messages to users connected to a room, and send JSON messages of different types and based on the type of message received by the client, I use backbone.js to update the UI based on what's received. When a user's action affect other users' views, message a dispatched back to the room.

The only problem I see with nowjs is that if you need horizontal scaling, you would need a license for a more scalable version of nowjs that doesn't seem to be ready yet from their website. Since I'm thinking forward for my pet project, I wouldn't want to pay for this. I'm thinking to add a Redis pub sub layer to take care of horizontal scaling but would love to have access to their solution for this!

Re:NowJS Real-time Trials: Build a 2-week hack, win sweet pr... by dshankar on Saturday September 17, 2011 @04:49PM (#3008889)
A single server running Now can easily handle 10-15k connections. The scalable solution you mentioned is called NowCluster. It is already in production-use by several companies, but has not been made publicly available.
Re:NowJS Real-time Trials: Build a 2-week hack, win sweet pr... by jeromeparadis on Sunday September 18, 2011 @12:07AM (#3009456)
That's good to know. If my app ever needs it, it will be a nice problem to have.