2. COLLECTIONS : In MONGO-DB collection of document called as collections, can
compare with tables in the RDMS, but it didn’t have any defined structure.
DOCUMENTS : Is the bson, each any every entry in the mongo-db is stored as
document.
BSON : Bson stands for binary JSON, JSON which have data type accociated with
values.
INDEX : Indexes are used is mongo-db to search any records effectively with in
the collection, mongo-db default index is _id. We can create another field or set
of fields also as the index, but it require additional space in memory for storage.
MONGO-DB BASICS:
3. REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packer movement, replica, shard etc configuration.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db.
MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS
REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packer movement, replica, shard etc configuration.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db.
4. REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard(node) is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster.
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packet movement, replica, shard etc.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db, once configured can’t be changed.
MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS