MongoDB

  • an open-source NoSQL database written in C++ language.

  • uses JSON like documents with optional schemas.

  • inbuilt support for data partitioning (Sharding)

Features

  • Indexing

  • Aggregation

  • Special Collection and index types

  • File Storage

  • Sharding

Scaling

  • The documented oriented data model of MongoDB makes it easier to split data across multiple servers.

  • Balancing and loading data across a cluster is done by MongoDB. It then redistributes automatically.

  • The mongos acts as a query router, providing an interface between client applications and sharded cluster.

  • Config servers store metadata and configuration settings for the cluster. Each sharded cluster must have its own config servers.

  • MongoDB uses the config servers to manage distributed locks.

Geospatial Indexes

Types

  • 2dsphere

  • 2d

Last updated