SlideShare a Scribd company logo
1 of 29
NoSQL Databases.
By
Nimat Ullah Khattak.
11-MS(IT)-27
&
Majid Hussain.
11-MS(IT)-02
Overview of The Presentation
 NoSQL
 Why NoSQL
 Categories of NoSQL databases
 Comparison of different NoSQL databases.
NoSQL
 A term which stands for
NoSQL (Beginning)
 First used by Carlo Strozzi in 1998.
 Reintroduced by Eric Evan in 2009.
NoSQL(What is NoSQL?)
 NoSQL doesn’t mean to stop using SQL. OR
SQL won’t be used.
 The term refers to those databases that differ
from relational databases.
 Simply Non-relational databases.
Some terms we must know…
 ACID (Atomicity, Consistency, Isolation,
Durability).
 CAP (Consistency, Availability, Partition
Tolerance).
ACID
 Atomicity. All of the operations in the transaction
will complete, or none will.
 Consistency. The database will be in a consistent
state when the transaction begins and ends.
 Isolation. The transaction will behave as if it is the
only operation being performed upon the database.
(No interference of transaction)
 Durability. Upon completion of the transaction,
the operation will not be reversed.
CAP
 Consistency. No contradiction b/w data.
 Availability. Every operation must terminate in an
intended response.
 Partition tolerance. Operations will complete, even if
individual components are unavailable
 NoSQL are based on CAP…
CAP (For NoSQL)
Why NoSQL?
 NoSQL didn’t come because of the shortfalls of
SQL…
Why NoSQL (Features)
 It provides:
 Horizontal scalability
 Open-source
 Schema-freeness
 Easy replication support
 Simple API
Why NoSQL (Features)
 NoSQL databases are eventually consistent / CAP (not
ACID).
Scalability
 To maintain performance.
 Horizontal Scalability:
 To increase the no-of machines but maintaining
proportional performance.
 Vertical scalability:
 To add more resources to your single machine to
optimize performance.
Open source
 Most of the NoSQL Projects are Open source. So any one
can use, modify it, like
 Cassandra by facebook.
 Couch and MongoDB.
 Neo4j etc
 Bigtable by google but only allowed for Google
application.
Schema freeness
 NoSQL databases doesn’t use any fixed schema like
relational database.
 Internal schema
 External schema etc
 The original intention of NoSQL is the modern web-scale
databases.
Easy replication support
 The use of redundant resources to improve:
 Reliability
 Fault-tolerance
 Performance
Why NoSQL (Benefits)
1. Scaling
RDBs weren’t easy to scale out.
On the other hand NoSQL DBs are specially designed to
scale out.
Why NoSQL (Benefits)
2. Big data
Single RDBMS is almost unable to handle today’s
huge amount of data and the transaction on that
data.
But
Non-Relational databases are specially designed to
handle big data.
Why NoSQL (Benefits)
3. Needs no Expert DBAs
Although RDMS vendors claim that RDBMS provide
management facilities but it still need an expert DBA to
operate it.
In contrast NoSQL DBs don’t need expert DBAs, as it
provides automatic repair, data distribution, and simpler
data models, which lead to lower administration.
Why NoSQL (Benefits)
4. Economics
RDBMS requires expensive components for providing
efficient service.
NoSQL uses cheap commodity servers to manage the same
amount of data for which RDBMS needs expensive server.
so NoSQL is economical as well.
Why NoSQL (Benefits)
5. Flexibility of data models
There can occur changes in the requirements of an
organization with the passage of time…
Changes in RDBMS after its deployment creates many
problems and also affects its services or some time it’s even
almost impossible to make changes.
NoSQL database can be changed at any instance, i-e
existing columns can be altered and new can be added.
Categories of NoSQL databases
1) Key Value stores
 Don’t have any schema
 Fast lookups facility
 Can be use in a forum software where user’s statistic and
messages are recorded. User’s id will serve as a key and
will retrieve a string that represents all the relevant info of
the user. And a background process recalculates the
information and writes to the store independently after fixed
interval of time.
 Example
 Redis : Redis is an open source, advanced key-
value store. It is often referred to as a data
structure server since keys (data types) can
contain strings, hashes, lists, sets and sorted
sets.
Categories (cont…)
  API: Tons of languages, Written in: C,
 Concurrency: in memory and saves asynchronous disk after a
