6 things you should know before using mongodb

30

Upload: jason-kennedy

Post on 06-Aug-2015

2.433 views

Category:

Software


0 download

TRANSCRIPT

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

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

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

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

Why use MongoDB?

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

Why use 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?

But that’s not all

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

Why use MongoDB?

Performance in Ad Hoc Queries

Why use MongoDB?

1

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

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

Consistency

Why use MongoDB?

2

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

Consistency

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

Location Based Query Feature

Why use MongoDB?

3

Location Based Query Feature

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

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

Scalability

Why use MongoDB?

4

Scalability

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

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

Scalability

Load balancing on Multiple Servers

Why use MongoDB?

5

Load balancing on Multiple Servers

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

JSON based document storage schema

Why use MongoDB?

6

JSON based document storage schema

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

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

Conclusion

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.

[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]

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

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