Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum capacity of MongoDB? Is it a fully scalable DB?

I wish to use MongoDB in one of my projects created with asp.net and c#. What is the maximum capacity of MongoDB? Is it a fully scalable DB? Also wish to know about achieving replication using sharding.

like image 764
Prasanth Avatar asked Sep 15 '11 10:09

Prasanth


People also ask

What is the maximum size of MongoDB database?

The maximum size an individual document can be in MongoDB is 16MB with a nested depth of 100 levels. Edit: There is no max size for an individual MongoDB database.

Is MongoDB highly scalable?

Is MongoDB scalable? Yes. MongoDB allows you to scale your clusters vertically by adding more resources to the cluster, or horizontally by partitioning the data via sharding.

Why MongoDB is more scalable?

Why is MongoDB scalable? As a NoSQL database, MongoDB is scalable as its data is not coupled relationally. Data is stored as JSON-like documents which are self-contained. This allows those documents to be easily distributed across multiple nodes through horizontal scaling.

Which process in MongoDB provides high scalability?

MongoDB supports horizontal scaling through Sharding , distributing data across several machines and facilitating high throughput operations with large sets of data.


2 Answers

Yes MongoDB is fully scalable.

They have a laundry list of deployments over at MongoDB Production Deployments. MongoDB is trusted with some of the biggest of the "big data" web 2.0 sites such as foursquare, etc, etc. To give an example:

Wordnik stores its entire text corpus in MongoDB - 1.2TB of data in over 5 billion records.

However, when you get to sharding you will want to ensure you don't run your nodes at close to capacity (see: MongoDB CTO on Foursquare’s Scaling Issues)

like image 149
Aaron Avatar answered Oct 02 '22 15:10

Aaron


Yes, MongoDB is designed from the ground up to be a scalable database. You can split your data across several hardware nodes, known as sharding, which is great for scaling both reads and writes.

You can also keep synchronised copies of your data across different nodes, known as replica sets, which is good for scaling reads and providing failover.

Scalable production deployments use a combination of both. A great resource for learning more about MongoDB scaling is this book, Scaling MongoDB by Kristina Chodorow

like image 23
Chris Fulstow Avatar answered Oct 02 '22 15:10

Chris Fulstow