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


+ 1

+ 1
Add tool

Redis vs ZeroMQ: What are the differences?


Redis and ZeroMQ are two popular technologies used in distributed systems and messaging architectures. While both aim to facilitate communication between different components, they differ in several important aspects. In this comparison, we will discuss the key differences between Redis and ZeroMQ.

  1. Message Queuing vs. In-Memory Data Store: The fundamental difference between Redis and ZeroMQ lies in the purpose they serve. Redis is an in-memory data store that provides key-value storage and advanced data structures. It allows fast read and write operations and can persist data on disk. On the other hand, ZeroMQ is a message queuing system that focuses on reliable and efficient message passing between different processes or nodes.

  2. Data Persistence: Redis provides the ability to persist data on disk, making it suitable for use cases where data durability is crucial. It supports various persistence options, including snapshots, append-only files, and a combination of both. ZeroMQ, on the other hand, does not provide built-in data persistence. It mainly focuses on message delivery rather than data storage.

  3. Publish-Subscribe Pattern: Redis supports the publish-subscribe messaging pattern, allowing clients to subscribe to specific channels and receive messages published by other clients. It provides a powerful mechanism for building real-time applications. While ZeroMQ can also be used for pub-sub messaging, it does not have the advanced features and flexibility offered by Redis in this regard.

  4. Concurrency and Scalability: Redis is designed to handle high-concurrency scenarios with ease. It provides thread-safe operations and supports different concurrency models, such as single-threaded, multi-threaded, and cluster modes. ZeroMQ, on the other hand, focuses on lightweight messaging and is designed to be highly scalable. It relies on a socket-based communication model and allows the use of multiple threads or processes to scale up the messaging infrastructure.

  5. Language Bindings and Ecosystem: Redis has a rich ecosystem and supports various programming languages through official and community-driven client libraries. It also offers additional features like Lua scripting, transactions, and secondary indexes. ZeroMQ provides language bindings for many popular programming languages and offers a lightweight messaging framework without unnecessary features.

  6. Transport Protocols: ZeroMQ supports various transport protocols, such as TCP, UDP, IPC, and in-process. It allows developers to choose the most suitable protocol based on their specific requirements. Redis, on the other hand, primarily relies on the TCP/IP protocol for communication between clients and servers.

In summary, Redis is an in-memory data store with advanced data structures and supports persistence, while ZeroMQ is a lightweight messaging system focused on efficient message queuing. Redis provides powerful features for pub-sub messaging, high-concurrency scenarios, and a rich ecosystem with language bindings. ZeroMQ, on the other hand, offers flexibility in choosing transport protocols and is designed for lightweight messaging without the need for data storage.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Redis
Pros of ZeroMQ
  • 886
  • 542
    Super fast
  • 513
    Ease of use
  • 444
    In-memory cache
  • 324
    Advanced key-value cache
  • 194
    Open source
  • 182
    Easy to deploy
  • 164
  • 155
  • 121
  • 42
  • 40
    High Availability
  • 35
    Data Structures
  • 32
    Very Scalable
  • 24
  • 22
    Great community
  • 22
  • 19
    "NoSQL" key-value data store
  • 16
  • 13
  • 11
    Sorted Sets
  • 10
  • 10
  • 9
    Async replication
  • 9
    BSD licensed
  • 8
  • 8
    Integrates super easy with Sidekiq for Rails background
  • 7
    Keys with a limited time-to-live
  • 7
    Open Source
  • 6
    Lua scripting
  • 6
  • 5
    Awesomeness for Free
  • 5
  • 4
  • 4
    Outstanding performance
  • 4
    Runs server side LUA
  • 4
    LRU eviction of keys
  • 4
    Feature Rich
  • 4
    Written in ANSI C
  • 4
  • 3
    Data structure server
  • 3
    Performance & ease of use
  • 2
    Dont save data if no subscribers are found
  • 2
    Automatic failover
  • 2
    Easy to use
  • 2
    Temporarily kept on disk
  • 2
  • 2
    Existing Laravel Integration
  • 2
    Channels concept
  • 2
    Object [key/value] size each 500 MB
  • 2
  • 23
  • 20
  • 11
    Transport agnostic
  • 7
    No broker required
  • 4
    Low level APIs are in C
  • 4
    Low latency
  • 1
    Open source
  • 1

Sign up to add or upvote prosMake informed product decisions

Cons of Redis
Cons of ZeroMQ
  • 15
    Cannot query objects directly
  • 3
    No secondary indexes for non-numeric data types
  • 1
    No WAL
  • 5
    No message durability
  • 3
    Not a very reliable system - message delivery wise
  • 1
    M x N problem with M producers and N consumers

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is 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.

What is ZeroMQ?

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.

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

Jobs that mention Redis and ZeroMQ as a desired skillset
Oakland, California, United States
What companies use Redis?
What companies use ZeroMQ?
See which teams inside your own company are using Redis or ZeroMQ.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Redis?
What tools integrate with ZeroMQ?

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

Blog Posts

Nov 20 2019 at 3:38AM


Jun 6 2019 at 5:11PM


What are some alternatives to Redis and ZeroMQ?
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
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.
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
With its various distributed data structures, distributed caching capabilities, elastic nature, memcache support, integration with Spring and Hibernate and more importantly with so many happy users, Hazelcast is feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.
Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.
See all alternatives