3 ms·
MongoDB has a lot of advantages over Redis 1. Retains some friendly properties of SQL. (Query, index) so its easier to work with. Queries are javascript expres
by nukul 12y ago
MongoDB has a lot of advantages over Redis
1. Retains some friendly properties of SQL. (Query, index) so its easier to work with. Queries are javascript expressions so it fits in great with our Stack.
2. Master/slave replication (auto failover with replica sets), Sharding built-in, Easier horizontal scaling than Redis.
3. In-place updates, means you only need update one part of the document.
4. geospatial indexing, if you use geospatial data this can be very powerful
5. Data center awareness
You can do everything with Redis as well but we found that Mongo was easier to work with.