SlideShare una empresa de Scribd logo
1 de 22
Descargar para leer sin conexión
NoSQL

Concepts live
Astrid Ritscher
29.1.2014
Buchhandlung Lehmanns
Astrid Ritscher
Principal Consultant
astrid.ritscher@acando.de
Acando GmbH
Business Area Nord
Millerntorplatz 1
20359 Hamburg
Germany
© Acando GmbH
Agenda
Persistence

SQL

Couchbase

Document
oriented
Key value

ArangoDB

Performance

Graph
oriented

NoSQL

MongoDB

Flexible
Schema

Cassandra

Scalability

Neo4j
© Acando GmbH
NoSQL
.. is (not only) an answer
to Big Data with focus on
performance and
scalability.
© Acando GmbH
Document oriented
albums
tracks

Documents
© Acando GmbH
Document oriented
track
_id : 435
album : „Neon Bible“
artist : „Arcade Fire“
track count : 11
track number : 2
name : „Keep The Car Running“
genre : „Rock“

© Acando GmbH
• Document oriented
• General Purpose
• Open Source
• Community Driven
• Commodity Hardware
© Acando GmbH
MongoDB Customers

© Acando GmbH
Schema
• Collection
• Document
• JSON/BSON
© Acando GmbH

{
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
}

"_id" : 123,
"Album" : "Neon Bible",
"Album Artist" : "Arcade Fire",
"Disc Count" : 1,
"Track Count" : 11,
"Tracks" : [
! {
! ! "_id" : 733,
! ! "Name" : "Black Mirror",
! ! "Composer" : "Richard Reed Parry",
! ! "Genre" : "Rock"
! },
! {
! ! "_id" : 735,
! ! "Name" : "Keep The Car Running",
! ! "Composer" : "Arcade Fire",
! ! "Genre" : "Rock"
! }, ...
]
Schema vs. Relational
album

album

_id

id
album

album

album artist

album artist

track count

track count
tracks

track

track

_id

_id

id

id

name

name

name

name

composer

composer

composer

composer

genre

genre

genre

album_id

album_id

© Acando GmbH
Live
start mongod,
show insert, find, update
and delete

© Acando GmbH
Aggregation
SELECT genre, count(genre) FROM tracks
GROUP BY genre
ORDER BY count(genre) DESC
LIMIT 5

> db.tracks.aggregate(
{$group: { _id : "$Genre", tracks:{$sum:1}}},
{$sort: {tracks:-1}},
{$limit:5}
)

© Acando GmbH
Performance

http://idcdocserv.com/1414 (28.1.2014)

Horizontal Scalability:
Sharding
© Acando GmbH
Sharding
mongod

mongod

mongod

© Acando GmbH

mongod

mongod

mongod
Sharding
Your Application
Native Driver

Router
mongos

Config
mongod

© Acando GmbH

Shard 1
mongod

Shard 2
mongod

Shard 3
mongod
Sharding
Shard Collection: tracks
Shard Key: Artist
A-B

C-F

G-T

U-Z

chunk 1

chunk 2

chunk 3

chunk 4

Shard 1
chunk 1
chunk 3

© Acando GmbH

Shard 2
chunk 2

Shard 3
chunk 4
Live
start shard, config server and
router
initialize sharding for a collection
show shard distribution and
chunks

© Acando GmbH
Sharding in Production
Your Application
Native Driver

Router
mongos

Config

Shard 1

mongos

Shard 2

mongos

Shard 3

mongod

mongod

mongod

mongod

mongod

mongod

mongod

mongod

© Acando GmbH

mongod

mongod

mongod

mongod
Conclusions
RDBMS
Fixed Schema

Flexible Schema

Joins

No Joins

Transactions

no Transactions over
Collections

Vertically scalable
© Acando GmbH

Document oriented

Horizontally scalable by
Sharding
Astrid Ritscher
Principal Consultant
astrid.ritscher@acando.de
Acando GmbH
Business Area Nord
Millerntorplatz 1
20359 Hamburg
Germany
© Acando GmbH
Literature
NoSQL Distilled
von Pramodkumar J. Sadalage; Martin Fowler
Auflage:
Jahr: 2012
ISBN: 9780321826626
Verlag: Addison-Wesley Educational..
Produkt-Art: Softcover

MongoDB Applied Design Patterns
von Rick Copeland
Practical Use Cases with the Leading NoSQL Database
Auflage:
Jahr: 2013
ISBN: 9781449340049
Verlag: O'Reilly Media, Inc, USA
Produkt-Art: Softcover

