Need advice about which tool to choose?Ask the StackShare community!
Mosca vs RSMQ: What are the differences?
What is Mosca? A Node.js MQTT broker. A Node.js MQTT broker, which can be used as a Standalone Service or embedded in another Node.js application.
What is RSMQ? A lightweight message queue for Node.js that requires no dedicated queue server. Just a Redis server. tl;dr: If you run a Redis server and currently use Amazon SQS or a similar message queue you might as well use this fast little replacement. Using a shared Redis server multiple Node.js processes can send / receive messages.
Mosca and RSMQ can be categorized as "Message Queue" tools.
Some of the features offered by Mosca are:
- MQTT 3.1 and 3.1.1 compliant
- QoS 0 and QoS 1
- Various storage options for QoS 1 offline packets, and subscriptions
On the other hand, RSMQ provides the following key features:
- Lightweight: Just Redis and ~500 lines of javascript.
- Guaranteed delivery of a message to exactly one recipient within a messages visibility timeout.
- Received messages that are not deleted will reappear after the visibility timeout.
Mosca and RSMQ are both open source tools. Mosca with 2.84K GitHub stars and 501 forks on GitHub appears to be more popular than RSMQ with 1.07K GitHub stars and 78 GitHub forks.
Pros of Mosca
Pros of RSMQ
- Simple, does one thing well2
- Comes with a visibility timeout feature similar to AWS1
- Written in TypeScript1
- Written in Coffeescript1
- Backed by Redis1