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
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
310
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
150
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
150
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
260
How to stabilize UI tests using XCTest
akkeylab
0
130
Claude Code の Skill で複雑な既存仕様をすっきり整理しよう
yuichirokato
1
410
Docコメントで始める簡単ガードレール
keisukeikeda
1
130
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
0
130
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
650
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
570
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
150
条件判定に名前、つけてますか? #phperkaigi #c
77web
1
330
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.9k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
110
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
160
For a Future-Friendly Web
brad_frost
183
10k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
640
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
180
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
180
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
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.