MongoDB: Overview and Case-Study

Shubham Jangid
4 min readSep 26, 2021

--

MongoDB is an open-source document database and leading NoSQL database. MongoDB is a document database that provides high performance, high availability, and automatic scaling. It is written in C++.

MongoDB is available under General Public license for free, and it is also available under Commercial license from the manufacturer. MongoDB was designed to work with commodity servers. Now it is used by the company of all sizes, across all industry.

MongoDB supports all major programming languages (Ruby, PHP, Java, etc.), and has numerous community-supported drivers for lesser-known programming languages as well.

MongoDB has a thriving global community with approximately 5 million downloads, 100,000 online education registrations, 20,000 user group members and 20,000 MongoDB Days attendees.

Timeline:

  • MongoDB was created by Eliot and Dwight (founders of DoubleClick) in 2007, when they faced scalability issues while working with relational database.
  • The organization that developed MongoDB was originally known as 10gen.
  • In Feb 2009, they changed their business model and released MongoDB as an open source Project.
  • The organization changed its name in 2013 and now known as MongoDB Inc.

Features:

  • Document Oriented: MongoDB stores the main subject in the minimal number of documents and not by breaking it up into multiple relational structures like RDBMS.
  • Indexing: Indexes are used to quickly locate data without having to search every document in a MongoDB database. This improves the performance of operations performed on the MongoDB database.
  • Ad-hoc queries: It supports ad-hoc queries, i.e., in MongoDB, you can search by field, range query, etc. and it also supports regular expression searches.
  • GridFS: For storing and retrieving large files, which can be images, audio, video, etc., GridFS is used in it. GridFS is a file system that only stores the files, and their data is stored within MongoDB collections.
  • Scalability: MongoDB scales horizontally using sharding (partitioning data across various servers). Data is partitioned into data chunks using the shard key, and these data chunks are evenly distributed across shards that resides across many physical servers. Also, new machines can be added to a running database.
  • Aggregation: Aggregation operations process data records and return the computed results. It is similar to the GROUPBY clause in SQL. A few aggregation expressions are sum, avg, min, max, etc
  • High Performance: MongoDB provides high performance. Most of the operations in the MongoDB are faster compared to relational databases.
  • Auto Replication: MongoDB provides auto replication feature that allows you to quickly recover data in case of a failure.
  • High Availability: Auto Replication improves the availability of MongoDB database.
  • Load balancing: Horizontal scaling allows MongoDB to balance the load.

Benefits of using MongoDB

  • MongoDB can also be used as a file system, which helps in easier way of load balancing.
  • MongoDB supports, the search by regex and fields as well.
  • Good amount of documentation is available.
  • MongoDB follows regular release cycle of its newer versions.
  • Code-native data access.
  • Change-friendly design.
  • Powerful querying and analytics.
  • Easy horizontal scale-out.

Case Study: Trend Micro Aims for 24/7 Uptime With MongoDB

Trend Micro Inc. is an American-Japanese multinational cyber security software company.

Trend Micro, a pioneer in security software and solutions, is using MongoDB as a data store for its high performance Internet content security and threat management solutions.

MongoDB stores metadata such as customer information and real-time log statistics, for several of Trend Micro’s security solutions, accelerating querying and reporting, while also helping to improve customer experience with web content scanning and filtering. In addition, MongoDB allows Trend Micro to manage a large number of requests and easily scale its data access layer, a SaaS-based common data access interface with zero downtime requirements.

“As the cyber security industry demands continuously available systems designed to ensure customers are protected from the latest threats. With high performance, reliability and scalability, MongoDB helps Trend Micro protect the data of its customers while allowing the company to innovate rapidly.” — Max Schireson, CEO at MongoDB.

“Millions of systems all over the world rely on our security and threat management solutions around the clock. MongoDB will serve a strategic role with these systems and so far, we’ve found the document database to be reliable. MongoDB helps us in store comprehensive data for threat analysis and deliver real-time insights to customers” — JD Sherry, vice president, technology and solutions at Trend Micro

Thanks For Reading

--

--

No responses yet