defined time.
2) Document databases
 web application
 tolerance of incomplete data
 low query performance
 no standard query syntax
 Used when we don’t have complete data about all the
entities of database but we still need to create database.
Example
CouchDB:  API: JSON, Protocol: REST, Query Method:
MapReduceR of JavaScript Funcs, Replication: Master
Master, Written in: Erlang.
Categories (cont…)
 MongoDBMongoDB: API: BSON, Protocol: lots of langs,: API: BSON, Protocol: lots of langs,
Query Method: dynamic object-based language,Query Method: dynamic object-based language,
Replication: Master Slave, Written in: C++.Replication: Master Slave, Written in: C++.
3) Graph databases
 Social networkingSocial networking
 graph algorithms, connectedness, degree of relationshipsgraph algorithms, connectedness, degree of relationships
 has to traverse the entire graph to get definitive answer.has to traverse the entire graph to get definitive answer.
 not easy to cluster.not easy to cluster.
 used in a situation where we want to analyze the on goingused in a situation where we want to analyze the on going
trends and take decision on the basis of those trends.trends and take decision on the basis of those trends.
Categories (cont…)
 Example:Example:
Neo4J:Neo4J:  API: lots of langs, Protocol: Java embedded /  API: lots of langs, Protocol: Java embedded /
REST, Query Method: SparQL, nativeJavaAPI, JRuby,REST, Query Method: SparQL, nativeJavaAPI, JRuby,
Replication: typical MySQL style master/slave, Written in:Replication: typical MySQL style master/slave, Written in:
Java, Concurrency: non-block reads, writes locks involvedJava, Concurrency: non-block reads, writes locks involved
nodes/relationships until commit, Misc: ACID possiblenodes/relationships until commit, Misc: ACID possible
4) XML databases
 Publishing
 mature search technologies
 schema validation
 re-writing is easier than updating
Categories (cont…)
 Used in a situation where one wants to produce documents
of articles etc from a huge amount of documents but the
format of those article doesn’t allow the publisher to perform
search on it. Those articles are converted into xml database
and wrap it in a readable-URL web service for the document
production systems.
5) Distributed Peer Stores
 distributed file systems
 Fast lookups
 Good distributed storage of data
 Very low level API
 Best for voting system. In such a situation one store/user
and one store/piece of content is created. The user store
will hold all the votes they have ever casted and the
content will store a copy of the content on which vote
was casted.
Categories (cont…)
ExampleExample
Cassandra:Cassandra: API: many Thrift languages, Query Method:API: many Thrift languages, Query Method:
MapReduce, Written in: Java, Concurrency: eventuallyMapReduce, Written in: Java, Concurrency: eventually
consistent , Misc: like "Big-Table on Amazon Dynamoconsistent , Misc: like "Big-Table on Amazon Dynamo
alike",  initiated by Facebook.alike",  initiated by Facebook.
Tabular comparison:
The End…
 Any Confusion…???

More Related Content

What's hot

NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 
Electron, databases, and RxDB
Electron, databases, and RxDBElectron, databases, and RxDB
Electron, databases, and RxDBBen Gotow
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sqlRam kumar
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.Navdeep Charan
 
FITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC
 
An introduction to Nosql
An introduction to NosqlAn introduction to Nosql
An introduction to Nosqlgreprep
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introductionPooyan Mehrparvar
 
NoSQL Data Architecture Patterns
NoSQL Data ArchitecturePatternsNoSQL Data ArchitecturePatterns
NoSQL Data Architecture PatternsMaynooth University
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql DatabasePrashant Gupta
 
The CIOs Guide to NoSQL
The CIOs Guide to NoSQLThe CIOs Guide to NoSQL
The CIOs Guide to NoSQLDATAVERSITY
 
Intro to NoSQL and MongoDB
Intro to NoSQL and MongoDBIntro to NoSQL and MongoDB
Intro to NoSQL and MongoDBDATAVERSITY
 

What's hot (20)

NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Electron, databases, and RxDB
Electron, databases, and RxDBElectron, databases, and RxDB
Electron, databases, and RxDB
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.
 
FITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JSFITC presents: Mobile & offline data synchronization in Angular JS
FITC presents: Mobile & offline data synchronization in Angular JS
 
Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
 
