Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
Jetpack XR SDKから紐解くAndroid XR開発と技術選定のヒント / about-androidxr-and-jetpack-xr-sdk
drumath2237
1
190
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
170
Pythonではじめるオープンデータ分析〜書籍の紹介と書籍で紹介しきれなかった事例の紹介〜
welliving
3
610
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
130
AIコーディングエージェント(skywork)
kondai24
0
210
tparseでgo testの出力を見やすくする
utgwkk
2
290
Go コードベースの構成と AI コンテキスト定義
andpad
0
140
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.1k
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.1k
Cell-Based Architecture
larchanjo
0
140
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
160
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
170
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.5k
Paper Plane
katiecoart
PRO
0
44k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
0
100
Why Our Code Smells
bkeepers
PRO
340
57k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
33
Marketing to machines
jonoalderson
1
4.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
170
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.7k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
45
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
410
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.