i

MongoDB vs. Redis

MongoDB and Redis are both are NoSQL databases, but they have their own features. The table below will help us to understand the difference between them.

Features

MongoDB

Redis

Database type

MongoDB uses BSON to store schema-free data

It uses key-value to store data with pairs of a key and an associated value

Deployment

MongoDB was written in C++. It is available on Windows, OS X, Linux, and Solaris.

It was written in C. It is available on Windows, OS X, BSD, and Linux.

Replication

MongoDB has a single-primary (master) replication with built-in auto-election

Redis uses master-slave replication. In Redis Enterprise, we can have a cluster manager and shared-nothing cluster architecture.

Scalability

MongoDB has a flexible database design.

Redis is less flexible than MongoDB

Support

Community support for MongoDB is available at StackOverflow, Community Support Forum, and ServerFault.

Community support is available via the mailing list as well as #redis on Freenode.