Need advice about which tool to choose?Ask the StackShare community!
Redis vs ZeroMQ: What are the differences?
Developers describe Redis as "An in-memory database that persists on disk". Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. On the other hand, ZeroMQ is detailed as "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.
Redis and ZeroMQ are primarily classified as "In-Memory Databases" and "Message Queue" tools respectively.
"Performance" is the top reason why over 842 developers like Redis, while over 17 developers mention "Fast" as the leading cause for choosing ZeroMQ.
Redis and ZeroMQ are both open source tools. It seems that Redis with 37.4K GitHub stars and 14.4K forks on GitHub has more adoption than ZeroMQ with 5.34K GitHub stars and 1.57K GitHub forks.
Airbnb, Uber Technologies, and Instagram are some of the popular companies that use Redis, whereas ZeroMQ is used by Binary.com, GrowSumo, and indico. Redis has a broader approval, being mentioned in 3264 company stacks & 1786 developers stacks; compared to ZeroMQ, which is listed in 35 company stacks and 12 developer stacks.
Pros of Redis
- Performance882
- Super fast540
- Ease of use510
- In-memory cache441
- Advanced key-value cache321
- Open source191
- Easy to deploy180
- Stable163
- Free153
- Fast120
- High-Performance40
- High Availability39
- Data Structures34
- Very Scalable31
- Replication23
- Great community21
- Pub/Sub21
- "NoSQL" key-value data store17
- Hashes14
- Sets12
- Sorted Sets10
- Lists9
- BSD licensed8
- NoSQL8
- Integrates super easy with Sidekiq for Rails background7
- Async replication7
- Bitmaps7
- Keys with a limited time-to-live6
- Open Source6
- Strings5
- Lua scripting5
- Hyperloglogs4
- Awesomeness for Free!4
- Transactions3
- Runs server side LUA3
- outstanding performance3
- Networked3
- LRU eviction of keys3
- Written in ANSI C3
- Feature Rich3
- Performance & ease of use2
- Data structure server2
- Simple1
- Channels concept1
- Scalable1
- Temporarily kept on disk1
- Dont save data if no subscribers are found1
- Automatic failover1
- Easy to use1
- Existing Laravel Integration1
- Object [key/value] size each 500 MB1
Pros of ZeroMQ
- Fast24
- 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 Redis
- Cannot query objects directly15
- No secondary indexes for non-numeric data types3
- No WAL1
Cons of ZeroMQ
- No message durability5
- Not a very reliable system - message delivery wise3
- M x N problem with M producers and N consumers1