Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create a cluster of node.js server in order to support many concurrency simultaneously, for a chat rooms applications. The servers hold information that needs to be shared between all nodes, I am trying to find out what would be the best way to keep all the servers synced. I want as much flexibility as possible in the shared object, as I plan to add more features in the future.

So far, I have 2 solutions in mind:

  1. Subscribe to NoSQL key (for example redis publish-subscribe)
  2. Nodes update each other using sockets.

Which is better? Am i missing anything?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.