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
93
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
72
R.I.P.: REST in peace! A guide through RESTful services.
robsondealmeida
2
140
The Queue is dead! Long live the Event!
robsondealmeida
1
210
Startup for Developers: each line matters.
robsondealmeida
0
96
The Lean Startup na Prática
robsondealmeida
0
210
Other Decks in Programming
See All in Programming
20260320登壇資料
pharct
0
160
ローカルで稼働するAI エージェントを超えて / beyond-local-ai-agents
gawa
1
240
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
3
440
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
230
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
320
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
170
Java 21/25 Virtual Threads 소개
debop
0
320
安いハードウェアでVulkan
fadis
1
890
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
340
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
820
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
Geminiをパートナーに神社DXシステムを個人開発した話(いなめぐDX 開発振り返り)
fujiba
0
140
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
340
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
190
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
140
From π to Pie charts
rasagy
0
160
Test your architecture with Archunit
thirion
1
2.2k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
4 Signs Your Business is Dying
shpigford
187
22k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
170
So, you think you're a good person
axbom
PRO
2
2k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
230
Embracing the Ebb and Flow
colly
88
5k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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.