Why MongoDB is all everyone is talking about?

Why MongoDB is all everyone is talking about?

One minute introduction

JavaScript as a language has taken the industry by storm. There's a sudden increase in the demand for JS developers across the world. There are multiple factors contributing to this growth, one of them is JSON (JavaScript Object Notation). JSON has become the de facto standard to share data by web services and has replaced XML and SOAP by a big margin.

 

What is JSON?

JSON is data represented as an Object in JavaScript.

{"name": "TechBack", "website": "http://techback.in"} is a JSON object and can be shared from server to clients. Here, "name" and "website" are the keys, while "TechBack" and "http://techback.in" are values. So JSON is nothing but a set of key-value pairs. Also, sometimes things just click in industry and then everyone starts using it. Today, be it Google, Facebook, Twitter or any big company which shares/expose their data through APIs are doing it via JSON. Facebook Open Graph API is one important example of that.

 

Why is data sharing needed?

Web world was a happy place when only browser used to get data from server, wrap it up in a nice HTML page and show it to user. Things changed, mobile apps started coming into picture and the apps don't render HTML but still they need some way to send and receive data from the server. You guessed it right, JSON was the answer. With its descriptive key value pair, light footprint and native support in JS it gained popularity.

 With JSON you represent data, as you think of it in your mind.

But why JSON?

The idea is to write APIs from the server once and run it on any kind of front end, be it browsers or mobile apps. Now, browsers have inbuilt support for JSON as they have support for JS as a language, giving JSON a huge advantage. It is also very clean to read and understand.

 

Data as an object has its clear advantages...

From Computer Science 101, we are taught to think of our data as an object. OOP is in the veins of every programmer. With JSON you represent data, as you think of it in your mind. There's no XML tags, there's no table and rows and columns and multiple joins to get the data you want in a particular format. Data representation as simple as this, frees programmer's mind to think about other issues rather than conversion from table to objects or XML to objects and then back.

 you can find  Object Relational Mappers in almost all programming languages of the day.

Enter MongoDB...

MongoDB is famous not only because it's a JSON data store, there are many reasons but the primary reason is this.  It solves the bigger problem of storing data as object. This has been tried from decades, you can find an Object Relational Mappers in almost all programming languages of the day. MongoDB is also very fast and saves a lot of money for the companies who are using it as it can share the database on multiple low end servers, saving the money which is generally invested in buying high end devices for a performant database. MongoDB is a NoSQL database which means it does not store data in tables, rows and columns.

Archana Kumari

ServiceNow Expert | Technical Product Owner at PlayStation | Digital Transformations

9y

Crisp!!

To view or add a comment, sign in

More articles by Tanay Pratap

  • first 60 days of being the CEO

    first 60 days of being the CEO

    60 days of CEO It's been 60 days since I took charge of Invact and became CEO. This post is about what has happened…

    30 Comments
  • Getting Started with React and GraphQL

    Getting Started with React and GraphQL

    skip if you don’t like intros Few days back, I was tasked on a project. This app will be written in React.

    8 Comments
  • Optimise your web app to gain 3X speed!

    Optimise your web app to gain 3X speed!

    The easiest way I could have written this blog was to put some code and explain what each line does. I personally feel…

    1 Comment
  • Grow out of tutorial code, write better React Apps with these 23 tips!

    Grow out of tutorial code, write better React Apps with these 23 tips!

    Aren't there times in life where we wish we could just go back in time and tell yourself to do something better. To…

    3 Comments
  • Responsive Web App Design: things I wish someone would have told me earlier!

    Responsive Web App Design: things I wish someone would have told me earlier!

    TL;DR If you're starting CSS today, don't use BootStrap, use flexbox, learn to use media-query and seriously do…

    1 Comment
  • Simple Guide to Make Your Servers Secure

    Simple Guide to Make Your Servers Secure

    In startups, we often ignore security because it consumes extra time and we are always asked to focus on more important…

  • If you’re coming from Angular to React…

    If you’re coming from Angular to React…

    A small story, I live in Bangalore, India and two years back I did a trek to Skandagiri (and I am not an avid trekker…

    3 Comments
  • Why Python? In less than 60 seconds!

    Why Python? In less than 60 seconds!

    If you have to choose one language to learn today, choose Python! Why? Let's see! All the major companies today are…

    1 Comment
  • Is AI going to eat your pie?

    Is AI going to eat your pie?

    Let's do a little crystal ball gazing! shall we? Artificial Intelligence. Call it Data Science, Machine Learning, Deep…

    3 Comments
  • Starting Machine Learning? Do not repeat my mistakes!

    Starting Machine Learning? Do not repeat my mistakes!

    Machine Learning is something with immense potential and a lot of applications in almost any field but needs a lot of…

    1 Comment

Insights from the community

Others also viewed

Explore topics