Need advice about which tool to choose?Ask the StackShare community!
Consul vs Redis: What are the differences?
Consul: A tool for service discovery, monitoring and configuration. Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable; 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.
Consul belongs to "Open Source Service Discovery" category of the tech stack, while Redis can be primarily classified under "In-Memory Databases".
"Great service discovery infrastructure" is the primary reason why developers consider Consul over the competitors, whereas "Performance" was stated as the key factor in picking Redis.
Consul and Redis are both open source tools. Redis with 37.4K GitHub stars and 14.4K forks on GitHub appears to be more popular than Consul with 16.4K GitHub stars and 2.85K GitHub forks.
According to the StackShare community, Redis has a broader approval, being mentioned in 3265 company stacks & 1788 developers stacks; compared to Consul, which is listed in 134 company stacks and 55 developer stacks.
Pros of Consul
- Great service discovery infrastructure60
- Health checking35
- Distributed key-value store29
- Monitoring26
- High-availability23
- Web-UI12
- Token-based acls10
- Gossip clustering6
- Dns server5
- Not Java3
- Docker integration1
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
- Pub/Sub22
- Great community22
- "NoSQL" key-value data store19
- Hashes15
- Sets13
- Sorted Sets11
- Lists10
- BSD licensed9
- NoSQL9
- Integrates super easy with Sidekiq for Rails background8
- Async replication8
- Bitmaps8
- Open Source7
- Keys with a limited time-to-live7
- Lua scripting6
- Strings6
- Awesomeness for Free5
- Hyperloglogs5
- Written in ANSI C4
- LRU eviction of keys4
- Networked4
- Outstanding performance4
- Runs server side LUA4
- Transactions4
- Feature Rich4
- Performance & ease of use3
- Data structure server3
- Object [key/value] size each 500 MB2
- Simple2
- Scalable2
- Temporarily kept on disk2
- Dont save data if no subscribers are found2
- Automatic failover2
- Easy to use2
- Existing Laravel Integration2
- Channels concept2
Sign up to add or upvote prosMake informed product decisions
Cons of Consul
Cons of Redis
- Cannot query objects directly15
- No secondary indexes for non-numeric data types3
- No WAL1