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
Robson de Almeida
October 17, 2014
Programming
0
91
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
Tweet
Share
More Decks by Robson de Almeida
See All by Robson de Almeida
The Road to Node(JS)
robsondealmeida
0
70
R.I.P.: REST in peace! A guide through RESTful services.
robsondealmeida
2
130
The Queue is dead! Long live the Event!
robsondealmeida
1
210
Startup for Developers: each line matters.
robsondealmeida
0
94
The Lean Startup na Prática
robsondealmeida
0
210
Other Decks in Programming
See All in Programming
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
120
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
420
AI 開発合宿を通して得た学び
niftycorp
PRO
0
150
Ruby and LLM Ecosystem 2nd
koic
1
1k
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.5k
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
200
Claude Codeログ基盤の構築
giginet
PRO
7
3.5k
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1k
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
3
990
モダンOBSプラグイン開発
umireon
0
160
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
500
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
74
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
180
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
380
What does AI have to do with Human Rights?
axbom
PRO
1
2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
300
30 Presentation Tips
portentint
PRO
1
260
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
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.