Industry Use cases of MongoDB

What is MongoDB?

MongoDB is a document database that combines scalability and flexibility with the querying and indexing capabilities that you want. This means that it is not like MySQL databases in which there is a pre-created plan or schema in which if we want to add more columns or data while collecting data(in real-world scenarios) we can't as its schema is already built whereas in MongoDB type of databases which come under NoSQL category, there is no pre-created schema based on which data is collected.

Why Use MongoDB?

  • Certain fields within documents can be returned via queries.
  • For searching the data from the stored data, MongoDB enables field, range-based query, regular expression, and so on.
  • MongoDB is a simple database management system that can be scaled up or down with ease.
  • MongoDB enables you to store working temporary datasets in internal memory, which is much faster.
  • On any field, MongoDB provides primary and secondary indexes.
  • MongoDB allows you to replicate your database.
  • MongoDB can be used as a GridFS, which is a file storage system.
  • MongoDB provides aggregation pipelines, map-reduce, and single-objective aggregation commands to conduct aggregation operations on data.
  • Without affecting our stack, MongoDB allows you to store any form of file of any size.
  • MongoDB essentially replaces the method with JavaScript objects.
  • MongoDB has a collection type called TTL (Time-To-Live) that allows you to store data that will expire after a specific amount of time.
  • JSON Indexes can be established to increase the efficiency of searches in MongoDB’s dynamic database schema. An index can be created for any field in a MongoDB document.
  • MongoDB can provide high availability with replica sets.
  • MongoDB can be distributed across numerous servers, balancing load and/or replicating data to keep the system running in the event of hardware failure.

Some common companies using MongoDB

Google

“MongoDB Powers Modern Application Development with Google Cloud Platform”

EA Sports

“EA Scores With MongoDB-based FIFA Online 3

CISCO

Cisco is a global networking company that is changing the way people connect, communicate, and cooperate. Cisco released WebEx Social (formerly known as Quad) in November 2011 as an enterprise collaboration tool for today’s social, mobile, visual, and virtual workforce. WebEx Social, dubbed “Facebook for businesses,” links people to the knowledge and expertise they need, when they need it. Users communicate information and ideas across the organization, as well as beyond geographic and organizational barriers. Cisco chose MongoDB as their NoSQL database of choice when their existing relational database required a NoSQL addition to support the collaborative workspace.

The Problem

According to Biren Gandhi, chief architect for Cisco’s Cloud Collaboration Applications Technology Group, WebEx Social is a real Enterprise 2.0 platform, “a place where individuals ‘live’ at work” (CCATG). The comprehensive collaboration platform incorporates the four Enterprise 2.0 pillars — business processes, content, communication, and social elements — to allow users to collaborate seamlessly. Complex SQL queries on a highly normalized schema were time-intensive with Cisco’s old relational database, and there was no room to extend horizontally. It was also challenging to manage schema updates and data migration from one release to the next.

Solution

Cisco selected MongoDB in mid-2011 after a thorough examination and effective proof of concept. WebEx Social’s social features that are write-heavy now use MongoDB as their primary real-time data store. Consider a social activity feed that sends notifications to thousands of individuals based on complicated privacy and visibility constraints. In addition, Cisco uses MongoDB for social network analytics. Cisco developers can easily generate recommendations such as users to connect with, communities to join, and interesting information to peruse, as well as statistics such as top contributors, most popular colleagues, and most downloaded docs, using MongoDB’s lightweight MapReduce functionality.

EASY TO IMPLEMENT DOCUMENT MODEL

MongoDB’s document-based data model strikes the ideal balance between complicated relational databases and most NoSQL alternatives’ pure key-value store.

MILLISECOND RESPONSE TIME

Cisco reduced read times from 30 seconds to tens of milliseconds per object using MongoDB and eliminated the requirement for caching in some circumstances. Cisco intends to transition additional write-intensive functionality to MongoDB as the WebEx Social platform matures.

HIGHLY SCALABLE

The high-volume write activity of WebEx Social is met by MongoDB. MongoDB provides a quick and simple approach to de-normalize, index, and extract data from data storage, and its unique compound and geospatial indexing are significant advantages.

HIGH AVAILABILITY

Cisco employs built-in sharding and replica sets, which are simple to use and provide high availability by automating node failover and recovery.
Many Cisco developers participate in volunteer projects where they can cooperate and share findings on their ideas as part of the company’s different innovation initiatives. Many people have adopted MongoDB as part of their project development, demonstrating the database’s usefulness, adaptability, and innovation.

Results

Cisco’s product development team is always reviewing the most effective product roadmap for driving WebEx Social client success. MongoDB offers Cisco clients a user-friendly platform as well as a simple, powerful technology for developers. Cisco is focusing on releasing new capabilities rapidly and providing users with flexibility, and “MongoDB is a significant aspect of that,” Gandhi said.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store