SlideShare a Scribd company logo
Introduction to NoSQL
Agenda
RDBMS & its Limitations
ACID v/s BASE
CAP Theorem
Introduction to NOSQL & its Characteristics
Types of NOSQL Databases
Choosing the right fit
Disadvantages
2
Since 1970
Use SQL to manipulate data
 Easy to use
 Easy to integrate with other system
Fits most of our legacy application demands
Relational DBMS
3
What is problem of RDBMS?
4
BASE
Basic Availability: Each request is guaranteed a response—successful or
failed execution
Soft state: The state of the system may change over time, at times without
any input (for eventual consistency)
Eventual consistency: The database may be momentarily inconsistent but will
be consistent eventually
You have to choose only two. In almost all cases, you would choose availability over
consistency
CAP Theorem
6
NoSQL (Not Only SQL) … ??
 A NoSQL database provides a mechanism for storage and retrieval of data that
employs less constrained consistency models than traditional relational databases.
 Motivations : Simplicity of design ; Horizontal scaling ; Availability.
 NoSQL databases are often highly optimized key–value stores intended for simple
retrieval and appending operations, with the goal being significant performance
benefits in terms of latency and throughput.
 Used for : Big Data and real-time web applications.
7
Why now ??
8
Characteristic of NoSQL
Large data volumes.
Scalable replication and distribution (Horizontal scaling).
Queries need to return answers quickly.
Asynchronous Inserts & Updates.
Schema-less.
BASE / CAP Theorem.
No Joins statement.
No complicated Relationships
Less administration time(less cost).
Types of NoSQL Databases
NoSQL DB family includes several DB types:
Column: HBase, Accumulo, Cassandra
Document: MongoDB, Couchbase
Key-value : Dynamo, Riak, Redis, Cache, Project Voldemort
Graph: Neo4J, Allegro, Virtuoso
Data Model: Collection of key/value pairs
Keys and Values can be complex compounds
Designed to handle massive load
No complex query filters
All joins must be in the code
Advantages
 Very fast
 Very scalable
 Simple model
 Able to distribute horizontally
 Very Predictable performance of O(1)
Disadvantages
 Many data structures (objects) can't be easily modeled as key value pairs
Key/Value Databases
11
Tables are similar to RDBMS, but semi-structured
Based on Google’s BigTable
Rows can have arbitrary columns
Distributed and Decentralized
High Availability & Fault Tolerance
Tunable Consistency
Column Databases
12
Document Databases
13
Inspired by Lotus Notes
Central concept of a Document
Documents encapsulate/encode data in some Encodings:
XML, YAML, JSON, BSON
Graph Database
14
Based on Graph Theory -> G = (V, E)
Designed for data that is well
represented in a graph
Social networks, public transport links, network
topologies, road maps
Nodes, edges, properties are used to represent and
store data
Graph relationships are query able
Which one should I choose ?
What’s best depends on your data
Priorities
What types of queries do you need to support?
How much data?
Optimized for reads, writes, or updates?
Versioning
How separate is data from app? Will other applications need to access it in
future?
And how you want to interact with it
RESTful inteface
Query API
NonSQL query languages
Via indexed values, keys, nodes
File access
It too has disadvantages…
Performance and scalability achieved at the expense of feature support
No joins
Grouping and ordering become more problematic
No SQL
No transactions
Eventual consistency v/s Strict consistency
Tools are often lacking
Summary
NoSQL :
Handle huge data.
High availability with small cost.
More data redundancy.
High performance.
Less administration time.
Less standards.
SQL :
Good to solve ACID problems.
Expensive.
Less data redundancy.
Increasing availability mean increasing cost.
More standards.
More administration.
Thank You !

More Related Content

PPTX
مقدمة عن NoSQL بالعربي
PPTX
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
PPT
17 applied architectures
PPTX
Big data and polyglot solutions
PPT
Climbing the beanstalk
PPT
Database selection
PPTX
NoSQL(NOT ONLY SQL)
PDF
Mow2012 data services
مقدمة عن NoSQL بالعربي
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
17 applied architectures
Big data and polyglot solutions
Climbing the beanstalk
Database selection
NoSQL(NOT ONLY SQL)
Mow2012 data services

What's hot (20)

PDF
CAP and the Architectural Consequences by martin Schönert
PPTX
Why does Microsoft care about NoSQL, SQL and Polyglot Persistence?
PPTX
No sq lv2
DOC
Assignment_4
PPTX
NoSql Brownbag
PPTX
Distributed database
PDF
Modeling heterogeneous virtual machines on iaa s data centers
PPTX
ditributed databases
PPTX
SQL vs NoSQL
PDF
Nosql database presentation
PPTX
Distributed dbms
ODP
Nosql availability & integrity
ODP
Advantage of distributed database over centralized database
PDF
Ddb 1.6-design issues
PPTX
Distributed data base management system
PPT
Distributed Database System
PDF
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
PPSX
A Seminar on NoSQL Databases.
PPTX
Difference between Homogeneous and Heterogeneous
PDF
Megastore - ID2220 Presentation
CAP and the Architectural Consequences by martin Schönert
Why does Microsoft care about NoSQL, SQL and Polyglot Persistence?
No sq lv2
Assignment_4
NoSql Brownbag
Distributed database
Modeling heterogeneous virtual machines on iaa s data centers
ditributed databases
SQL vs NoSQL
Nosql database presentation
Distributed dbms
Nosql availability & integrity
Advantage of distributed database over centralized database
Ddb 1.6-design issues
Distributed data base management system
Distributed Database System
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
A Seminar on NoSQL Databases.
Difference between Homogeneous and Heterogeneous
Megastore - ID2220 Presentation
Ad

Similar to Introduction to nosql (20)

PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
NoSQL databases - An introduction
PDF
NOSQL- Presentation on NoSQL
PDF
NOSQL in big data is the not only structure langua.pdf
PPTX
Introduction to asdfghjkln b vfgh n v
PPTX
UNIT I Introduction to NoSQL.pptx
PPTX
Presentation on NOSQL and mongodb .pptx
PPTX
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
PDF
NOsql Presentation.pdf
PPTX
introduction to NOSQL Database
PPTX
NoSQL in Big Data Analytics Tools .pptx
PPTX
Introduction to Data Science NoSQL.pptx
PDF
NoSql and it's introduction features-Unit-1.pdf
PPTX
NoSQL Basics and MongDB
PDF
Nosql part1 8th December
PDF
Nosql Presentation.pdf for DBMS understanding
PPT
NoSql Databases
PPT
NoSQL - 05March2014 Seminar
PPTX
PPT
NoSQL Seminer
UNIT I Introduction to NoSQL.pptx
NoSQL databases - An introduction
NOSQL- Presentation on NoSQL
NOSQL in big data is the not only structure langua.pdf
Introduction to asdfghjkln b vfgh n v
UNIT I Introduction to NoSQL.pptx
Presentation on NOSQL and mongodb .pptx
NOSQL PRESENTATION ON INTRRODUCTION Intro.pptx
NOsql Presentation.pdf
introduction to NOSQL Database
NoSQL in Big Data Analytics Tools .pptx
Introduction to Data Science NoSQL.pptx
NoSql and it's introduction features-Unit-1.pdf
NoSQL Basics and MongDB
Nosql part1 8th December
Nosql Presentation.pdf for DBMS understanding
NoSql Databases
NoSQL - 05March2014 Seminar
NoSQL Seminer
Ad

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
System and Network Administraation Chapter 3
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Nekopoi APK 2025 free lastest update
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
System and Network Administration Chapter 2
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
L1 - Introduction to python Backend.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Operating system designcfffgfgggggggvggggggggg
Odoo POS Development Services by CandidRoot Solutions
System and Network Administraation Chapter 3
Design an Analysis of Algorithms I-SECS-1021-03
Nekopoi APK 2025 free lastest update
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
ISO 45001 Occupational Health and Safety Management System
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle
System and Network Administration Chapter 2
CHAPTER 2 - PM Management and IT Context
L1 - Introduction to python Backend.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Online Work Permit System for Fast Permit Processing
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Upgrade and Innovation Strategies for SAP ERP Customers

Introduction to nosql

  • 2. Agenda RDBMS & its Limitations ACID v/s BASE CAP Theorem Introduction to NOSQL & its Characteristics Types of NOSQL Databases Choosing the right fit Disadvantages 2
  • 3. Since 1970 Use SQL to manipulate data  Easy to use  Easy to integrate with other system Fits most of our legacy application demands Relational DBMS 3
  • 4. What is problem of RDBMS? 4
  • 5. BASE Basic Availability: Each request is guaranteed a response—successful or failed execution Soft state: The state of the system may change over time, at times without any input (for eventual consistency) Eventual consistency: The database may be momentarily inconsistent but will be consistent eventually
  • 6. You have to choose only two. In almost all cases, you would choose availability over consistency CAP Theorem 6
  • 7. NoSQL (Not Only SQL) … ??  A NoSQL database provides a mechanism for storage and retrieval of data that employs less constrained consistency models than traditional relational databases.  Motivations : Simplicity of design ; Horizontal scaling ; Availability.  NoSQL databases are often highly optimized key–value stores intended for simple retrieval and appending operations, with the goal being significant performance benefits in terms of latency and throughput.  Used for : Big Data and real-time web applications. 7
  • 9. Characteristic of NoSQL Large data volumes. Scalable replication and distribution (Horizontal scaling). Queries need to return answers quickly. Asynchronous Inserts & Updates. Schema-less. BASE / CAP Theorem. No Joins statement. No complicated Relationships Less administration time(less cost).
  • 10. Types of NoSQL Databases NoSQL DB family includes several DB types: Column: HBase, Accumulo, Cassandra Document: MongoDB, Couchbase Key-value : Dynamo, Riak, Redis, Cache, Project Voldemort Graph: Neo4J, Allegro, Virtuoso
  • 11. Data Model: Collection of key/value pairs Keys and Values can be complex compounds Designed to handle massive load No complex query filters All joins must be in the code Advantages  Very fast  Very scalable  Simple model  Able to distribute horizontally  Very Predictable performance of O(1) Disadvantages  Many data structures (objects) can't be easily modeled as key value pairs Key/Value Databases 11
  • 12. Tables are similar to RDBMS, but semi-structured Based on Google’s BigTable Rows can have arbitrary columns Distributed and Decentralized High Availability & Fault Tolerance Tunable Consistency Column Databases 12
  • 13. Document Databases 13 Inspired by Lotus Notes Central concept of a Document Documents encapsulate/encode data in some Encodings: XML, YAML, JSON, BSON
  • 14. Graph Database 14 Based on Graph Theory -> G = (V, E) Designed for data that is well represented in a graph Social networks, public transport links, network topologies, road maps Nodes, edges, properties are used to represent and store data Graph relationships are query able
  • 15. Which one should I choose ?
  • 16. What’s best depends on your data
  • 17. Priorities What types of queries do you need to support? How much data? Optimized for reads, writes, or updates? Versioning How separate is data from app? Will other applications need to access it in future?
  • 18. And how you want to interact with it RESTful inteface Query API NonSQL query languages Via indexed values, keys, nodes File access
  • 19. It too has disadvantages… Performance and scalability achieved at the expense of feature support No joins Grouping and ordering become more problematic No SQL No transactions Eventual consistency v/s Strict consistency Tools are often lacking
  • 20. Summary NoSQL : Handle huge data. High availability with small cost. More data redundancy. High performance. Less administration time. Less standards. SQL : Good to solve ACID problems. Expensive. Less data redundancy. Increasing availability mean increasing cost. More standards. More administration.

Editor's Notes

  • #6: Soft state : Data may be time-dependent on user interaction with possible expiration after a period of time. The data must be updated or accessed to remain relevant in the system.