Need advice about which tool to choose?Ask the StackShare community!
MQTT vs ZeroMQ: What are the differences?
What is MQTT? A machine-to-machine Internet of Things connectivity protocol. 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 ZeroMQ? Fast, lightweight messaging library that allows you to design complex communication system without much effort. The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more.
MQTT and ZeroMQ belong to "Message Queue" category of the tech stack.
ZeroMQ is an open source tool with 5.34K GitHub stars and 1.57K GitHub forks. Here's a link to ZeroMQ's open source repository on GitHub.
According to the StackShare community, ZeroMQ has a broader approval, being mentioned in 35 company stacks & 12 developers stacks; compared to MQTT, which is listed in 12 company stacks and 6 developer stacks.
Pros of MQTT
- Varying levels of Quality of Service to fit a range of3
- Lightweight with a relatively small data footprint2
- Very easy to configure and use with open source tools2
Pros of ZeroMQ
- Fast23
- Lightweight20
- Transport agnostic11
- No broker required7
- Low level APIs are in C4
- Low latency4
- Open source1
- Publish-Subscribe1
Sign up to add or upvote prosMake informed product decisions
Cons of MQTT
- Easy to configure in an unsecure manner1
Cons of ZeroMQ
- No message durability5
- Not a very reliable system - message delivery wise3
- M x N problem with M producers and N consumers1