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

MQTT

592
570
+ 1
7
NSQ

140
349
+ 1
148
Add tool

MQTT vs NSQ: What are the differences?

  1. Message Delivery: MQTT follows a publish-subscribe model where messages are pushed to clients, ensuring that all clients receive the messages. On the other hand, NSQ uses a distributed message queue system where messages are pulled by consumers, allowing for more control over message consumption.
  2. Scalability: MQTT is known for its lightweight protocol, making it suitable for low-power devices and IoT applications. In contrast, NSQ is designed for horizontal scalability, allowing it to handle large volumes of messages across multiple nodes efficiently.
  3. Persistence: MQTT has limited support for message persistence, relying on QoS levels to ensure message delivery. NSQ, in contrast, provides built-in support for message persistence, allowing messages to be stored until they are consumed.
  4. Error Handling: MQTT provides more comprehensive error handling mechanisms, such as acknowledgment messages and quality of service levels, to ensure message delivery and reliability. NSQ, while robust, may require manual intervention for error handling and monitoring.
  5. Community Support: MQTT has a larger and more established community, with a wide range of client libraries and tools available for integration and development. NSQ, while growing in popularity, may have a more limited selection of community-contributed resources.
  6. Development Focus: MQTT is primarily focused on lightweight communication for IoT and M2M applications, emphasizing low latency and minimal overhead. NSQ, on the other hand, is designed for high-performance message processing and distributed systems, prioritizing scalability and fault tolerance.

In Summary, MQTT and NSQ differ in message delivery mechanisms, scalability, persistence, error handling, community support, and development focus.

Advice on MQTT and NSQ
Pramod Nikam
Co Founder at Usability Designs · | 2 upvotes · 517.7K 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 · 515.1K 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
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of MQTT
Pros of NSQ
  • 3
    Varying levels of Quality of Service to fit a range of
  • 2
    Lightweight with a relatively small data footprint
  • 2
    Very easy to configure and use with open source tools
  • 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 MQTT
Cons of NSQ
  • 1
    Easy to configure in an unsecure manner
  • 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 MQTT?

It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.

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 MQTT?
What companies use NSQ?
See which teams inside your own company are using MQTT or NSQ.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with MQTT?
What tools integrate with NSQ?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to MQTT and NSQ?
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
REST
An architectural style for developing web services. A distributed system framework that uses Web protocols and technologies.
XMPP
It is a set of open technologies for instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.
Google Cloud Messaging
Google Cloud Messaging (GCM) is a free service that enables developers to send messages between servers and client apps. This includes downstream messages from servers to client apps, and upstream messages from client apps to servers.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
See all alternatives