MongoDB is a non-relations database and well known in the latest trends for storing data in json form.
This slide will help you to understand the advanced concept of MongoDB with the help of sharding.
This slide will cover:
Architecture of sharded cluster.
Query handling in sharded cluster.
Data Distribution Method.
Replica Sets.
2. MongoDB (Journey till now)
● Setting up MongoDB environment.
● Creating Databases, Collections and Documents.
● Document Schema using NF3.
● Creating Queries for manipulating data with Robo 3T.
3. Latest News
● Latest version: Mongo 4.0
○ https://docs.mongodb.com/manual/release-notes/4.0/
● For further news and cool stuffs for mongo
○ https://www.mongodb.com/news
4. What we will learn today?
● Architecture of sharded cluster.
● Query handling in sharded cluster.
● Data Distribution Method.
● Replica Sets.
5. What is Replication
Replication is a concept
of keeping multiple
copies of your data.
We need replication
because you can never
assume that all of the
servers are always
available.
6. Standalone Vs Replicated Solution
Standalone writes data to a
single server.
Replicated Solution we keep
copies of data into different
servers.
7. How it works.
● Binary Replications - strict consistencies along all the
servers since it is based on memory index.
● Statement Based Replications - not bound by operating
systems or any machine level dependencies.
8. Setting up replica set
Create a config file with the storage, server, port and replica set name.