SlideShare uma empresa Scribd logo
1 de 18
SQL vs NOSQL
friends or foes



                  Pedro Gomes & Miguel Araújo
                    8 February - Braga Geek Nights
SQL
“select maturity, experience, consistency from real_world where age > 40;”



• Relational Model born in 1970, defined by Codd

• Data model with simple interface for the common user

• Efficient storage of data

• Dozens of mature solutions (most popular commercial and open
  source databases currently in use are based on the relational
  model)

• Standard/Unified model
NOSQL
“select fun, profit from real_world where relational=false;”



• Movement constituted by several types of database engines that
  break a 40 year monopoly

• With origins that can be tracked into the 60s, this movement gained
  visibility after 2000.

• Defined by a controversial term this movement gained traction thanks
  to the web giants Google, Amazon, Yahoo and others

• Between closed and open source solutions, we can such names as
  Google BigTable, Facebook Cassandra or LinkedIn Voldemort
SQL
Pros


• ACID transactions for OLTP

• Maturity and stability

• Years of expertise and developing

• SQL language

• Ad-hoc queries. If you need to answer real-time questions about your
  data that you can’t predict in advance

• Data integrity. NOSQL systems rely on applications to enforce data
  integrity where SQL uses a declarative approach
SQL
Cons


• Expensive and/or unnatural scalability

• Used as a solution to all problems it cans lead to low performance
  (10x slower)

• Static schemes not natural in a more and more dynamical world

• The strict consistency can be unnatural under failure, on high latency
  communications (e.g. between Data centers) and on disconnected
  devices.
NOSQL
Pros


• Dynamic schemas

• Adaptable consistency models

• Architectures built for scale and availability

• Friendly web APIs

• Easier maintainability and administration
NOSQL
Cons


• Beta, alpha, 0.X version...

• No SQL

• User coded consistence, and simple operations can sometimes be
  verbose

• They sometimes lack monitoring and integration tools

• Difficult to master
SQL
Used where


• Stack Overflow

• Google

• Facebook

• Twitter

• Amazon

• eBay
NOSQL
Used where


• Facebook

• Twitter

• Google

• Amazon

• Mozilla

• Netflix
Forget SQL vs NOSQL!
What should I use?
For your personal website or small project



‣ Doesn’t matter!


      Use MongoDB or other document store if you don’t like SQL

     Use MySQL or PostgreSQL if you are more familiar with such
    RDBMS

      Try something new
What should I use?
For electronic commerce or another OLTP scenarios



‣ Use a classic RDBMS of your choice:

     When you need to scale use sharding, replication or
    memcache

     Other valid options offer ACID transactions

       In memory VoltDB

       Non relational options: Berkeley DB, Infinispan

       Object oriented: ZODB, Db40
What should I use?
For data mining and data warehousing



‣ Use a column oriented database


     It can lead to a performance gain of 10X

     Zynga currently uses Vertica

     Other options include MonetDB and LucidDB
What should I use?
For large scale data with a strong consistency model



‣ Use HBase


      The main contributors to the project include Yahoo, Facebook,
    Stubleupon and Cloudera

      Great for HDFS/Hadoop integration
What should I use?
For large scale real time analytics



‣ Use a Dynamo style database



     With a Key/Value model: Riak

     With a BigTable model: Cassandra
Different problems...
Different solutions - Wide your horizons




      Graph databases

        FlockBD

        FlockDB

     Hacker’s database: Redis
Questions?


  •
References
• http://highscalability.com/blog/2010/12/6/what-the-heck-are-you-actually-using-nosql-for.html


• http://databasecolumn.vertica.com/database-innovation/mapreduce-a-major-step-backwards/


• http://blog.mozilla.com/data/2010/05/18/riak-and-cassandra-and-hbase-oh-my/


• http://shouldibeworriedaboutscaling.info/


• https://docs.google.com/present/view?id=0Acbfb57m7svVZGRicDd2ZjJfMTFocG10andmeA&hl=en


• http://lwn.net/Articles/376626/


• http://techblog.netflix.com/2011/01/nosql-at-netflix.html


• http://nosql.mypopescu.com/


• http://nosql-databases.org/


