11 NoSQL-slides
11 NoSQL-slides
CAP theorem
Ashwani Kumar
16 February 2018
NOSQL Databases
Introduction 3
Database - Organized collection of data
Because...
Joins are expensive
Hard to scale horizontally
Impedance mismatch occurs
Expensive (product cost, hardware,
Maintenance)
NoSQL why, what and when? 9
And....
It’s weak in:
Speed (performance)
High availability
Partition tolerance
Why NOSQL now?? Ans. Driving Trends 11
Side note: RDBMS performance 12
13
But..
But..What’s NoSQL?
What’s NoSQL?
NoSQL avoids:
Overhead of ACID transactions
Complexity of SQL query
Burden of up-front schema design
DBA presence
Transactions (It should be handled at
application layer)
Provides:
Easy and frequent changes to DB
Fast development
Large data volumes(eg.Google)
Schema less
NoSQL why, what and when? 10
NoSQL is getting more & more popular 15
What is a schema-less datamodel? 16
In relational Databases:
In NoSQL Databases:
• Key-value
• Document
• Column family
• Graph
Basic Operations:
Insert(key,value),
Fetch(key),
Update(key),
Delete(key)
Column family data model 20
• – Fault tolerance
• – High availability
• – Consistency
• – Scalability
Which is impossible!!!
According to CAP theorem
CAP theorem 27