Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The MongoDB Quest - a tale of shards replicas a...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Robson de Almeida
October 17, 2014
Programming
98
0
Share
The MongoDB Quest - a tale of shards replicas and a lot of data
Presentation of my talk on the Big Data track of Porto Alegre TDC 2014 event.
Robson de Almeida
October 17, 2014
More Decks by Robson de Almeida
See All by Robson de Almeida
The Road to Node(JS)
robsondealmeida
0
84
R.I.P.: REST in peace! A guide through RESTful services.
robsondealmeida
2
140
The Queue is dead! Long live the Event!
robsondealmeida
1
220
Startup for Developers: each line matters.
robsondealmeida
0
97
The Lean Startup na Prática
robsondealmeida
0
210
Other Decks in Programming
See All in Programming
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
770
ふつうのFeature Flag実践入門
irof
7
3.5k
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
700
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
450
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
570
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
800
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
440
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.1k
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
310
RTSPクライアントを自作してみた話
simotin13
0
440
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
360
LLM Plugin for Node-REDの利用方法と開発について
404background
0
160
Featured
See All Featured
We Are The Robots
honzajavorek
0
240
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Facilitating Awesome Meetings
lara
57
6.9k
Color Theory Basics | Prateek | Gurzu
gurzu
0
330
Faster Mobile Websites
deanohume
310
31k
Scaling GitHub
holman
464
140k
Between Models and Reality
mayunak
4
320
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Done Done
chrislema
186
16k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Transcript
The MongoDB Quest a tale of shards, replicas and a
lot of data.
/robsondealmeida /robsondealmeida
The MongoDB Quest a tale of shards, replicas and a
lot of data.
“ MongoDB is an open-source document database. (…) Written in
C++. ”
“ MongoDB is an open-source document database. (…) Written in
C++. ”
“ MongoDB is an open-source document database. (…) Written in
C++. ”
“ MongoDB is an open-source document database. (…) Written in
C++. ”
But, MongoDB don't scale … … oh really?! These guys
don’t agree.
None
MongoDB scale … but you need to know how to
do it.
Shard divide and conquer
sharding a collection
Easy … easy … but, wait!
???
None
Scale adds complexity now we need to handle with it.
None
Routers
Routers
Routers
None
Configuration servers
Shards
Enabling shard sh.shardCollection("<database>.<collection>", shard-key-pattern)
Shard key where the magic happens.
Range Based Sharding vs Hash Based Sharding
Replication Replica sets: redundancy and availability.
Replication
Aggregation aggregation pipelines & map-reduce
Aggregation pipeline
Map-Reduce
+
Thanks. speakerdeck.com/robsondealmeida
[email protected]
Quando o cara nasce para ser programador, o cara nasce
para ser programador.