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 GuidesHarriet Trayling
 
ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2ประมวลรายวิชา course syllabus2
ประมวลรายวิชา course syllabus2Sari Suharyo
 
Konsep kurikulum 2013
Konsep kurikulum  2013 Konsep kurikulum  2013
Konsep kurikulum 2013 Amsori Saari
 
JavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJSJavaScript frameworks overview + AngularJS
JavaScript frameworks overview + AngularJSAliaksandr Kazlou
 
British africans
British africansBritish africans
British africansdarakolajo
 
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.ANUMBA JOSEPH UCHE
 
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 2014Eno Thierbach
 
Poke One Mile Brief
Poke One Mile BriefPoke One Mile Brief
Poke One Mile BriefKez Haggarty
 
شوق شكرا على كل المبادرات
شوق شكرا على كل المبادراتشوق شكرا على كل المبادرات
شوق شكرا على كل المبادراتnaila600
 
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்
தமிழ் குறுஞ்செய்திகளின் தொகுப்பு 16ம் பாகம்Narayanasamy Prasannam
 
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...ANUMBA JOSEPH UCHE
 
Todays message collection english 5th part
Todays message collection english 5th partTodays message collection english 5th part
Todays message collection english 5th partNarayanasamy Prasannam
 
Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2Copy of ประมวลรายวิชา course syllabus2
Copy of ประมวลรายวิชา course syllabus2Sari Suharyo
 
14.02.14 exegesis epiphany 6
14.02.14 exegesis   epiphany 614.02.14 exegesis   epiphany 6
14.02.14 exegesis epiphany 6morrisenglish
 

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, HowIgor Moochnick
 
Sql vs NoSQL-Presentation
 Sql vs NoSQL-Presentation Sql vs NoSQL-Presentation
Sql vs NoSQL-PresentationShubham Tomar
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache CassandraRobert Stupp
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group ReplicationUlf Wendel
 
Nosql Introduction
Nosql IntroductionNosql Introduction
Nosql IntroductionAnju Singh
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.Navdeep Charan
 
Scala Days Highlights | BoldRadius
Scala Days Highlights | BoldRadiusScala Days Highlights | BoldRadius
Scala Days Highlights | BoldRadiusBoldRadius Solutions
 
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 NoSQLSayyaparaju Sunil
 
No sql bigdata and postgresql
No sql bigdata and postgresqlNo sql bigdata and postgresql
No sql bigdata and postgresqlZaid Shabbir
 
NOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraNOSQL Database: Apache Cassandra
NOSQL Database: Apache CassandraFolio3 Software
 

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

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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 Scriptwesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
[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.pdfhans926745
 
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...Martijn de Jong
 
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 Processorsdebabhi2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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...Miguel Araújo
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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 organizationRadu Cotescu
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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 educationjfdjdjcjdnsjd
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Recently uploaded (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.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
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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...
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

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