Need advice about which tool to choose?Ask the StackShare community!

Mosca

16
43
+ 1
0
NSQ

142
356
+ 1
148
Add tool

Mosca vs NSQ: What are the differences?

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; NSQ: A realtime distributed messaging platform. NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. It promotes distributed and decentralized topologies without single points of failure, enabling fault tolerance and high availability coupled with a reliable message delivery guarantee. See features & guarantees.

Mosca and NSQ belong to "Message Queue" category of the tech stack.

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, NSQ provides the following key features:

  • support distributed topologies with no SPOF
  • horizontally scalable (no brokers, seamlessly add more nodes to the cluster)
  • low-latency push based message delivery (performance)

Mosca and NSQ are both open source tools. It seems that NSQ with 15.6K GitHub stars and 2.03K forks on GitHub has more adoption than Mosca with 2.84K GitHub stars and 501 GitHub forks.

Advice on Mosca and NSQ
Pramod Nikam
Co Founder at Usability Designs · | 2 upvotes · 547.5K views
Needs advice
on
Apache ThriftApache ThriftKafkaKafka
and
NSQNSQ

I am looking into IoT World Solution where we have MQTT Broker. This MQTT Broker Sits in one of the Data Center. We are doing a lot of Alert and Alarm related processing on that Data, Currently, we are looking into Solution which can do distributed persistence of log/alert primarily on remote Disk.

Our primary need is to use lightweight where operational complexity and maintenance costs can be significantly reduced. We want to do it on-premise so we are not considering cloud solutions.

We looked into the following alternatives:

Apache Kafka - Great choice but operation and maintenance wise very complex. Rabbit MQ - High availability is the issue, Apache Pulsar - Operational Complexity. NATS - Absence of persistence. Akka Streams - Big learning curve and operational streams.

So we are looking into a lightweight library that can do distributed persistence preferably with publisher and subscriber model. Preferable on JVM stack.

See more
Replies (1)
Naresh Kancharla
Staff Engineer at Nutanix · | 4 upvotes · 545K views
Recommends
on
KafkaKafka

Kafka is best fit here. Below are the advantages with Kafka ACLs (Security), Schema (protobuf), Scale, Consumer driven and No single point of failure.

Operational complexity is manageable with open source monitoring tools.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Mosca
Pros of NSQ
    Be the first to leave a pro
    • 29
      It's in golang
    • 20
      Distributed
    • 20
      Lightweight
    • 18
      Easy setup
    • 17
      High throughput
    • 11
      Publish-Subscribe
    • 8
      Scalable
    • 8
      Save data if no subscribers are found
    • 6
      Open source
    • 5
      Temporarily kept on disk
    • 2
      Simple-to use
    • 1
      Free
    • 1
      Topics and channels concept
    • 1
      Load balanced
    • 1
      Primarily in-memory

    Sign up to add or upvote prosMake informed product decisions

    Cons of Mosca
    Cons of NSQ
      Be the first to leave a con
      • 1
        Long term persistence
      • 1
        Get NSQ behavior out of Kafka but not inverse
      • 1
        HA

      Sign up to add or upvote consMake informed product decisions

      What is Mosca?

      A Node.js MQTT broker, which can be used as a Standalone Service or embedded in another Node.js application.

      What is NSQ?

      NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. It promotes distributed and decentralized topologies without single points of failure, enabling fault tolerance and high availability coupled with a reliable message delivery guarantee. See features & guarantees.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Mosca?
      What companies use NSQ?
      Manage your open source components, licenses, and vulnerabilities
      Learn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Mosca?
      What tools integrate with NSQ?
      What are some alternatives to Mosca and NSQ?
      Mosquitto
      It is lightweight and is suitable for use on all devices from low power single board computers to full servers.. The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.
      MySQL
      The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
      PostgreSQL
      PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions.
      MongoDB
      MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
      Redis
      Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.
      See all alternatives