•   One Size Fits All? – Part 2: Benchmarking Results (Stonebraker, Çetintemel, et all

Mais conteúdo relacionado

Mais procurados

Ds03 data analysis
Ds03   data analysisDs03   data analysis
Ds03 data analysisDotNetCampus
 
MongoDB introduction at Google Cloud next Algiers
MongoDB introduction at Google Cloud next AlgiersMongoDB introduction at Google Cloud next Algiers
MongoDB introduction at Google Cloud next AlgiersSylia Baraka
 
Relational Database and mysql insight
Relational Database and mysql insightRelational Database and mysql insight
Relational Database and mysql insightmentallog
 
CSS Frameworks for Rapid Site Designs
CSS Frameworks for Rapid Site DesignsCSS Frameworks for Rapid Site Designs
CSS Frameworks for Rapid Site DesignsBen MacNeill
 
Иван Глушков (Echo)
Иван Глушков (Echo)Иван Глушков (Echo)
Иван Глушков (Echo)Ontico
 
Dazzing Data Depiction with D3.JS
Dazzing Data Depiction with D3.JSDazzing Data Depiction with D3.JS
Dazzing Data Depiction with D3.JSEric Carlisle
 
ДмитрийРадченко, "Brief introduction to dundas"
ДмитрийРадченко, "Brief introduction to dundas"ДмитрийРадченко, "Brief introduction to dundas"
ДмитрийРадченко, "Brief introduction to dundas"EPAM Systems
 
Datascience lab 2017 odessa kappa architecture 2.0
Datascience lab 2017 odessa   kappa architecture 2.0Datascience lab 2017 odessa   kappa architecture 2.0
Datascience lab 2017 odessa kappa architecture 2.0Juantomás García Molina
 
H2O World - Solving Customer Churn with Machine Learning - Julian Bharadwaj
H2O World - Solving Customer Churn with Machine Learning - Julian BharadwajH2O World - Solving Customer Churn with Machine Learning - Julian Bharadwaj
H2O World - Solving Customer Churn with Machine Learning - Julian BharadwajSri Ambati
 
Codemotion madrid 2017 Arquitectura kappa 2.0
Codemotion madrid 2017  Arquitectura kappa 2.0Codemotion madrid 2017  Arquitectura kappa 2.0
Codemotion madrid 2017 Arquitectura kappa 2.0Juantomás García Molina
 
Word Press at Scale - WordCamp Minneapolis
Word Press at Scale - WordCamp MinneapolisWord Press at Scale - WordCamp Minneapolis
Word Press at Scale - WordCamp MinneapolisDrew Gorton
 
Azure dboptions maniacs_nerdzao2802
Azure dboptions maniacs_nerdzao2802Azure dboptions maniacs_nerdzao2802
Azure dboptions maniacs_nerdzao2802Marcelo Adade
 
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...DEVCON
 
Sitecore at the University of Alberta
Sitecore at the University of AlbertaSitecore at the University of Alberta
Sitecore at the University of AlbertaTim Schneider
 
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...Big Data Spain
 

Mais procurados (20)

Ds03 data analysis
Ds03   data analysisDs03   data analysis
Ds03 data analysis
 
MongoDB introduction at Google Cloud next Algiers
MongoDB introduction at Google Cloud next AlgiersMongoDB introduction at Google Cloud next Algiers
MongoDB introduction at Google Cloud next Algiers
 
Relational Database and mysql insight
Relational Database and mysql insightRelational Database and mysql insight
Relational Database and mysql insight
 
Nosql
NosqlNosql
Nosql
 
CSS Frameworks for Rapid Site Designs
CSS Frameworks for Rapid Site DesignsCSS Frameworks for Rapid Site Designs
CSS Frameworks for Rapid Site Designs
 
Иван Глушков (Echo)
Иван Глушков (Echo)Иван Глушков (Echo)
Иван Глушков (Echo)
 
Data migration services
Data migration servicesData migration services
Data migration services
 
Dazzing Data Depiction with D3.JS
Dazzing Data Depiction with D3.JSDazzing Data Depiction with D3.JS
Dazzing Data Depiction with D3.JS
 
05 entity framework
05 entity framework05 entity framework
05 entity framework
 
ДмитрийРадченко, "Brief introduction to dundas"
ДмитрийРадченко, "Brief introduction to dundas"ДмитрийРадченко, "Brief introduction to dundas"
ДмитрийРадченко, "Brief introduction to dundas"
 
Datascience lab 2017 odessa kappa architecture 2.0
Datascience lab 2017 odessa   kappa architecture 2.0Datascience lab 2017 odessa   kappa architecture 2.0
Datascience lab 2017 odessa kappa architecture 2.0
 
H2O World - Solving Customer Churn with Machine Learning - Julian Bharadwaj
H2O World - Solving Customer Churn with Machine Learning - Julian BharadwajH2O World - Solving Customer Churn with Machine Learning - Julian Bharadwaj
H2O World - Solving Customer Churn with Machine Learning - Julian Bharadwaj
 
noSQL choices
noSQL choicesnoSQL choices
noSQL choices
 
Codemotion madrid 2017 Arquitectura kappa 2.0
Codemotion madrid 2017  Arquitectura kappa 2.0Codemotion madrid 2017  Arquitectura kappa 2.0
Codemotion madrid 2017 Arquitectura kappa 2.0
 
Word Press at Scale - WordCamp Minneapolis
Word Press at Scale - WordCamp MinneapolisWord Press at Scale - WordCamp Minneapolis
Word Press at Scale - WordCamp Minneapolis
 
Azure dboptions maniacs_nerdzao2802
Azure dboptions maniacs_nerdzao2802Azure dboptions maniacs_nerdzao2802
Azure dboptions maniacs_nerdzao2802
 
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matia...
 
Sitecore at the University of Alberta
Sitecore at the University of AlbertaSitecore at the University of Alberta
Sitecore at the University of Alberta
 
A peek into the future
A peek into the futureA peek into the future
A peek into the future
 
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...
Relational is the new Big Data by Miguel Ángel Fajardo and Daniel Dominguez a...
 

Destaque

Proxysql use case scenarios plam 2016
Proxysql use case scenarios    plam 2016Proxysql use case scenarios    plam 2016
Proxysql use case scenarios plam 2016Alkin Tezuysal
 
Mix ‘n’ Match Async and Group Replication for Advanced Replication Setups
Mix ‘n’ Match Async and Group Replication for Advanced Replication SetupsMix ‘n’ Match Async and Group Replication for Advanced Replication Setups
Mix ‘n’ Match Async and Group Replication for Advanced Replication SetupsPedro Gomes
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schemaMark Leith
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep diveMark Leith
 
Instrumenting plugins for Performance Schema
Instrumenting plugins for Performance SchemaInstrumenting plugins for Performance Schema
Instrumenting plugins for Performance SchemaMark Leith
 
Proxysql use case scenarios fosdem17
Proxysql use case scenarios    fosdem17Proxysql use case scenarios    fosdem17
Proxysql use case scenarios fosdem17Alkin Tezuysal
 
Using Optimizer Hints to Improve MySQL Query Performance
Using Optimizer Hints to Improve MySQL Query PerformanceUsing Optimizer Hints to Improve MySQL Query Performance
Using Optimizer Hints to Improve MySQL Query Performanceoysteing
 

Destaque (8)

Proxysql use case scenarios plam 2016
Proxysql use case scenarios    plam 2016Proxysql use case scenarios    plam 2016
Proxysql use case scenarios plam 2016
 
Ansible MySQL MHA
Ansible MySQL MHAAnsible MySQL MHA
Ansible MySQL MHA
 
Mix ‘n’ Match Async and Group Replication for Advanced Replication Setups
Mix ‘n’ Match Async and Group Replication for Advanced Replication SetupsMix ‘n’ Match Async and Group Replication for Advanced Replication Setups
Mix ‘n’ Match Async and Group Replication for Advanced Replication Setups
 
Performance schema and sys schema
Performance schema and sys schemaPerformance schema and sys schema
Performance schema and sys schema
 
MySQL sys schema deep dive
MySQL sys schema deep diveMySQL sys schema deep dive
MySQL sys schema deep dive
 
Instrumenting plugins for Performance Schema
Instrumenting plugins for Performance SchemaInstrumenting plugins for Performance Schema
Instrumenting plugins for Performance Schema
 
Proxysql use case scenarios fosdem17
Proxysql use case scenarios    fosdem17Proxysql use case scenarios    fosdem17
Proxysql use case scenarios fosdem17
 
Using Optimizer Hints to Improve MySQL Query Performance
Using Optimizer Hints to Improve MySQL Query PerformanceUsing Optimizer Hints to Improve MySQL Query Performance
Using Optimizer Hints to Improve MySQL Query Performance
 

Semelhante a SLQ vs NOSQL - friends or foes

Hadoop and SQL: Delivery Analytics Across the Organization
Hadoop and SQL:  Delivery Analytics Across the OrganizationHadoop and SQL:  Delivery Analytics Across the Organization
Hadoop and SQL: Delivery Analytics Across the OrganizationSeeling Cheung
 
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...Rittman Analytics
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabasesAdi Challa
 
No SQL- The Future Of Data Storage
No SQL- The Future Of Data StorageNo SQL- The Future Of Data Storage
No SQL- The Future Of Data StorageBethmi Gunasekara
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureVenu Anuganti
 
Big Data! Great! Now What? #SymfonyCon 2014
Big Data! Great! Now What? #SymfonyCon 2014Big Data! Great! Now What? #SymfonyCon 2014
Big Data! Great! Now What? #SymfonyCon 2014Ricard Clau
 
Big Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersBig Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersAdaryl "Bob" Wakefield, MBA
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databasesJames Serra
 
Big Data technology Landscape
Big Data technology LandscapeBig Data technology Landscape
Big Data technology LandscapeShivanandaVSeeri
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQLbalwinders
 
Transform from database professional to a Big Data architect
Transform from database professional to a Big Data architectTransform from database professional to a Big Data architect
Transform from database professional to a Big Data architectSaurabh K. Gupta
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?Venu Anuganti
 
Big Data Strategy for the Relational World
Big Data Strategy for the Relational World Big Data Strategy for the Relational World
Big Data Strategy for the Relational World Andrew Brust
 
Introduction to no sql database
Introduction to no sql databaseIntroduction to no sql database
Introduction to no sql databaseHeman Hosainpana
 

Semelhante a SLQ vs NOSQL - friends or foes (20)

50 Shades of SQL
50 Shades of SQL50 Shades of SQL
50 Shades of SQL
 
Hadoop and SQL: Delivery Analytics Across the Organization
Hadoop and SQL:  Delivery Analytics Across the OrganizationHadoop and SQL:  Delivery Analytics Across the Organization
Hadoop and SQL: Delivery Analytics Across the Organization
 
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
 
Architecting Your First Big Data Implementation
Architecting Your First Big Data ImplementationArchitecting Your First Big Data Implementation
Architecting Your First Big Data Implementation
 
No SQL- The Future Of Data Storage
No SQL- The Future Of Data StorageNo SQL- The Future Of Data Storage
No SQL- The Future Of Data Storage
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data Architecture
 
Big Data! Great! Now What? #SymfonyCon 2014
Big Data! Great! Now What? #SymfonyCon 2014Big Data! Great! Now What? #SymfonyCon 2014
Big Data! Great! Now What? #SymfonyCon 2014
 
Intro to Big Data
Intro to Big DataIntro to Big Data
Intro to Big Data
 
NoSQL-Overview
NoSQL-OverviewNoSQL-Overview
NoSQL-Overview
 
Big Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersBig Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R Users
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Big Data technology Landscape
Big Data technology LandscapeBig Data technology Landscape
Big Data technology Landscape
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Say Yes To No SQL
Say Yes To No SQLSay Yes To No SQL
Say Yes To No SQL
 
Transform from database professional to a Big Data architect
Transform from database professional to a Big Data architectTransform from database professional to a Big Data architect
Transform from database professional to a Big Data architect
 
Apache drill
Apache drillApache drill
Apache drill
 
SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?SQL/NoSQL How to choose ?
SQL/NoSQL How to choose ?
 
Big Data Strategy for the Relational World
Big Data Strategy for the Relational World Big Data Strategy for the Relational World
Big Data Strategy for the Relational World
 
Introduction to no sql database
Introduction to no sql databaseIntroduction to no sql database
Introduction to no sql database
 

Último

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Último (20)

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

SLQ vs NOSQL - friends or foes

  • 1. SQL vs NOSQL friends or foes Pedro Gomes & Miguel Araújo 8 February - Braga Geek Nights
  • 2. SQL “select maturity, experience, consistency from real_world where age > 40;” • Relational Model born in 1970, defined by Codd • Data model with simple interface for the common user • Efficient storage of data • Dozens of mature solutions (most popular commercial and open source databases currently in use are based on the relational model) • Standard/Unified model
  • 3. NOSQL “select fun, profit from real_world where relational=false;” • Movement constituted by several types of database engines that break a 40 year monopoly • With origins that can be tracked into the 60s, this movement gained visibility after 2000. • Defined by a controversial term this movement gained traction thanks to the web giants Google, Amazon, Yahoo and others • Between closed and open source solutions, we can such names as Google BigTable, Facebook Cassandra or LinkedIn Voldemort
  • 4. SQL Pros • ACID transactions for OLTP • Maturity and stability • Years of expertise and developing • SQL language • Ad-hoc queries. If you need to answer real-time questions about your data that you can’t predict in advance • Data integrity. NOSQL systems rely on applications to enforce data integrity where SQL uses a declarative approach
  • 5. SQL Cons • Expensive and/or unnatural scalability • Used as a solution to all problems it cans lead to low performance (10x slower) • Static schemes not natural in a more and more dynamical world • The strict consistency can be unnatural under failure, on high latency communications (e.g. between Data centers) and on disconnected devices.
  • 6. NOSQL Pros • Dynamic schemas • Adaptable consistency models • Architectures built for scale and availability • Friendly web APIs • Easier maintainability and administration
  • 7. NOSQL Cons • Beta, alpha, 0.X version... • No SQL • User coded consistence, and simple operations can sometimes be verbose • They sometimes lack monitoring and integration tools • Difficult to master
  • 8. SQL Used where • Stack Overflow • Google • Facebook • Twitter • Amazon • eBay
  • 9. NOSQL Used where • Facebook • Twitter • Google • Amazon • Mozilla • Netflix
  • 10. Forget SQL vs NOSQL!
  • 11. What should I use? For your personal website or small project ‣ Doesn’t matter! Use MongoDB or other document store if you don’t like SQL Use MySQL or PostgreSQL if you are more familiar with such RDBMS Try something new
  • 12. What should I use? For electronic commerce or another OLTP scenarios ‣ Use a classic RDBMS of your choice: When you need to scale use sharding, replication or memcache Other valid options offer ACID transactions In memory VoltDB Non relational options: Berkeley DB, Infinispan Object oriented: ZODB, Db40
  • 13. What should I use? For data mining and data warehousing ‣ Use a column oriented database It can lead to a performance gain of 10X Zynga currently uses Vertica Other options include MonetDB and LucidDB
  • 14. What should I use? For large scale data with a strong consistency model ‣ Use HBase The main contributors to the project include Yahoo, Facebook, Stubleupon and Cloudera Great for HDFS/Hadoop integration
  • 15. What should I use? For large scale real time analytics ‣ Use a Dynamo style database With a Key/Value model: Riak With a BigTable model: Cassandra
  • 16. Different problems... Different solutions - Wide your horizons Graph databases FlockBD FlockDB Hacker’s database: Redis
  • 18. References • http://highscalability.com/blog/2010/12/6/what-the-heck-are-you-actually-using-nosql-for.html • http://databasecolumn.vertica.com/database-innovation/mapreduce-a-major-step-backwards/ • http://blog.mozilla.com/data/2010/05/18/riak-and-cassandra-and-hbase-oh-my/ • http://shouldibeworriedaboutscaling.info/ • https://docs.google.com/present/view?id=0Acbfb57m7svVZGRicDd2ZjJfMTFocG10andmeA&hl=en • http://lwn.net/Articles/376626/ • http://techblog.netflix.com/2011/01/nosql-at-netflix.html • http://nosql.mypopescu.com/ • http://nosql-databases.org/ • One Size Fits All? – Part 2: Benchmarking Results (Stonebraker, Çetintemel, et all

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n