Need advice about which tool to choose?Ask the StackShare community!
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.
Pros of Redis
- Performance884
- Super fast541
- Ease of use512
- In-memory cache443
- Advanced key-value cache323
- Open source193
- Easy to deploy182
- Stable164
- Free155
- Fast121
- High-Performance42
- High Availability40
- Data Structures34
- Very Scalable32
- Replication24
- Great community22
- Pub/Sub22
- "NoSQL" key-value data store18
- Hashes15
- Sets13
- Sorted Sets11
- Lists10
- BSD licensed9
- NoSQL9
- Async replication8
- Bitmaps8
- Integrates super easy with Sidekiq for Rails background8
- Open Source7
- Keys with a limited time-to-live7
- Lua scripting6
- Strings6
- Hyperloglogs5
- Awesomeness for Free5
- Feature Rich4
- Networked4
- Outstanding performance4
- Runs server side LUA4
- Transactions4
- Written in ANSI C4
- LRU eviction of keys4
- Performance & ease of use3
- Data structure server3
- Temporarily kept on disk2
- Channels concept2
- Simple2
- Dont save data if no subscribers are found2
- Object [key/value] size each 500 MB2
- Automatic failover2
- Easy to use2
- Existing Laravel Integration2
- Scalable2
Pros of Varnish
- High-performance104
- Very Fast67
- Very Stable57
- Very Robust44
- HTTP reverse proxy37
- Open Source21
- Web application accelerator18
- Easy to config11
- Widely Used5
- Great community4
- Essential software for HTTP2
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