$30 off During Our Annual Pro Sale. View Details »
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
89
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
68
R.I.P.: REST in peace! A guide through RESTful services.
robsondealmeida
2
130
The Queue is dead! Long live the Event!
robsondealmeida
1
200
Startup for Developers: each line matters.
robsondealmeida
0
90
The Lean Startup na Prática
robsondealmeida
0
200
Other Decks in Programming
See All in Programming
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
0
180
GoLab2025 Recap
kuro_kurorrr
0
780
Basic Architectures
denyspoltorak
0
120
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
300
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
730
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
170
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
150
Graviton と Nitro と私
maroon1st
0
140
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
640
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
120
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
4
970
Featured
See All Featured
Fireside Chat
paigeccino
41
3.8k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
31
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
120
HDC tutorial
michielstock
0
270
Building AI with AI
inesmontani
PRO
1
570
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
38
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
49k
Leo the Paperboy
mayatellez
0
1.3k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Claude Code のすすめ
schroneko
66
210k
Into the Great Unknown - MozCon
thekraken
40
2.2k
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.