Nosql seminar
Nosql seminarNosql seminar
Nosql seminar
 
Apache CouchDB
Apache CouchDBApache CouchDB
Apache CouchDB
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Lokijs
LokijsLokijs
Lokijs
 
Relational vs. Non-Relational
Relational vs. Non-RelationalRelational vs. Non-Relational
Relational vs. Non-Relational
 
An introduction to Nosql
An introduction to NosqlAn introduction to Nosql
An introduction to Nosql
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
NoSQL Data Architecture Patterns
NoSQL Data ArchitecturePatternsNoSQL Data ArchitecturePatterns
NoSQL Data Architecture Patterns
 
Mongodb - NoSql Database
Mongodb - NoSql DatabaseMongodb - NoSql Database
Mongodb - NoSql Database
 
The CIOs Guide to NoSQL
The CIOs Guide to NoSQLThe CIOs Guide to NoSQL
The CIOs Guide to NoSQL
 
Intro to NoSQL and MongoDB
Intro to NoSQL and MongoDBIntro to NoSQL and MongoDB
Intro to NoSQL and MongoDB
 

Viewers also liked

NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...Vivek Adithya Mohankumar
 
Nosql databases for the .net developer
Nosql databases for the .net developerNosql databases for the .net developer
Nosql databases for the .net developerJesus Rodriguez
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraFolio3 Software
 
A practical introduction to Oracle NoSQL Database - OOW2014
A practical introduction to Oracle NoSQL Database - OOW2014A practical introduction to Oracle NoSQL Database - OOW2014
A practical introduction to Oracle NoSQL Database - OOW2014Anuj Sahni
 
Big Data and NoSQL for Database and BI Pros
Big Data and NoSQL for Database and BI ProsBig Data and NoSQL for Database and BI Pros
Big Data and NoSQL for Database and BI ProsAndrew Brust
 
Project Risk Management
Project Risk ManagementProject Risk Management
Project Risk ManagementNimat Khattak
 
Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)Chris Richardson
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-ConceptsBhaskar Gunda
 
NoSQL databases and managing big data
NoSQL databases and managing big dataNoSQL databases and managing big data
NoSQL databases and managing big dataSteven Francia
 
NoSQL Databases, Not just a Buzzword
NoSQL Databases, Not just a Buzzword NoSQL Databases, Not just a Buzzword
NoSQL Databases, Not just a Buzzword Haitham El-Ghareeb
 
Test Automation for NoSQL Databases
Test Automation for NoSQL DatabasesTest Automation for NoSQL Databases
Test Automation for NoSQL DatabasesTobias Trelle
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewDave Segleau
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenLorenzo Alberton
 
NoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsNoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsDATAVERSITY
 

Viewers also liked (16)

NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
NoSQL Databases: An Introduction and Comparison between Dynamo, MongoDB and C...
 
Nosql databases for the .net developer
Nosql databases for the .net developerNosql databases for the .net developer
Nosql databases for the .net developer
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache Cassandra
 
A practical introduction to Oracle NoSQL Database - OOW2014
A practical introduction to Oracle NoSQL Database - OOW2014A practical introduction to Oracle NoSQL Database - OOW2014
A practical introduction to Oracle NoSQL Database - OOW2014
 
Big Data and NoSQL for Database and BI Pros
Big Data and NoSQL for Database and BI ProsBig Data and NoSQL for Database and BI Pros
Big Data and NoSQL for Database and BI Pros
 
Project Risk Management
Project Risk ManagementProject Risk Management
Project Risk Management
 
Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-Concepts
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
NoSQL databases and managing big data
NoSQL databases and managing big dataNoSQL databases and managing big data
NoSQL databases and managing big data
 
NoSQL Databases, Not just a Buzzword
NoSQL Databases, Not just a Buzzword NoSQL Databases, Not just a Buzzword
NoSQL Databases, Not just a Buzzword
 
Test Automation for NoSQL Databases
Test Automation for NoSQL DatabasesTest Automation for NoSQL Databases
Test Automation for NoSQL Databases
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overview
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and when
 
NoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture PatternsNoSQL Now! NoSQL Architecture Patterns
NoSQL Now! NoSQL Architecture Patterns
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
 

Similar to NoSql Databases

Analysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB ToolAnalysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB Toolijtsrd
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQLbalwinders
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfajajkhan16
 
MongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data scienceMongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data sciencebitragowthamkumar1
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMohan Rathour
 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Mohamed Galal
 
Couchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionCouchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionKelum Senanayake
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodbMohammed Ragab
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep diveAhmed Shaaban
 
NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013Facundo Farias
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxvvpadhu
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sqlAnuja Gunale
 
Assignment_4
Assignment_4Assignment_4
Assignment_4Kirti J
 
No sqlpresentation
No sqlpresentationNo sqlpresentation
No sqlpresentationSalma Gouia
 
Minnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with CassandraMinnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with CassandraJeff Bollinger
 

Similar to NoSql Databases (20)

NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
 
Analysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB ToolAnalysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB Tool
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdf
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
MongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data scienceMongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data science
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorial
 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
 
Couchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionCouchbase - Yet Another Introduction
Couchbase - Yet Another Introduction
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep dive
 
No sql database
No sql databaseNo sql database
No sql database
 
NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013NoSQL Databases Introduction - UTN 2013
NoSQL Databases Introduction - UTN 2013
 
No sq lv1_0
No sq lv1_0No sq lv1_0
No sq lv1_0
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sql
 
Assignment_4
Assignment_4Assignment_4
Assignment_4
 
No sqlpresentation
No sqlpresentationNo sqlpresentation
No sqlpresentation
 
Minnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with CassandraMinnebar 2013 - Scaling with Cassandra
Minnebar 2013 - Scaling with Cassandra
 

Recently uploaded

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

