SlideShare a Scribd company logo
1 of 19
Download to read offline
Agenda
What is NoSQL
Databases Overview
Aggregate Data Models
Distributions Models
Consistency
NWR
Purpose of this talk
Just to share some information
To spend time nicely
Facilitate the discussion
(questions are welcome )
Rise of NoSQL
Inspired by 2 papers:
Amazon Dynamo
Google BigTable
What is NoSQL
Not a well defined term
(just the name of one single meetup in
2009 at San Francisco)
So, what does it stand for?
It is better to pay attention what does it
mean rather than what does it stand for
Common characteristics of
NoSQL
● Don't use SQL as a query language
(provide it is own query mechanism)
● Non relational
● Open-source projects
● Run on clusters
● Developed in 21st
century
● Schemaless
Schemaless
While being schemaless, there is still
implicit schema in the application code
Why do you use NoSQL
To operate on big data on multiple
machines running across the cluster
Increase developer productivity
(even if there is no demand for big data)
What is wrong with traditional
RDBMS
● Nothing really, they will not disappear
(who knows ;)
● Well defined tools
(even the whole profession is behind
DBA)
● There is no black or white choice, NoSQL
and RDBMS will continue to work closely
together, i.e. the rise of Polyglot
Persistence
But, RDBMS is not perfect
Impedance mismatch
Running on cluster is a challenge
NoSQL World (major ones)
Document Oriented
Key-Value
Column-Family
Graph Databases
Data Model
Aggregate Oriented VS Relational
- Access by key
- Make it easier to manage data storage over
clusters
- Usually you adopt you aggregate/data model to
the query pattern your application has
Aggregate – is the collection of related objects that we wish to treat as a unit
ACID
NoSQL has ACID, but in scope of one
aggregate
(we can do atomic manipulate of a single
aggregate at a time)
Graph databases actually have full support of ACID
Distribution Models
● Single Sever (no distribution at all)
● Sharding (can be combined with replication)
(shard key – range based or hash based)
● Master-Slave Replication (“read” scalability)
(writes to M, reads can be done from S)
(M – single point of failure)
● Peer-to-Peer Replication (common to CF)
(consistency issue)
(Eventual)Consistency
Actual trade off is between latency and consitency
NWR
● N – number of nodes to replicate to
(replication factor, number of copies in
the cluster)
● W – number of nodes to write before write
succeeded successful
● R – number of nodes to read from before
read succeeded successful
NWR
● W+R <= N – eventual consistency
(eventually all the nodes in the cluster will get
the data)
● W = N, R = 1 – consistency by writes
(what RDBMS does)
● W = 1, R = N – consistency by reads
(conflicts must be resolved somehow)
● W + R > N – consistency by quorum
Quorum (W+R > N)
Read from more than half and
write to more than half
(QUORUM = N/2 + 1)
Books

More Related Content

Viewers also liked

Research into TV Listing Guides
Research into TV Listing GuidesResearch into TV Listing Guides
Research into TV Listing Guides
Harriet Trayling
 
ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2
Sari Suharyo
 
JavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJSJavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJS
Aliaksandr Kazlou
 
British africans
British africansBritish africans
British africans
darakolajo
 
Poke One Mile Brief
Poke One Mile BriefPoke One Mile Brief
Poke One Mile Brief
Kez Haggarty
 
شوق شكرا على كل المبادرات
شوق شكرا على كل المبادراتشوق شكرا على كل المبادرات
شوق شكرا على كل المبادرات
naila600
 
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
Narayanasamy Prasannam
 
Todays message collection english 5th part
Todays message collection english 5th partTodays message collection english 5th part
Todays message collection english 5th part
Narayanasamy Prasannam
 
Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2
Sari Suharyo
 
14.02.14 exegesis epiphany 6
14.02.14 exegesis   epiphany 614.02.14 exegesis   epiphany 6
14.02.14 exegesis epiphany 6
morrisenglish
 

Viewers also liked (18)

Research into TV Listing Guides
Research into TV Listing GuidesResearch into TV Listing Guides
Research into TV Listing Guides
 
ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2
 
Konsep kurikulum 2013
Konsep kurikulum  2013 Konsep kurikulum  2013
Konsep kurikulum 2013
 
Binder1
Binder1Binder1
Binder1
 
JavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJSJavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJS
 
Doritos
DoritosDoritos
Doritos
 
British africans
British africansBritish africans
British africans
 
Today's message collections 4th part
Today's message collections 4th partToday's message collections 4th part
Today's message collections 4th part
 
CHILD PROTECTION RAPID ASSESSMENT REPORT -ANAMBRA STATE, NIGERIA.
CHILD PROTECTION RAPID ASSESSMENT REPORT -ANAMBRA STATE, NIGERIA.CHILD PROTECTION RAPID ASSESSMENT REPORT -ANAMBRA STATE, NIGERIA.
CHILD PROTECTION RAPID ASSESSMENT REPORT -ANAMBRA STATE, NIGERIA.
 
Ruby on embedded devices rug::b Aug 2014
Ruby on embedded devices rug::b Aug 2014Ruby on embedded devices rug::b Aug 2014
Ruby on embedded devices rug::b Aug 2014
 
Poke One Mile Brief
Poke One Mile BriefPoke One Mile Brief
Poke One Mile Brief
 
شوق شكرا على كل المبادرات
شوق شكرا على كل المبادراتشوق شكرا على كل المبادرات
شوق شكرا على كل المبادرات
 
24 secrets of old age in tamil
24 secrets of old age in tamil24 secrets of old age in tamil
24 secrets of old age in tamil
 
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
 
