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:
- What are the advantages/disadvantages for each one of them?
- Can Socket.io replace RabbitMQ?
- Are there scenarios I need RabbitMQ for web apps where Socket.io doesn't suffice?