RabbitMQ vs Socket.io?

Viewed 36231

I'm doing real time live web app development.

Browser users should be able to communicate with eachother through a node.js server. One of the user writes a message and all other users will get it.

I don't quite get how RabbitMQ works. But from quick reading it seems that it handles publication/subscription of messages.

A user (in a browser) publishes something and subscribers (in other browsers) get that message. Isn't that what Socket.io is doing with websockets?

Here are my questions:

  1. What are the advantages/disadvantages for each one of them?
  2. Can Socket.io replace RabbitMQ?
  3. Are there scenarios I need RabbitMQ for web apps where Socket.io doesn't suffice?
3 Answers
Related