NoSql Databases

  • 1. NoSQL Databases. By Nimat Ullah Khattak. 11-MS(IT)-27 & Majid Hussain. 11-MS(IT)-02
  • 2. Overview of The Presentation  NoSQL  Why NoSQL  Categories of NoSQL databases  Comparison of different NoSQL databases.
  • 3. NoSQL  A term which stands for
  • 4. NoSQL (Beginning)  First used by Carlo Strozzi in 1998.  Reintroduced by Eric Evan in 2009.
  • 5. NoSQL(What is NoSQL?)  NoSQL doesn’t mean to stop using SQL. OR SQL won’t be used.  The term refers to those databases that differ from relational databases.  Simply Non-relational databases.
  • 6. Some terms we must know…  ACID (Atomicity, Consistency, Isolation, Durability).  CAP (Consistency, Availability, Partition Tolerance).
  • 7. ACID  Atomicity. All of the operations in the transaction will complete, or none will.  Consistency. The database will be in a consistent state when the transaction begins and ends.  Isolation. The transaction will behave as if it is the only operation being performed upon the database. (No interference of transaction)  Durability. Upon completion of the transaction, the operation will not be reversed.
  • 8. CAP  Consistency. No contradiction b/w data.  Availability. Every operation must terminate in an intended response.  Partition tolerance. Operations will complete, even if individual components are unavailable  NoSQL are based on CAP…
  • 10. Why NoSQL?  NoSQL didn’t come because of the shortfalls of SQL…
  • 11. Why NoSQL (Features)  It provides:  Horizontal scalability  Open-source  Schema-freeness  Easy replication support  Simple API
  • 12. Why NoSQL (Features)  NoSQL databases are eventually consistent / CAP (not ACID).
  • 13. Scalability  To maintain performance.  Horizontal Scalability:  To increase the no-of machines but maintaining proportional performance.  Vertical scalability:  To add more resources to your single machine to optimize performance.
  • 14. Open source  Most of the NoSQL Projects are Open source. So any one can use, modify it, like  Cassandra by facebook.  Couch and MongoDB.  Neo4j etc  Bigtable by google but only allowed for Google application.
  • 15. Schema freeness  NoSQL databases doesn’t use any fixed schema like relational database.  Internal schema  External schema etc  The original intention of NoSQL is the modern web-scale databases.
  • 16. Easy replication support  The use of redundant resources to improve:  Reliability  Fault-tolerance  Performance
  • 17. Why NoSQL (Benefits) 1. Scaling RDBs weren’t easy to scale out. On the other hand NoSQL DBs are specially designed to scale out.
  • 18. Why NoSQL (Benefits) 2. Big data Single RDBMS is almost unable to handle today’s huge amount of data and the transaction on that data. But Non-Relational databases are specially designed to handle big data.
  • 19. Why NoSQL (Benefits) 3. Needs no Expert DBAs Although RDMS vendors claim that RDBMS provide management facilities but it still need an expert DBA to operate it. In contrast NoSQL DBs don’t need expert DBAs, as it provides automatic repair, data distribution, and simpler data models, which lead to lower administration.
  • 20. Why NoSQL (Benefits) 4. Economics RDBMS requires expensive components for providing efficient service. NoSQL uses cheap commodity servers to manage the same amount of data for which RDBMS needs expensive server. so NoSQL is economical as well.
  • 21. Why NoSQL (Benefits) 5. Flexibility of data models There can occur changes in the requirements of an organization with the passage of time… Changes in RDBMS after its deployment creates many problems and also affects its services or some time it’s even almost impossible to make changes. NoSQL database can be changed at any instance, i-e existing columns can be altered and new can be added.
  • 22. Categories of NoSQL databases 1) Key Value stores  Don’t have any schema  Fast lookups facility  Can be use in a forum software where user’s statistic and messages are recorded. User’s id will serve as a key and will retrieve a string that represents all the relevant info of the user. And a background process recalculates the information and writes to the store independently after fixed interval of time.  Example  Redis : Redis is an open source, advanced key- value store. It is often referred to as a data structure server since keys (data types) can contain strings, hashes, lists, sets and sorted sets.
  • 23. Categories (cont…)   API: Tons of languages, Written in: C,  Concurrency: in memory and saves asynchronous disk after a defined time. 2) Document databases  web application  tolerance of incomplete data  low query performance  no standard query syntax  Used when we don’t have complete data about all the entities of database but we still need to create database. Example CouchDB:  API: JSON, Protocol: REST, Query Method: MapReduceR of JavaScript Funcs, Replication: Master Master, Written in: Erlang.
  • 24. Categories (cont…)  MongoDBMongoDB: API: BSON, Protocol: lots of langs,: API: BSON, Protocol: lots of langs, Query Method: dynamic object-based language,Query Method: dynamic object-based language, Replication: Master Slave, Written in: C++.Replication: Master Slave, Written in: C++. 3) Graph databases  Social networkingSocial networking  graph algorithms, connectedness, degree of relationshipsgraph algorithms, connectedness, degree of relationships  has to traverse the entire graph to get definitive answer.has to traverse the entire graph to get definitive answer.  not easy to cluster.not easy to cluster.  used in a situation where we want to analyze the on goingused in a situation where we want to analyze the on going trends and take decision on the basis of those trends.trends and take decision on the basis of those trends.
  • 25. Categories (cont…)  Example:Example: Neo4J:Neo4J:  API: lots of langs, Protocol: Java embedded /  API: lots of langs, Protocol: Java embedded / REST, Query Method: SparQL, nativeJavaAPI, JRuby,REST, Query Method: SparQL, nativeJavaAPI, JRuby, Replication: typical MySQL style master/slave, Written in:Replication: typical MySQL style master/slave, Written in: Java, Concurrency: non-block reads, writes locks involvedJava, Concurrency: non-block reads, writes locks involved nodes/relationships until commit, Misc: ACID possiblenodes/relationships until commit, Misc: ACID possible 4) XML databases  Publishing  mature search technologies  schema validation  re-writing is easier than updating
  • 26. Categories (cont…)  Used in a situation where one wants to produce documents of articles etc from a huge amount of documents but the format of those article doesn’t allow the publisher to perform search on it. Those articles are converted into xml database and wrap it in a readable-URL web service for the document production systems. 5) Distributed Peer Stores  distributed file systems  Fast lookups  Good distributed storage of data  Very low level API  Best for voting system. In such a situation one store/user and one store/piece of content is created. The user store will hold all the votes they have ever casted and the content will store a copy of the content on which vote was casted.
  • 27. Categories (cont…) ExampleExample Cassandra:Cassandra: API: many Thrift languages, Query Method:API: many Thrift languages, Query Method: MapReduce, Written in: Java, Concurrency: eventuallyMapReduce, Written in: Java, Concurrency: eventually consistent , Misc: like "Big-Table on Amazon Dynamoconsistent , Misc: like "Big-Table on Amazon Dynamo alike",  initiated by Facebook.alike",  initiated by Facebook.
  • 29. The End…  Any Confusion…???