The Role of Information Communication Technology & Geoinformatics in Vector C...
The Role of Information Communication Technology & Geoinformatics in Vector C...The Role of Information Communication Technology & Geoinformatics in Vector C...
The Role of Information Communication Technology & Geoinformatics in Vector C...
 
Todays message collection english 5th part
Todays message collection english 5th partTodays message collection english 5th part
Todays message collection english 5th part
 
Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2
 
14.02.14 exegesis epiphany 6
14.02.14 exegesis   epiphany 614.02.14 exegesis   epiphany 6
14.02.14 exegesis epiphany 6
 

Similar to NoSQL Talk at eBuddy

NO SQL: What, Why, How
NO SQL: What, Why, HowNO SQL: What, Why, How
NO SQL: What, Why, How
Igor Moochnick
 

Similar to NoSQL Talk at eBuddy (20)

NO SQL: What, Why, How
NO SQL: What, Why, HowNO SQL: What, Why, How
NO SQL: What, Why, How
 
Oracle's Take On NoSQL
Oracle's Take On NoSQLOracle's Take On NoSQL
Oracle's Take On NoSQL
 
Nosql seminar
Nosql seminarNosql seminar
Nosql seminar
 
Sql vs NoSQL-Presentation
 Sql vs NoSQL-Presentation Sql vs NoSQL-Presentation
Sql vs NoSQL-Presentation
 
No SQL Technologies
No SQL TechnologiesNo SQL Technologies
No SQL Technologies
 
No sql
No sqlNo sql
No sql
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache Cassandra
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
 
Nosql Introduction
Nosql IntroductionNosql Introduction
Nosql Introduction
 
NoSql Databases
NoSql DatabasesNoSql Databases
NoSql Databases
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.
 
Scala Days Highlights | BoldRadius
Scala Days Highlights | BoldRadiusScala Days Highlights | BoldRadius
Scala Days Highlights | BoldRadius
 
NoSQL
NoSQLNoSQL
NoSQL
 
NoSQL and MongoDB
NoSQL and MongoDBNoSQL and MongoDB
NoSQL and MongoDB
 
NoSQL
NoSQLNoSQL
NoSQL
 
No SQL
No SQLNo SQL
No SQL
 
How big data moved the needle from monolithic SQL RDBMS to distributed NoSQL
How big data moved the needle from monolithic SQL RDBMS to distributed NoSQLHow big data moved the needle from monolithic SQL RDBMS to distributed NoSQL
How big data moved the needle from monolithic SQL RDBMS to distributed NoSQL
 
Know what is NOSQL
Know what is NOSQL Know what is NOSQL
Know what is NOSQL
 
No sql bigdata and postgresql
No sql bigdata and postgresqlNo sql bigdata and postgresql
No sql bigdata and postgresql
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache Cassandra
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

NoSQL Talk at eBuddy

  • 1. Agenda What is NoSQL Databases Overview Aggregate Data Models Distributions Models Consistency NWR
  • 2. Purpose of this talk Just to share some information To spend time nicely Facilitate the discussion (questions are welcome )
  • 3. Rise of NoSQL Inspired by 2 papers: Amazon Dynamo Google BigTable
  • 4. What is NoSQL Not a well defined term (just the name of one single meetup in 2009 at San Francisco)
  • 5. So, what does it stand for? It is better to pay attention what does it mean rather than what does it stand for
  • 6. Common characteristics of NoSQL ● Don't use SQL as a query language (provide it is own query mechanism) ● Non relational ● Open-source projects ● Run on clusters ● Developed in 21st century ● Schemaless
  • 7. Schemaless While being schemaless, there is still implicit schema in the application code
  • 8. Why do you use NoSQL To operate on big data on multiple machines running across the cluster Increase developer productivity (even if there is no demand for big data)
  • 9. What is wrong with traditional RDBMS ● Nothing really, they will not disappear (who knows ;) ● Well defined tools (even the whole profession is behind DBA) ● There is no black or white choice, NoSQL and RDBMS will continue to work closely together, i.e. the rise of Polyglot Persistence
  • 10. But, RDBMS is not perfect Impedance mismatch Running on cluster is a challenge
  • 11. NoSQL World (major ones) Document Oriented Key-Value Column-Family Graph Databases
  • 12. Data Model Aggregate Oriented VS Relational - Access by key - Make it easier to manage data storage over clusters - Usually you adopt you aggregate/data model to the query pattern your application has Aggregate – is the collection of related objects that we wish to treat as a unit
  • 13. ACID NoSQL has ACID, but in scope of one aggregate (we can do atomic manipulate of a single aggregate at a time) Graph databases actually have full support of ACID
  • 14. Distribution Models ● Single Sever (no distribution at all) ● Sharding (can be combined with replication) (shard key – range based or hash based) ● Master-Slave Replication (“read” scalability) (writes to M, reads can be done from S) (M – single point of failure) ● Peer-to-Peer Replication (common to CF) (consistency issue)
  • 15. (Eventual)Consistency Actual trade off is between latency and consitency
  • 16. NWR ● N – number of nodes to replicate to (replication factor, number of copies in the cluster) ● W – number of nodes to write before write succeeded successful ● R – number of nodes to read from before read succeeded successful
  • 17. NWR ● W+R <= N – eventual consistency (eventually all the nodes in the cluster will get the data) ● W = N, R = 1 – consistency by writes (what RDBMS does) ● W = 1, R = N – consistency by reads (conflicts must be resolved somehow) ● W + R > N – consistency by quorum
  • 18. Quorum (W+R > N) Read from more than half and write to more than half (QUORUM = N/2 + 1)
  • 19. Books