Faye & Ruby or Node.js for scalability

I am looking for a prototype web application that will use sockets to direct a gentle message flow to mobile web application clients. I want to choose an architecture that will work for a large number of customers if / when it goes to production (so I do not need to change later)

I would like to start with the rails, because its familiar and having a strong structure from the target is simpler than the prototype. I think Faye will provide what I need from a pub-sub level perspective, but I'm going to create a bottleneck using ruby ​​and a lot of socket connections, or Faye isolates / protects the Ruby server from this load if you follow

At first, loading will not be meaningful, so it doesn’t matter, I just don’t want to be hobbled later when there are many socket connections, and I would like to use node.js! Server-side JS would be completely new to me, but I think there are advantages in that a JS application can include a client side.

Recommendations appreciated.

+4
source share
1 answer

You can look at https://github.com/faye/faye-redis-node .

This plugin provides a Redis-based core server for the Faye messaging server. It allows you to distribute a single Faye service across many front-end web servers by storing status and routing messages through a Redis database server

0
source

All Articles