Redis vs Varnish

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

Redis

55.2K
42K
+ 1
3.9K
Varnish

12.2K
2.4K
+ 1
370
Add tool

Redis vs Varnish: What are the differences?

Redis: 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; Varnish: High-performance HTTP accelerator. Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.

Redis can be classified as a tool in the "In-Memory Databases" category, while Varnish is grouped under "Web Cache".

"Performance", "Super fast" and "Ease of use " are the key factors why developers consider Redis; whereas "High-performance", "Very Fast" and "Very Stable" are the primary reasons why Varnish is favored.

Redis and Varnish are both open source tools. It seems that Redis with 37.4K GitHub stars and 14.4K forks on GitHub has more adoption than Varnish with 908 GitHub stars and 216 GitHub forks.

According to the StackShare community, Redis has a broader approval, being mentioned in 3265 company stacks & 1789 developers stacks; compared to Varnish, which is listed in 1006 company stacks and 140 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Redis
Pros of Varnish
  • 884
    Performance
  • 541
    Super fast
  • 512
    Ease of use
  • 443
    In-memory cache
  • 323
    Advanced key-value cache
  • 193
    Open source
  • 182
    Easy to deploy
  • 164
    Stable
  • 155
    Free
  • 121
    Fast
  • 42
    High-Performance
  • 40
    High Availability
  • 34
    Data Structures
  • 32
    Very Scalable
  • 24
    Replication
  • 22
    Great community
  • 22
    Pub/Sub
  • 18
    "NoSQL" key-value data store
  • 15
    Hashes
  • 13
    Sets
  • 11
    Sorted Sets
  • 10
    Lists
  • 9
    BSD licensed
  • 9
    NoSQL
  • 8
    Async replication
  • 8
    Bitmaps
  • 8
    Integrates super easy with Sidekiq for Rails background
  • 7
    Open Source
  • 7
    Keys with a limited time-to-live
  • 6
    Lua scripting
  • 6
    Strings
  • 5
    Hyperloglogs
  • 5
    Awesomeness for Free
  • 4
    Feature Rich
  • 4
    Networked
  • 4
    Outstanding performance
  • 4
    Runs server side LUA
  • 4
    Transactions
  • 4
    Written in ANSI C
  • 4
    LRU eviction of keys
  • 3
    Performance & ease of use
  • 3
    Data structure server
  • 2
    Temporarily kept on disk
  • 2
    Channels concept
  • 2
    Simple
  • 2
    Dont save data if no subscribers are found
  • 2
    Object [key/value] size each 500 MB
  • 2
    Automatic failover
  • 2
    Easy to use
  • 2
    Existing Laravel Integration
  • 2
    Scalable
  • 104
    High-performance
  • 67
    Very Fast
  • 57
    Very Stable
  • 44
    Very Robust
  • 37
    HTTP reverse proxy
  • 21
    Open Source
  • 18
    Web application accelerator
  • 11
    Easy to config
  • 5
    Widely Used
  • 4
    Great community
  • 2
    Essential software for HTTP

Sign up to add or upvote prosMake informed product decisions

Cons of Redis
Cons of Varnish
  • 15
    Cannot query objects directly
  • 3
    No secondary indexes for non-numeric data types
  • 1
    No WAL
    Be the first to leave a con

    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 Varnish?

    Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.

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

    What companies use Redis?
    What companies use Varnish?
    See which teams inside your own company are using Redis or Varnish.
    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 Varnish?

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

    Blog Posts

    May 6 2020 at 6:34AM

    Pinterest

    JavaScriptC++Varnish+6
    4
    3163
    Nov 20 2019 at 3:38AM

    OneSignal

    PostgreSQLRedisRuby+8
    9
    4471
    Jun 6 2019 at 5:11PM

    AppSignal

    RedisRubyKafka+9
    15
    1563
    What are some alternatives to Redis and Varnish?
    Memcached
    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
    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
    RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
    Hazelcast
    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.
    Cassandra
    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