Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the major difference between Redis and Membase?

What are the major differences between Redis and Membase?

like image 413
Cory Avatar asked Feb 21 '11 21:02

Cory


2 Answers

Scalability: Membase offers a distributed key/value store (just like Memcache), so writes and reads will always be performed in predictably constant time regardless of how large your data set is. Redis on the other hand offers just master-slave replication, which speeds up read but does not speed up writes.

Data Redundancy It's simple to setup a cluster with a set amount of replicated copy for each key-value pair, allow for servers to failover a inoperative node in a cluster without losing data. Redis' master-slave replication doesn't offer this same type of data redundancy, however.

Data Type: Redis offers ability to handle lists in an atomic fashion out of the box, but one can implement similar functionality in the application logic layer with Membase.

Adoption: Currently Redis is more widely adopted and a bit more mature than Membase. Membase does have a few high profile use case, such as Zynga and their slew of social games.

Membase has recently merged with Couchbase and they will have a version of Membase that will offer CouchDB's Map/Reduce and query/index ability in the next major release (scheduled around early 2011).

like image 176
Manto Avatar answered Sep 25 '22 01:09

Manto


Membase is a massive key-value store with persistent and replication for failover. The data stored in membase is not subject to "modification" (besides increment). You get or set it.

Redis is more of a key-data store. Redis allows the manipulation of sets, lists, sorted-lists, hashes and some odd other data types. While redis has replication it is more of a master/slave type of replication.

like image 30
Daniel Avatar answered Sep 26 '22 01:09

Daniel