© Acando GmbH
Literature
MongoDB: The Definitive Guide
von Kristina Chodorow
Powerful and Scalable Data Storage
Auflage: 2
Jahr: 2013
ISBN: 9781449344689
Verlag: O'Reilly Media, Inc, USA
Produkt-Art: Softcover

© Acando GmbH

Más contenido relacionado

Similar a NoSQL Concepts live with MongoDB

Cassandra and Spark, closing the gap between no sql and analytics codemotio...
Cassandra and Spark, closing the gap between no sql and analytics   codemotio...Cassandra and Spark, closing the gap between no sql and analytics   codemotio...
Cassandra and Spark, closing the gap between no sql and analytics codemotio...
Duyhai Doan
 

Similar a NoSQL Concepts live with MongoDB (20)

NoSQL Konzepte live und in Farbe
NoSQL Konzepte live und in FarbeNoSQL Konzepte live und in Farbe
NoSQL Konzepte live und in Farbe
 
Build Low-Latency Applications in Rust on ScyllaDB
Build Low-Latency Applications in Rust on ScyllaDBBuild Low-Latency Applications in Rust on ScyllaDB
Build Low-Latency Applications in Rust on ScyllaDB
 
Big Data Processing with Spark and .NET - Microsoft Ignite 2019
Big Data Processing with Spark and .NET - Microsoft Ignite 2019Big Data Processing with Spark and .NET - Microsoft Ignite 2019
Big Data Processing with Spark and .NET - Microsoft Ignite 2019
 
Red Hat Storage Day New York - New Reference Architectures
Red Hat Storage Day New York - New Reference ArchitecturesRed Hat Storage Day New York - New Reference Architectures
Red Hat Storage Day New York - New Reference Architectures
 
UplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_is
UplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_isUplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_is
UplinQ - enhance qualcomm® snapdragon™ audio using android audio ap_is
 
Cassandra and Spark, closing the gap between no sql and analytics codemotio...
Cassandra and Spark, closing the gap between no sql and analytics   codemotio...Cassandra and Spark, closing the gap between no sql and analytics   codemotio...
Cassandra and Spark, closing the gap between no sql and analytics codemotio...
 
Spark cassandra connector.API, Best Practices and Use-Cases
Spark cassandra connector.API, Best Practices and Use-CasesSpark cassandra connector.API, Best Practices and Use-Cases
Spark cassandra connector.API, Best Practices and Use-Cases
 
Running Spark in Production
Running Spark in ProductionRunning Spark in Production
Running Spark in Production
 
Fast track to getting started with DSE Max @ ING
Fast track to getting started with DSE Max @ INGFast track to getting started with DSE Max @ ING
Fast track to getting started with DSE Max @ ING
 
New Analytics Toolbox DevNexus 2015
New Analytics Toolbox DevNexus 2015New Analytics Toolbox DevNexus 2015
New Analytics Toolbox DevNexus 2015
 
Copr HD OpenStack Day India
Copr HD OpenStack Day IndiaCopr HD OpenStack Day India
Copr HD OpenStack Day India
 
Heterogeneous Data Mining with Spark
Heterogeneous Data Mining with SparkHeterogeneous Data Mining with Spark
Heterogeneous Data Mining with Spark
 
Accelerated Spark on Azure: Seamless and Scalable Hardware Offloads in the C...
 Accelerated Spark on Azure: Seamless and Scalable Hardware Offloads in the C... Accelerated Spark on Azure: Seamless and Scalable Hardware Offloads in the C...
Accelerated Spark on Azure: Seamless and Scalable Hardware Offloads in the C...
 
Songbird
SongbirdSongbird
Songbird
 
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
Analyze one year of radio station songs aired with Spark SQL, Spotify, and Da...
 
Build Your Own PCB with EAGLE - Getting Start with EAGLE
Build Your Own PCB with EAGLE - Getting Start with EAGLE Build Your Own PCB with EAGLE - Getting Start with EAGLE
Build Your Own PCB with EAGLE - Getting Start with EAGLE
 
ArangoDB 3.7 Roadmap: Performance at Scale
ArangoDB 3.7 Roadmap: Performance at ScaleArangoDB 3.7 Roadmap: Performance at Scale
ArangoDB 3.7 Roadmap: Performance at Scale
 
Crystal internals (part 1)
Crystal internals (part 1)Crystal internals (part 1)
Crystal internals (part 1)
 
Crystal internals (part 1)
Crystal internals (part 1)Crystal internals (part 1)
Crystal internals (part 1)
 
Crystal internals (part 1)
Crystal internals (part 1)Crystal internals (part 1)
Crystal internals (part 1)
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
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)
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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?
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

NoSQL Concepts live with MongoDB