Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Difference between Neo4j and Redis
Next article icon

Difference between Redis and MongoDB

Last Updated : 30 Jun, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report

1. Redis :
Redis stands for Remote Dictionary Server which is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis was developed by Redis labs and initially released on May 10, 2009. It is written in ANSI and C languages. Redis offers memory efficiency, fast operating speed, high availability and provides some features like tunability, replication, clustering, etc.

2. MongoDB :
MongoDB is a cross-platform document-oriented and a non relational (i.e. NoSQL) database program. It is an open-source document database, that stores the data in the form of key-value pairs. MongoDB is developed by MongoDB Inc. and initially released on 11 February 2009. It is written in C++, Go, JavaScript, Python languages. MongoDB offers high speed, high availability, and high scalability.

Difference between Redis and MongoDB :

S.NO. Redis MongoDB
1. It was developed by Redis labs and initially released on May 10, 2009. It was developed by MongoDB Inc. and initially released on 11 February, 2009.
2. Redis is written in ANSI and C languages. MongoDB is written in C++, Go, JavaScript and Python languages.
3. The primary database model for Redis is Key-Value Store. The primary database model for MongoDB is Document Store.
4. Redis supported data types are strings, hashes, lists, sets and sorted sets, bit arrays, hyperloglogs and geospatial indexes. Hence, have partial predefined data types. MongoDB supported data types are string, integer, double, decimal, boolean, date, object_id, geospatial. Hence, have predefined data types.
5. Redis supports secondary indexes with RediSearch module only. MongoDB supports secondary indexes without any restrictions.
6. The Server-side scripting in Redis is through Lua. The Server-side scripting in MongoDB is through JavaScript.
7. Redis supports both Master-Slave Replication and Master-Master Replication. MongoDB supports only Master-Slave Replication.
8. Redis does not support Map Reduce method. MongoDB supports Map Reduce method.
9. Server operating systems for Redis are BDS, Linux, OS X and Windows. Server operating systems for MongoDB are Solaris, Linux, OS X and Windows.
10. Some companies like Twinkl Educational Publishing, Merrill Corporation, ASOS.com Limited, Owler, Inc., etc use Redis. Some companies like Adobe, Amadeus, Lyft, ViaVarejo, Craftbase, etc use MongoDB.



Next Article
Difference between Neo4j and Redis

V

VishwashVishwakarma
Improve
Article Tags :
  • DBMS
  • Difference Between
  • Redis

Similar Reads

  • Difference between RDBMS and MongoDB
    Both RDBMS and MongoDB are widely used database management systems, but they differ significantly in how they store, manage, and retrieve data. RDBMS (Relational Database Management System) is a traditional approach to database management, while MongoDB is a NoSQL (Non-relational) database known for
    5 min read
  • Difference between Oracle and MongoDB
    1. Oracle : Oracle is a relational database management system (RDBMS). It was developed by Oracle Corporation in 1980. It is the first database designed for grid computing that provides the most flexible and cost-effective way to manage information and application. It runs on major platforms like Wi
    2 min read
  • Difference between Redis and MariaDB
    1. Redis : Redis stands for Remote Dictionary Server which is an in-memory data structure project implementing a distributed, in-memory key–value database with optional durability. Redis is developed by Redis labs and initially released on May 10, 2009. It is written in ANSI and C languages. Redis o
    2 min read
  • Difference between Neo4j and Redis
    1. Neo4j : Neo4j is the most famous graph database management system and it is also a NoSQL database system which is developed by Neo4j, Inc. It is different from Mysql or MongoDB as it has its features that makes it special compared to other Database Management System. Neo4j also stores and present
    2 min read
  • Difference between Neo4j and MongoDB
    1. Neo4j : It is most famous graph database management system and it is also NoSQL database system which is developed by Neo4j, Inc. It is different from Mysql or MongoDB as it has its features that makes it special compared to other Database Management System. Neo4j also stores and present data in
    3 min read
  • Difference between MongoDB and Teradata
    1. MongoDB : MongoDB is an open-source document-oriented database used for high volume data storage. It falls under classification of NoSQL database. NoSQL tool means that it doesn’t utilize usual rows and columns. MongoDB uses BSON (document storage format), which is a binary style of JSON document
    2 min read
  • Difference between PostgreSQL and MongoDB
    MongoDB and PostgreSQL are both top-rated database systems but they serve different purposes. MongoDB is good at handling unstructured data while PostgreSQL is better suited for structured data with complex relationships. In this article, We will learn about MongoDB vs. PostgreSQL by understanding v
    5 min read
  • Difference between Redis and MySQL
    1. Redis : Redis stands for Remote Dictionary Server which is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis was developed by Redis labs and initially released on May 10, 2009. It is written in ANSI and C languages. Redis
    2 min read
  • Difference between PouchDB and MongoDB
    1. PouchDB : PouchDB is an open-source, NoSQL, in-line database. It is designed after CouchDB, which is a NoSQL database that powers npm. It is written in JavaScript language. There is no need to perform queries over the network as PouchDB resides inside the browser and thus it makes it extremely fa
    2 min read
  • Difference between MongoDB and Amazon Redshift
    1. MongoDB : MongoDB is an open-source document-oriented database used for high volume data storage. It falls under classification of NoSQL database. NoSQL tool means that it doesn’t utilize usual rows and columns. MongoDB uses BSON (document storage format) which is binary style of JSON documents.
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences