SlideShare a Scribd company logo
To SQL or
NoSQL?
That is the
question
Krishnakumar S
D E V C O N Kochi
28th March 2015
History of Database Systems
 1960’s : Hierarchical and Network (IMS, CODASYL etc.)
 1970’s : Beginning of theory of relational model of database
 1980’s : Rise of RDBMS and SQL
 1990’s : Spreadsheets and MySQL; evolution of web
 2000’s : Large enterprise & open source; Google & Amazon
 2010’s : Emergence of NoSQL systems
 2020’s : NewSQL?
CAP
theorem
RDBMS
 Strong foundation – Relational Model
 Highly Structured – rows, columns, data types
 Structured Query Language - standardized
 ACID properties – all or nothing
 Joins – new views from relationships
RDBMS – Weakness
 Joins – Not scalable
 Transactions – Read & write operations will
be slow because of locking resources
 Fixed definitions – Difficult to work with
highly variable data
 Document integration – difficult create reports
based on structured & unstructured data
Changing scenarios...
Changing scenarios...
Changing scenarios...
Changing scenarios...
What drives to NoSQL?
Velocity Agility
Volume
Variability
Any existing solution?
• Data partitioning
• Replication
• Clustering
• Query distribution
• Load balancing
• Consistency/Syncing
• Latency/Concurrency
• Network bottle neck
• Multiple data centers
• Distributed backups
• Node failures
• Voting algorithms for failure detection
• Administration of many systems
• Monitoring
RDBMS is scalable only if designed & administered correctly (Period)
NoSQL! What is in a name?
1998 :
• Carlo Strozzi developed a open-source relational database “Strozzi NoSQL”
• Database stores tables as ASCII files; tuples as tab separated values
• It doesn’t use SQL as query language – so given the name “NoSQL”
• Instead it used UNIX shell script and pipeline to retrieve data
Irony! A relational database is named as NoSQL!
2009 :
• Johan Oskarsson organized a meetup of people developing open-source,
distributed, non relational databases on June 11, 2009
• He wanted a simple twitter hash tag for the meetup; quick, memorable, & helps
Google search
• Eric Evans come up with the name NoSQL, for the single meetup
NoSQL! What is in a name?
• The name is negative
• The name does not describe the purpose of their meet up
• The name does not define the new database system
• But; the name just satisfied the twitter tag! And caught on like wildfire
What does it stands for!
• “No to SQL”? Not exactly
• “Not Only SQL”? Then what about SQL Server, Oracle etc.?
The answer is “You don’t worry about what it stands for!
NoSQL
• The NoSQL is a movement
• The NoSQL is an ecosystem for future database technology
• NoSQL is an accidental neologism. There is no prescriptive definition
Characteristics of NoSQL
• Not using the relational model
• Running well in clusters
• Open-source
• Built for 21st century web estates
• Schemaless
The most important result of NoSQL movement is; Polyglot Persistence
Theorems Ahead!
Brewer’s CAP theorem
• In 2000, Eric Brewer presented the CAP principle as conjuncture
• In 2002, Seth Gilbert & Nancy Lynch published a formal proof and rendered
the principle as CAP theorem
There are three essential system requirements necessary for the successful
design, implementation, and deployment of applications in distributed
computing
1. Consistency
2. Availability
3. Partition Tolerance
In majority of instances, a distributed system can only guarantee any two, not
all three
Brewer’s CAP theorem
Consistency refers to whether a system operates fully or not. Do all nodes
within a cluster see all the data they are supposed to? This is the same
idea presented in ACID
Availability means just as it sounds. Is the given service or system available
when requested? Does each request get a response outside of failure or
success?
Partition Tolerance represents the fact that a given system continues to
operate even under circumstances of data loss or system failure. A single
node failure should not cause the entire system to collapse.
In large scale, distributed, non relational systems, they need availability and
partition tolerance, so consistency suffers and ACID collapses
Brewer’s CAP theorem
Pick any two
CA AP
CP
RDBMS’s
SQL Server
Oracle
MySQL etc.
Availability
Each client can always read and
write
Consistency
All clients always have he same
view
of data
Partition
Tolerance
The system works well despite
physical
Network partitions
Bigtable, MongoDB, BerkleyDB, MemcacheDB, Hbase etc
Cassandra
CouchDB
Dynamo
Voldemort
BASE
Basically Available : states that the system does guarantee the availability
of the data as regards CAP Theorem; there will be a response to any
request. But, that response could still be ‘failure’ to obtain the requested
data or the data may be in an inconsistent or changing state
Soft state : The state of the system could change over time, so even during
times without input there may be changes going on due to ‘eventual
consistency,’ thus the state of the system is always ‘soft.’
Eventual Consistency : The system will eventually become consistent once
it stops receiving input. The data will propagate to everywhere it should
sooner or later, but the system will continue to receive input and is not
checking the consistency of every transaction before it moves onto the
next one
It’s OK to use stale data; it’s OK to give approximate answers.
NoSQL Data Architecture Patterns
Key-Value
key value
key value
key value
key value
Column-Family
Graph Document
Key-Value
Key-Value
key value
key value
key value
key value
 Keys used to access opaque
blobs of data
 Values can contain any type of
data (images, video)
Pros: scalable, simple API (put,
get, delete)
Cons: no way to query based on
the content of the value
Column family
Column-Family
 Key includes a row, column
family and column name
 Store versioned blobs in one
large table
 Queries can be done on rows,
column families and column
names
 Pros: Good scale out
 Cons: Can not query blob
content, row and column designs
are critical
Graph Store
Graph  Data is stored in a series of nodes
and properties
 Queries are really graph traversals
 Ideal when relationships between
data is key:
 e.g. social networks
 Pros: fast network search, works
with public linked data sets
 Cons: Poor scalability when graphs
don't fit into RAM, specialized query
language
Document Store
Document  Data stored in nested hierarchies
 Logical data remains stored
together as a unit
 Any item in the document can be
queried
 Pros: No object-relational
mapping layer, ideal for search
 Cons: Complex to implement,
incompatible with SQL
NoSQL & Functional Programming
NoSQL & Functional Programming
Polyglot Persistence
Different database systems are designed to solve different problems
Using single database engine for all the requirements leads to non-
performant solutions
The solution is polyglot persistence; a hybrid approach to data
persistence
NoSQL - Evolution
© Natalino Busa
References
• Making Sense of NoSQL – Dan McCreary and Ann Kelly
• NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot
Persistence - Pramod J. Sadalage and Martin Fowler
• Data Access for Highly-Scalable Solutions: Using SQL, NoSQL, and
Polyglot Persistence - John Sharp, Douglas McMurtry, Andrew
Oakley, Mani Subramanian, Hanzhong Zhang
To SQL or NoSQL, that is the question
To SQL or NoSQL, that is the question
Ad

More Related Content

What's hot (20)

Oracle vs NoSQL – The good, the bad and the ugly
Oracle vs NoSQL – The good, the bad and the uglyOracle vs NoSQL – The good, the bad and the ugly
Oracle vs NoSQL – The good, the bad and the ugly
John Kanagaraj
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
abdulrahmanhelan
 
Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
Mohammed Fazuluddin
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosql
bharati k
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
Satya Pal
 
SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.
Denis Reznik
 
Nonrelational Databases
Nonrelational DatabasesNonrelational Databases
Nonrelational Databases
Udi Bauman
 
NoSQL databases and managing big data
NoSQL databases and managing big dataNoSQL databases and managing big data
NoSQL databases and managing big data
Steven Francia
 
NoSQL Consepts
NoSQL ConseptsNoSQL Consepts
NoSQL Consepts
Maynooth University
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
Rahul Jain
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
James Serra
 
Considerations for using NoSQL technology on your next IT project
Considerations for using NoSQL technology on your next IT projectConsiderations for using NoSQL technology on your next IT project
Considerations for using NoSQL technology on your next IT project
Akmal Chaudhri
 
Relational vs. Non-Relational
Relational vs. Non-RelationalRelational vs. Non-Relational
Relational vs. Non-Relational
PostgreSQL Experts, Inc.
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
Sql vs nosql
Sql vs nosqlSql vs nosql
Sql vs nosql
Nick Verschueren
 
Nosql intro
Nosql introNosql intro
Nosql intro
Hoang Nguyen
 
Storage Systems For Scalable systems
Storage Systems For Scalable systemsStorage Systems For Scalable systems
Storage Systems For Scalable systems
elliando dias
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?
Venu Anuganti
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data Architecture
Venu Anuganti
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQL
Don Demcsak
 
Oracle vs NoSQL – The good, the bad and the ugly
Oracle vs NoSQL – The good, the bad and the uglyOracle vs NoSQL – The good, the bad and the ugly
Oracle vs NoSQL – The good, the bad and the ugly
John Kanagaraj
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
abdulrahmanhelan
 
Comparison between rdbms and nosql
Comparison between rdbms and nosqlComparison between rdbms and nosql
Comparison between rdbms and nosql
bharati k
 
Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
Satya Pal
 
SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.SQL vs. NoSQL. It's always a hard choice.
SQL vs. NoSQL. It's always a hard choice.
Denis Reznik
 
Nonrelational Databases
Nonrelational DatabasesNonrelational Databases
Nonrelational Databases
Udi Bauman
 
NoSQL databases and managing big data
NoSQL databases and managing big dataNoSQL databases and managing big data
NoSQL databases and managing big data
Steven Francia
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
Rahul Jain
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
James Serra
 
Considerations for using NoSQL technology on your next IT project
Considerations for using NoSQL technology on your next IT projectConsiderations for using NoSQL technology on your next IT project
Considerations for using NoSQL technology on your next IT project
Akmal Chaudhri
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
Storage Systems For Scalable systems
Storage Systems For Scalable systemsStorage Systems For Scalable systems
Storage Systems For Scalable systems
elliando dias
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?
Venu Anuganti
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data Architecture
Venu Anuganti
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQL
Don Demcsak
 

Viewers also liked (20)

Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
cdmaxime
 
Nosql Now 2012: MongoDB Use Cases
Nosql Now 2012: MongoDB Use CasesNosql Now 2012: MongoDB Use Cases
Nosql Now 2012: MongoDB Use Cases
MongoDB
 
New Trends in Data Management in the Information Industries
New Trends in Data Management in the Information Industries New Trends in Data Management in the Information Industries
New Trends in Data Management in the Information Industries
Matt Turner
 
Nosql essentials
Nosql essentialsNosql essentials
Nosql essentials
Knoldus Inc.
 
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQLNoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
DATAVERSITY
 
Common Entrepreneur Mistakes
Common Entrepreneur MistakesCommon Entrepreneur Mistakes
Common Entrepreneur Mistakes
Bart Greenberg
 
Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)
Patrick Seaman
 
Building A Stable, Fundable Startup
Building A Stable, Fundable StartupBuilding A Stable, Fundable Startup
Building A Stable, Fundable Startup
portlandten
 
Kaplowitch equity dos and donts
Kaplowitch equity dos and dontsKaplowitch equity dos and donts
Kaplowitch equity dos and donts
BFBootcamp
 
Employee equity incentives
Employee equity incentivesEmployee equity incentives
Employee equity incentives
Bart Greenberg
 
Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?
The VisionLink Advisory Group
 
10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch
LawTrades
 
Succession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPsSuccession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPs
wifilawgroup
 
Negotiating as Consultant
Negotiating as ConsultantNegotiating as Consultant
Negotiating as Consultant
Jamie Lee
 
Converting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase PlansConverting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase Plans
Now Dentons
 
Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014
Pankaj Saharan
 
How to Divide the Pie? Dynamic Equity Share by Mike Moyer
How to Divide the Pie? Dynamic Equity Share by Mike Moyer How to Divide the Pie? Dynamic Equity Share by Mike Moyer
How to Divide the Pie? Dynamic Equity Share by Mike Moyer
Ed Kuiters
 
ESOPs LEGAL & PROCEDURAL ASPECTS
ESOPs LEGAL & PROCEDURAL ASPECTSESOPs LEGAL & PROCEDURAL ASPECTS
ESOPs LEGAL & PROCEDURAL ASPECTS
Corporate Professionals
 
Raising Your Seed Round Financing: Should You Use Convertible Notes or Prefe...
Raising Your Seed Round Financing:  Should You Use Convertible Notes or Prefe...Raising Your Seed Round Financing:  Should You Use Convertible Notes or Prefe...
Raising Your Seed Round Financing: Should You Use Convertible Notes or Prefe...
Bart Greenberg
 
Startup MBA 3.1 - Funding, equity, valuations
Startup MBA 3.1 - Funding, equity, valuationsStartup MBA 3.1 - Funding, equity, valuations
Startup MBA 3.1 - Funding, equity, valuations
Founder-Centric
 
Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
Apache Spark - Las Vegas Big Data Meetup Dec 3rd 2014
cdmaxime
 
Nosql Now 2012: MongoDB Use Cases
Nosql Now 2012: MongoDB Use CasesNosql Now 2012: MongoDB Use Cases
Nosql Now 2012: MongoDB Use Cases
MongoDB
 
New Trends in Data Management in the Information Industries
New Trends in Data Management in the Information Industries New Trends in Data Management in the Information Industries
New Trends in Data Management in the Information Industries
Matt Turner
 
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQLNoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
NoSQL Now! Webinar Series: Migrating Security Policies from SQL to NoSQL
DATAVERSITY
 
Common Entrepreneur Mistakes
Common Entrepreneur MistakesCommon Entrepreneur Mistakes
Common Entrepreneur Mistakes
Bart Greenberg
 
Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)Startups: Attracting and Retaining Talent (updated 3/6/13)
Startups: Attracting and Retaining Talent (updated 3/6/13)
Patrick Seaman
 
Building A Stable, Fundable Startup
Building A Stable, Fundable StartupBuilding A Stable, Fundable Startup
Building A Stable, Fundable Startup
portlandten
 
Kaplowitch equity dos and donts
Kaplowitch equity dos and dontsKaplowitch equity dos and donts
Kaplowitch equity dos and donts
BFBootcamp
 
Employee equity incentives
Employee equity incentivesEmployee equity incentives
Employee equity incentives
Bart Greenberg
 
Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?Guaranteed vs Incentive Pay - What's the Right Balance?
Guaranteed vs Incentive Pay - What's the Right Balance?
The VisionLink Advisory Group
 
10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch10 Movies Every Entrepreneur Should Watch
10 Movies Every Entrepreneur Should Watch
LawTrades
 
Succession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPsSuccession Planning using Equity Incentive Plan and ESOPs
Succession Planning using Equity Incentive Plan and ESOPs
wifilawgroup
 
Negotiating as Consultant
Negotiating as ConsultantNegotiating as Consultant
Negotiating as Consultant
Jamie Lee
 
Converting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase PlansConverting Employees to Owners: Employee Share Purchase Plans
Converting Employees to Owners: Employee Share Purchase Plans
Now Dentons
 
Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014Startup Equity - Startup summer camp, 2014
Startup Equity - Startup summer camp, 2014
Pankaj Saharan
 
How to Divide the Pie? Dynamic Equity Share by Mike Moyer
How to Divide the Pie? Dynamic Equity Share by Mike Moyer How to Divide the Pie? Dynamic Equity Share by Mike Moyer
How to Divide the Pie? Dynamic Equity Share by Mike Moyer
Ed Kuiters
 
Raising Your Seed Round Financing: Should You Use Convertible Notes or Prefe...
Raising Your Seed Round Financing:  Should You Use Convertible Notes or Prefe...Raising Your Seed Round Financing:  Should You Use Convertible Notes or Prefe...
Raising Your Seed Round Financing: Should You Use Convertible Notes or Prefe...
Bart Greenberg
 
Startup MBA 3.1 - Funding, equity, valuations
Startup MBA 3.1 - Funding, equity, valuationsStartup MBA 3.1 - Funding, equity, valuations
Startup MBA 3.1 - Funding, equity, valuations
Founder-Centric
 
Ad

Similar to To SQL or NoSQL, that is the question (20)

NoSQL Basics - A Quick Tour
NoSQL Basics - A Quick TourNoSQL Basics - A Quick Tour
NoSQL Basics - A Quick Tour
Bikram Sinha. MBA, PMP
 
Enterprise NoSQL: Silver Bullet or Poison Pill
Enterprise NoSQL: Silver Bullet or Poison PillEnterprise NoSQL: Silver Bullet or Poison Pill
Enterprise NoSQL: Silver Bullet or Poison Pill
Billy Newport
 
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdfNoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
SharmilaChidaravalli
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربي
Mohamed Galal
 
NO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloudNO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloud
Manu Cohen-Yashar
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
Pooyan Mehrparvar
 
NoSql Brownbag
NoSql BrownbagNoSql Brownbag
NoSql Brownbag
Sandeep Kumar
 
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
 
nosql.pptx
nosql.pptxnosql.pptx
nosql.pptx
Prakash Zodge
 
Introduction to asdfghjkln b vfgh n v
Introduction to asdfghjkln b vfgh n    vIntroduction to asdfghjkln b vfgh n    v
Introduction to asdfghjkln b vfgh n v
23mz02
 
cours database pour etudiant NoSQL (1).pptx
cours database pour etudiant NoSQL (1).pptxcours database pour etudiant NoSQL (1).pptx
cours database pour etudiant NoSQL (1).pptx
ssuser1fde9c
 
No SQL
No SQLNo SQL
No SQL
The lazy hoplite
 
NO SQL: What, Why, How
NO SQL: What, Why, HowNO SQL: What, Why, How
NO SQL: What, Why, How
Igor Moochnick
 
No sql databases
No sql databasesNo sql databases
No sql databases
Vamshi Vangapally
 
NoSQL
NoSQLNoSQL
NoSQL
kirandanduprolu
 
ch02models.pptx
ch02models.pptxch02models.pptx
ch02models.pptx
dreamboy6060
 
ch02models.pptx
ch02models.pptxch02models.pptx
ch02models.pptx
dreamboy6060
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
RithikRaj25
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
Adi Challa
 
Enterprise NoSQL: Silver Bullet or Poison Pill
Enterprise NoSQL: Silver Bullet or Poison PillEnterprise NoSQL: Silver Bullet or Poison Pill
Enterprise NoSQL: Silver Bullet or Poison Pill
Billy Newport
 
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdfNoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
NoSQL BIg Data Analytics Mongo DB and Cassandra .pdf
SharmilaChidaravalli
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
مقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربيمقدمة عن NoSQL بالعربي
مقدمة عن NoSQL بالعربي
Mohamed Galal
 
NO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloudNO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloud
Manu Cohen-Yashar
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
Pooyan Mehrparvar
 
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
 
Introduction to asdfghjkln b vfgh n v
Introduction to asdfghjkln b vfgh n    vIntroduction to asdfghjkln b vfgh n    v
Introduction to asdfghjkln b vfgh n v
23mz02
 
cours database pour etudiant NoSQL (1).pptx
cours database pour etudiant NoSQL (1).pptxcours database pour etudiant NoSQL (1).pptx
cours database pour etudiant NoSQL (1).pptx
ssuser1fde9c
 
NO SQL: What, Why, How
NO SQL: What, Why, HowNO SQL: What, Why, How
NO SQL: What, Why, How
Igor Moochnick
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
Adi Challa
 
Ad

Recently uploaded (20)

How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136
illuminati Agent uganda call+256776963507/0741506136
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your CompetitorsAI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
Contify
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your CompetitorsAI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
Contify
 

To SQL or NoSQL, that is the question

  • 1. To SQL or NoSQL? That is the question Krishnakumar S D E V C O N Kochi 28th March 2015
  • 2. History of Database Systems  1960’s : Hierarchical and Network (IMS, CODASYL etc.)  1970’s : Beginning of theory of relational model of database  1980’s : Rise of RDBMS and SQL  1990’s : Spreadsheets and MySQL; evolution of web  2000’s : Large enterprise & open source; Google & Amazon  2010’s : Emergence of NoSQL systems  2020’s : NewSQL? CAP theorem
  • 3. RDBMS  Strong foundation – Relational Model  Highly Structured – rows, columns, data types  Structured Query Language - standardized  ACID properties – all or nothing  Joins – new views from relationships
  • 4. RDBMS – Weakness  Joins – Not scalable  Transactions – Read & write operations will be slow because of locking resources  Fixed definitions – Difficult to work with highly variable data  Document integration – difficult create reports based on structured & unstructured data
  • 9. What drives to NoSQL? Velocity Agility Volume Variability
  • 10. Any existing solution? • Data partitioning • Replication • Clustering • Query distribution • Load balancing • Consistency/Syncing • Latency/Concurrency • Network bottle neck • Multiple data centers • Distributed backups • Node failures • Voting algorithms for failure detection • Administration of many systems • Monitoring RDBMS is scalable only if designed & administered correctly (Period)
  • 11. NoSQL! What is in a name? 1998 : • Carlo Strozzi developed a open-source relational database “Strozzi NoSQL” • Database stores tables as ASCII files; tuples as tab separated values • It doesn’t use SQL as query language – so given the name “NoSQL” • Instead it used UNIX shell script and pipeline to retrieve data Irony! A relational database is named as NoSQL! 2009 : • Johan Oskarsson organized a meetup of people developing open-source, distributed, non relational databases on June 11, 2009 • He wanted a simple twitter hash tag for the meetup; quick, memorable, & helps Google search • Eric Evans come up with the name NoSQL, for the single meetup
  • 12. NoSQL! What is in a name? • The name is negative • The name does not describe the purpose of their meet up • The name does not define the new database system • But; the name just satisfied the twitter tag! And caught on like wildfire What does it stands for! • “No to SQL”? Not exactly • “Not Only SQL”? Then what about SQL Server, Oracle etc.? The answer is “You don’t worry about what it stands for!
  • 13. NoSQL • The NoSQL is a movement • The NoSQL is an ecosystem for future database technology • NoSQL is an accidental neologism. There is no prescriptive definition Characteristics of NoSQL • Not using the relational model • Running well in clusters • Open-source • Built for 21st century web estates • Schemaless The most important result of NoSQL movement is; Polyglot Persistence Theorems Ahead!
  • 14. Brewer’s CAP theorem • In 2000, Eric Brewer presented the CAP principle as conjuncture • In 2002, Seth Gilbert & Nancy Lynch published a formal proof and rendered the principle as CAP theorem There are three essential system requirements necessary for the successful design, implementation, and deployment of applications in distributed computing 1. Consistency 2. Availability 3. Partition Tolerance In majority of instances, a distributed system can only guarantee any two, not all three
  • 15. Brewer’s CAP theorem Consistency refers to whether a system operates fully or not. Do all nodes within a cluster see all the data they are supposed to? This is the same idea presented in ACID Availability means just as it sounds. Is the given service or system available when requested? Does each request get a response outside of failure or success? Partition Tolerance represents the fact that a given system continues to operate even under circumstances of data loss or system failure. A single node failure should not cause the entire system to collapse. In large scale, distributed, non relational systems, they need availability and partition tolerance, so consistency suffers and ACID collapses
  • 16. Brewer’s CAP theorem Pick any two CA AP CP RDBMS’s SQL Server Oracle MySQL etc. Availability Each client can always read and write Consistency All clients always have he same view of data Partition Tolerance The system works well despite physical Network partitions Bigtable, MongoDB, BerkleyDB, MemcacheDB, Hbase etc Cassandra CouchDB Dynamo Voldemort
  • 17. BASE Basically Available : states that the system does guarantee the availability of the data as regards CAP Theorem; there will be a response to any request. But, that response could still be ‘failure’ to obtain the requested data or the data may be in an inconsistent or changing state Soft state : The state of the system could change over time, so even during times without input there may be changes going on due to ‘eventual consistency,’ thus the state of the system is always ‘soft.’ Eventual Consistency : The system will eventually become consistent once it stops receiving input. The data will propagate to everywhere it should sooner or later, but the system will continue to receive input and is not checking the consistency of every transaction before it moves onto the next one It’s OK to use stale data; it’s OK to give approximate answers.
  • 18. NoSQL Data Architecture Patterns Key-Value key value key value key value key value Column-Family Graph Document
  • 19. Key-Value Key-Value key value key value key value key value  Keys used to access opaque blobs of data  Values can contain any type of data (images, video) Pros: scalable, simple API (put, get, delete) Cons: no way to query based on the content of the value
  • 20. Column family Column-Family  Key includes a row, column family and column name  Store versioned blobs in one large table  Queries can be done on rows, column families and column names  Pros: Good scale out  Cons: Can not query blob content, row and column designs are critical
  • 21. Graph Store Graph  Data is stored in a series of nodes and properties  Queries are really graph traversals  Ideal when relationships between data is key:  e.g. social networks  Pros: fast network search, works with public linked data sets  Cons: Poor scalability when graphs don't fit into RAM, specialized query language
  • 22. Document Store Document  Data stored in nested hierarchies  Logical data remains stored together as a unit  Any item in the document can be queried  Pros: No object-relational mapping layer, ideal for search  Cons: Complex to implement, incompatible with SQL
  • 23. NoSQL & Functional Programming
  • 24. NoSQL & Functional Programming
  • 25. Polyglot Persistence Different database systems are designed to solve different problems Using single database engine for all the requirements leads to non- performant solutions The solution is polyglot persistence; a hybrid approach to data persistence
  • 26. NoSQL - Evolution © Natalino Busa
  • 27. References • Making Sense of NoSQL – Dan McCreary and Ann Kelly • NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence - Pramod J. Sadalage and Martin Fowler • Data Access for Highly-Scalable Solutions: Using SQL, NoSQL, and Polyglot Persistence - John Sharp, Douglas McMurtry, Andrew Oakley, Mani Subramanian, Hanzhong Zhang