04-2 Intro Nosql
04-2 Intro Nosql
NoSQL
Eras of Databases
1
28/11/2022
Eras of Databases
2
28/11/2022
Before NoSQL
Star schema
OLTP
OLAP cube
5
3
28/11/2022
The last 25 years of commercial DBMS development can be summed up in a single phrase:
"one size fits all". This phrase refers to the fact that the traditional DBMS architecture
(originally designed and optimized for business data processing) has been used to support
many data-centric applications with widely varying characteristics and requirements. In this
paper, we argue that this concept is no longer applicable to the database market, and that the
commercial world will fracture into a collection of independent database engines ...
7
After is NoSQL
4
28/11/2022
NoSQL landscape
How to write a CV
10
10
5
28/11/2022
Why NoSQL
11
11
SQL vs NoSQL
SQL NoSQL
Gigabytes to Terabytes Petabytes(1kTB) to Exabytes(1kPB) to
Zetabytes(1kEB)
Centralized Distributed
Structured Semi structured and Unstructured
Structured Query Language No declarative query language
Stable Data Model Schema less
Complex Relationships Less complex relationships
ACID Property Eventual Consistency
Transaction is priority High Availability, High Scalability
Joins Tables Embedded structures
12
6
28/11/2022
13
13
14
14
7
28/11/2022
15
15
16
16
8
28/11/2022
17
17
Memcached
18
18
9
28/11/2022
Redis
19
19
Amazon DynamoDB
20
20
10
28/11/2022
22
22
Column families
23
23
11
28/11/2022
24
24
Bigtable
25
25
12
28/11/2022
Apache Hbase
26
26
Apache Cassandra
27
27
13
28/11/2022
28
28
29
29
14
28/11/2022
33
33
Neo4j
34
34
15
28/11/2022
Document store
35
35
MongoDB
40
40
16
28/11/2022
MongoDB architecture
• Replica set
• Copies of the data on each node
• Data safety
• High availability
• Disaster recovery
• Maintenance
• Read scaling
• Sharding
• “Partitions” of the data
• Horizontal scale
41
Apache CouchDB
• Apache project
• Open source JSON data store
• Written in ERLANG
• RESTful JSON API
• B-Tree based indexing, shadowing b-tree versioning
• ACID fully supported
• View model
• Data compaction
• Security
42
42
17
28/11/2022
43
18