Introduction to NoSQL and MongoDB
[Pages:47]Introduction to NoSQL and MongoDB
Kathleen Durant Lesson 20 CS 3200 Northeastern University
1
Outline for today
? Introduction to NoSQL
? Architecture
? Sharding ? Replica sets
? NoSQL Assumptions and the CAP Theorem ? Strengths and weaknesses of NoSQL
? MongoDB
? Functionality ? Examples
2
Taxonomy of NoSQL
? Key-value ? Graph database ? Document-oriented ? Column family
3
Typical NoSQL architecture
K
Hashing
function maps
each key to a
server (node)
4
CAP theorem for NoSQL
What the CAP theorem really says:
? If you cannot limit the number of faults and requests can be
directed to any server and you insist on serving every request you
receive then you cannot possibly be consistent
Eric Brewer 2001
How it is interpreted:
? You must always give something up: consistency, availability or tolerance to failure and reconfiguration
5
Theory of NOSQL: CAP
GIVEN:
C
? Many nodes
? Nodes contain replicas of partitions of the data
? Consistency
? All replicas contain the same version of data
? Client always has the same view of the data (no matter what node)
? Availability
? System remains operational on failing nodes
A
P
? All clients can always read and write
? Partition tolerance
? multiple entry points
CAP Theorem:
? System remains operational on
system split (communication malfunction)
satisfying all three at the
? System works well across physical network partitions
same time is impossible
6
Available, PartitionTolerant (AP) Systems achieve "eventual consistency" through replication and verification
Consistent, Available (CA) Systems have trouble with partitions and typically deal with it with replication
Consistent, Partition-Tolerant (CP) Systems have trouble with availability while keeping data consistent across partitioned nodes
7
Sharding of data
? Distributes a single logical database system across a cluster of machines
? Uses range-based partitioning to distribute documents based on a specific shard key
? Automatically balances the data associated with each shard ? Can be turned on and off per collection (table)
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- introduction to nosql and mongodb
- nosql injection owasp
- understanding json schema
- working with json in rpg scott klement
- r programming rxjs ggplot2 python data persistence
- json or javascript object notation is a lightweight text
- chinese state sponsored cyber operations observed ttps
- full stack developer amazon web services
- trafic de données avec python pandas
- net framework notes for professionals
Related searches
- introduction to financial management pdf
- introduction to finance and accounting
- introduction to leadership and management
- how to cite introduction to sociology 2e
- introduction to java programming and data structures
- introduction to language and linguistics
- introduction to leadership and governance
- introduction to philosophy and logic
- introduction to positive and negative numbers
- introduction to leadership concepts and practice
- introduction to food and beverage service
- introduction to probability and mathematical statistics pdf