NoSQL Konzepte live und in Farbe
-
Upload
astrid-ritscher -
Category
Data & Analytics
-
view
165 -
download
2
description
Transcript of NoSQL Konzepte live und in Farbe
NoSQL Konzepte live und in FarbeAstrid Ritscher !
code.talks 2014 !
!
NoSQL - Antwort auf Big Data
© Acando GmbH
Variety
VelocityVolume
NoSQL-Technologien
© Acando GmbH
Graphen Spalten Dokumente
• Document Oriented
• General Purpose
• Open Source
• Community Driven
• Commodity Hardware
© Acando GmbH
Dokumentenorientierte NoSQL-Technologie
albums
© Acando GmbH
Relational vs. Flexibelalbum
album
album artist
track count
_id
tracks
name
composer
_id
name
composer
genre
_id
album
id
album
album artist
track count
track
id
name
composer
genre
album_id
track
id
name
composer
genre
album_id
© Acando GmbH
Flexibles Schema
© 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" }, { "_id" : 735, "name" : "Keep The Car Running", "composer" : "Arcade Fire“, "genre" : "Rock" } ] }
album
album
album artist
track count
_id
tracks
name
composer
_idname
composergenre
_id
Live
© Acando GmbH
start mongod server flexible data schema show: find, insert, update and remove
Performance
© Acando GmbH
Skalierbarkeit
Vertikale Skalierung
© Acando GmbH
Horizontale Skalierung
© Acando GmbH
mongod
MongoDB Server
Your Application
Native Driver
© Acando GmbH
Shard 2Shard 1 Shard 3Config
Router
mongodmongod mongod mongod
mongos
Sharding
Your Application
Native Driver
© Acando GmbH
ShardingShard Collection: albums Shard Key: album artist
© Acando GmbH
album
album
album artist
track count
_id
tracks
name
composer
_idname
composergenre
_id
Sharding
albums
Shard Collection: albums Shard Key: album artist
Shard 1 Shard 3
chunk 1
chunk 3
chunk 4
chunk 2chunk 1 chunk 3 chunk 4
A-B C-F G-T U-Z
© Acando GmbH
Shard 2
chunk 2
Shard 2Shard 1 Shard 3Config
Router
mongodmongod mongod mongod
mongos
Sharding
Your Application
Native Driver
© Acando GmbH
© Acando GmbH
start shard, config server and router
initialize sharding for a collection
show shard distribution and chunks
Live
Shard 2Shard 1 Shard 3Config
Router
mongod
mongod
mongod
mongod
mongod
mongod
mongod
mongod
mongod
mongod
mongod
Sharding in Produktion
mongod
Your Application
Native Driver
© Acando GmbH
mongos mongosmongos mongos
© Acando GmbH
Astrid Ritscher
NoSQL Konzepte live und in Farbe