Home ยป Redis vs MongoDB

Redis Vs MongoDB

Comparison IndexRedisMongoDB
IntroductionRedis is in-memory data structure store, used as database, cache and message broker.MongoDB is one of the most popular NoSQL database which follows the document storesstructure.
Primary database modelRedis follows key-value store model.MongoDB follows document store model.
Official Websiteredis.iowww.mongodb.com
Technical DocumentationYou can get technical documentation of Redis on redis.io/documentationYou can get technical documentation of MongoDB on docs.mongodb.com/manual
Developed ByRedis is developed by Salvatore Sanfilippo.MongoDB is developed by MongoDB Inc.
Initial ReleaseRedis is initially released in 2009.MongoDB is also initially released in 2009.
LicenceRedis is subscription based and open-source.MongoDB is free to use and open-source.
Cloud basedNoNo
Implementation LanguageRedis is written and implemented in C language.MongoDB is written and implemented in C++ language.
Server operating systemsBSD, Linux, OS X, WindowsLinux, OS X, Solaris, Windows
Data Schemeschema-freeschema-free
Secondary IndexesNoYes
APIs and other access methodsRedis follows proprietary protocol.MongoDB follows proprietary protocol using JSON.
Supported programming languagesC, C#, C++, Clojure, Crystal, D, Dart, Elixir, Erlang,Fancy, Go, Haskell, Haxe, Java, JavaScript (Node.js), Lisp, Lua, MatLab, Objective-C, OCaml, Perl, PHP, Prolog, Pure Data, Python, R, Rebol, Ruby, Rust, Scala, Scheme, Smalltalk, TclActionscript, C, C#, C++, Clojure, ColdFusion, D, Dart, Delphi, Erlang, Go, Groovy, Haskell, Java, JavaScript, Lisp, Lua, MatLab Perl, PHP, PowerShell, Prolog, Python, R, Ruby, Scala, Smalltalk
Server-side scriptsLuaJavaScript
Partitioning methodsRedis uses Sharding for partition.MongoDB also uses Sharding for partition.
Replication methodsRedis follows master-slave replication.MongoDB also follows master-slave replication.
Consistency conceptsEventual Consistency and Immediate ConsistencyEventual Consistency
Foreign keysNoNo
Transaction conceptsOptimistic locking, atomic execution of commands blocks and scripts.No
In-memory capabilitiesYesYes
User conceptsSimple password-based access control.Access rights for users and roles.
Special CharacteristicsRedis is ranked as world?s fastest database. It reduces application complexity, simplifies development, accelerates time to market and provides unprecedented flexibility to developers with its visionary data structures and modules.MongoDB is considered as the next-generation database. It successfully helped many businesses to transform their industries by providing big data. The world?s most sophisticated organizations, from cutting-edge startups to the largest companies, use MongoDB to create applications never before possible, at a very low cost.
Comparing AdvantagesRedis is an in-memory database platform provides support of wide range of data structures such as strings, hashes, sets, lists, sorted sets, bitmaps, hyperloglogs, and geospatial indexes. Redis provides effortless scaling in a fully automated manner by overseeing all the operations of sharding, re-sharding, migration. It also includes persistence, instant automatic failure detection, backup and recovery, and in-memory replication across racks, zones, datacenters, regions, and cloud platforms.MongoDB provides the best of traditional databases as well as flexibility, scale, and performance required by today?s applications. MongoDB is a database of giant ideas. MongoDB keeps the most valuable features of Relational database i.e. strong consistency, expressive query language and secondary indexes. It facilitates developers to build highly functional applications faster than NoSQL databases.
Key CustomersKey customers of Redis are: Verizon, Vodafone, Atlassian, Trip Advisor, Jet.com, Nokia, Samsung, HTC, Docker, Staples, Intuit, Groupon, Shutterfly, KPMG, TD Bank, UnitedHealthcare, RingCentral, The Motley Fool, Bleacher Report, HipChat, Salesforce, Hotel Tonight, Cirruspath, Itslearning.com, Xignite, Chargify, Rumble Entertainment, Scopely, Havas Digital, Revmob, MSN, Bleacher Report, Mobli, TMZ, Klarna, Shopify etc.Key customers of MongoDB are: ADP, Adobe, AstraZeneca, BBVA, Bosch, Cisco, CERN, Department of Veteran Affairs, eBay, eHarmony, Electronic Arts, Expedia, Facebook?s Parse, Forbes, Foursquare, Genentech, MetLife, Pearson, Sage, Salesforce, The Weather Channel, Ticketmaster, Under Armour, Verizon Wireless etc.
Market MetricsRedis Labs consists of more than 60000 customers globally and is consistently ranked as a leader in top analyst reports on NoSQL, in-memory and operational databases. Redis is rated as no. 1 cloud database, no.1 database in Docker, no.1 NoSQL datastore, most popular NoSQL database in container.20 million downloads (growing at thousands downloads per day). More than 2,000 customers including over one third of the Fortune 100. Named a leader in the Forrester Wave?: Big Data NoSQL, Q3 2016. Highest placed non-relational database in DB Engines rankings

You may also like