Document Stores
MongoDB
Presented by:
Eya GHARRED, Ines CHEBIL
GTE2.1
Professor:
Takoua ABDELLATIF
2023-2024
Plan.
1. MangoDB 4. Scalability
Supported
2. Data Types
5. Fault Tolerance
3. CAP Theorem 6. Code demonstration
“Humongous”
1
Introduction.
MongoDB is is an open-source database management system
a type of NoSQL database that is used for managing large
volumes of data.
2
MongoDB Developer Tools.
3
Supported Data types.
Processes polymorphic data types:
Structured, Semi-structured, and unstructured data.
4
Features.
5
Document-oriented model.
6
Replication.
The process of creating redundant data to streamline and
7
safeguard data availability and durability
Replication.
8
Sharding.
improving performance and preventing any single server
9
from becoming a bottleneck
Example.
10
Use Cases.
Sharding Replication
Scenarios requiring high
Large datasets
availability
Distributing write-intensive
Fault tolerance
workloads
Horizontal scalability in Ensuring data consistency,
scenarios with high data durability Read and
growth scalability 11
Indexing.
Indexes are a special data structure , used to locate any record in a
given document without the requirement of traversing through every
document in a collection.
Types of Indexes 12
Schema-Less.
13
Example.
14
CAP theorem.
15
Availability.
Why can’t MongoDB ensure Availability?
Master-slave architecture.
Master goes down, system takes time to elect a new primary.
Time of the election =UnAvailability .
16
Replica Set Elections.
17
Scalability.
Simple vertical or horizontal scale up or down as needed.
Auto-scaling for the resources to meet the needs.
18
How is Scalability assured?
Horizontal database scaling techniques:
Replication
sharding (Horizontal partitioning).
19
Load Balancing.
Database load balancing distributes concurrent client
requests to multiple database servers to reduce the amount
of load on any single server.
Ensures data Consistency 20
Fault Tolerance.
Problem: One or more components within a system fail.
Solution: Backup component ready to take over.
Maintaining continuous availability.
21
Fault Tolerance.
Failure in one part of the system
Solution : Partitioning
the others continue to work in
the same manner.
Failure in network , some nodes are down.
Solution: Partitioning of the affected
nodes.
the others will perform as usual. 22
MongoDB Applications.
23
Companies using MongoDB.
24
In our Case:
Together, MongoDB and Spark provide a robust solution for
25
scalable, high-performance big data workflows.
Thank You.