Top Banner
30
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 6 Things You Should Know Before Using MongoDB
Page 2: 6 Things You Should Know Before Using MongoDB

MongoDB is a very impressive document store database that can be used in most types of app development projects. It’s built using C++ language and is available for free as an open source edition.

About MongoDB

Page 3: 6 Things You Should Know Before Using MongoDB

So much so that it is now a part of dedicated technology stack- MEAN stack where M goes for MongoDB.

MongoDB has become the most popular NoSQL database

Page 4: 6 Things You Should Know Before Using MongoDB

We here at Algoworks have used MongoDB for multiple mobile app development projects

Page 5: 6 Things You Should Know Before Using MongoDB

and in this slide I will tell you exactly why MongoDB is popular than other databases.

Page 6: 6 Things You Should Know Before Using MongoDB

Why use MongoDB?

Page 7: 6 Things You Should Know Before Using MongoDB

The main and the biggest benefit of MongoDB is that it is a no-fixed-schema database architecture.

Why use MongoDB?

Page 8: 6 Things You Should Know Before Using MongoDB

The next reason for choosing MongoDB is because of its document store nature which is very useful in multiple use cases.

Why use MongoDB?

Page 9: 6 Things You Should Know Before Using MongoDB

But that’s not all

Here are a few more reasons why you should choose MongoDB:

Why use MongoDB?

Page 10: 6 Things You Should Know Before Using MongoDB

Performance in Ad Hoc Queries

Why use MongoDB?

1

Page 11: 6 Things You Should Know Before Using MongoDB

The biggest advantage of MongoDB over other databases is its performance under pressure especially when handling ad hoc queries on data that are usually updated in real time.

Performance in Ad Hoc Queries

Page 12: 6 Things You Should Know Before Using MongoDB

For this experiment we used a Linode server with following configurations

★ 4 core 2.80GHz each★ 4096 MB RAM

Experiment On MongoDBIn an experiment that we carried out on MongoDB performance for one of our projects we found that MongoDB can handle up to ~3 queries per millisecond easily.

Performance in Ad Hoc Queries

Page 13: 6 Things You Should Know Before Using MongoDB

Consistency

Why use MongoDB?

2

Page 14: 6 Things You Should Know Before Using MongoDB

MongoDB is most suited for applications which require consistent data presentation for users.

Consistency

Page 15: 6 Things You Should Know Before Using MongoDB

If your main aim is availability of database for just data entry during data visualization, consistency is not an issue (like for example in a social network), then you can go with CouchDB or some other counterpart.

Consistency

Page 16: 6 Things You Should Know Before Using MongoDB

Location Based Query Feature

Why use MongoDB?

3

Page 17: 6 Things You Should Know Before Using MongoDB

Location Based Query Feature

MongoDB is the only free document storage NoSQL database with inbuilt geo-spatial features.

Page 18: 6 Things You Should Know Before Using MongoDB

MongoDB is the best choice if you are going to build an app that has location based features like location finding, location based event tracking etc.

Location Based Query Feature

Page 19: 6 Things You Should Know Before Using MongoDB

Scalability

Why use MongoDB?

4

Page 20: 6 Things You Should Know Before Using MongoDB

Scalability

The database scalability is handled via innovative Sharding which is pretty unique in its own.

Page 21: 6 Things You Should Know Before Using MongoDB

We especially liked MongoDB’s performance in replicating the data and creating replica set to increase availability and consistency.

Scalability

Page 22: 6 Things You Should Know Before Using MongoDB

Load balancing on Multiple Servers

Why use MongoDB?

5

Page 23: 6 Things You Should Know Before Using MongoDB

Load balancing on Multiple Servers

Most document storage databases are equipped with features to allow scalability over multiple servers. MongoDB is no exception.

Page 24: 6 Things You Should Know Before Using MongoDB

JSON based document storage schema

Why use MongoDB?

6

Page 25: 6 Things You Should Know Before Using MongoDB

JSON based document storage schema

MongoDB uses JSON (JavaScript Object Notation) based document storage schema called BSON.

Page 26: 6 Things You Should Know Before Using MongoDB

The main benefit of this format comes in use-cases where you would have to integrate your app with other platforms. For example YouTube API outputs its data in JSON format so MongoDB is great in handling those request.

JSON based document storage schema

Page 27: 6 Things You Should Know Before Using MongoDB

Conclusion

Page 28: 6 Things You Should Know Before Using MongoDB

MongoDB is magnificent

The database is best suited for creating★ CMS platforms,★ blogging platforms, ★ data analytics platforms,★ e-commerce portals,★ document storage portals, ★ Metadata storage, ★ and location based

applications.

Page 29: 6 Things You Should Know Before Using MongoDB

[email protected] Toll Free : +1-877-284-1028

AuthorCo-Founder & Director

Leading the mobility business development function, mobility strategy and consulting practice at Algoworks. Expert of all mobile technologies with experience in managing

teams involved in the development of custom iPhone/iPad/Android apps.

Rachit Agarwal

Write to me at [email protected]

Page 30: 6 Things You Should Know Before Using MongoDB

Mail us at: [email protected] [email protected]

Official Blog Link - http://www.algoworks.com/blog/6-things-you-should-know-before-using-mongodb