6 ms·
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. Nowj
by jeromeparadis 15y ago
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!
- dshankar 15y agoA 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.
- jeromeparadis 15y agoThat's good to know. If my app ever needs it, it will be a nice problem to have.