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
Bingo Bango Mongo
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
mthenw
February 09, 2013
Technology
6
430
Bingo Bango Mongo
Replication and sharding in MongoDB. 09.02.2013 meetphp.pl #8
mthenw
February 09, 2013
Tweet
Share
More Decks by mthenw
See All by mthenw
How to make better technical decisions
mthenw
0
77
Globally distributed applications with Serverless Framework
mthenw
1
160
The State of Serverless
mthenw
0
720
The State of Serverless (PCUG)
mthenw
0
230
Apex: The Holy Grail of AWS Lambda
mthenw
0
200
Microservices on AWS ECS
mthenw
8
830
Practical React in Marionette application
mthenw
2
620
Working with single-threaded event loop
mthenw
1
350
Are you Redis? Introduction to Redis.
mthenw
2
740
Other Decks in Technology
See All in Technology
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.8k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
150
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
150
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
What happened to RubyGems and what can we learn?
mikemcquaid
0
290
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
340
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.7k
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
150
AzureでのIaC - Bicep? Terraform? それ早く言ってよ会議
torumakabe
1
530
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
ClickHouseはどのように大規模データを活用したAIエージェントを全社展開しているのか
mikimatsumoto
0
230
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
300
Featured
See All Featured
Marketing to machines
jonoalderson
1
4.6k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
エンジニアに許された特別な時間の終わり
watany
106
230k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Accessibility Awareness
sabderemane
0
51
Documentation Writing (for coders)
carmenintech
77
5.3k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
Transcript
bingo bango mongo replication and sharding in MongoDB
Maciej Winnicki Senior PHP Developer @ Allegro Group @mthenw
Mongo WHAT?
agile scalable document-oriented high-performance open source NoSQL database
data
read/write app db
data
data
You must scale!
read/write app db
read read/write master slave app
read read/write app replica set master slave
It was replication
data
read/write app replica set 1
read/write app replica set 2 replica set 1 replica set
3 read/write read/write
Where is my data?
a . . . z a . . g h
. . n o . . z
[email protected]
[email protected]
[email protected]
read/write app replica set 2 replica set 1 replica set
3 read/write read/write mongos
read/write app replica set 2 replica set 1 replica set
3 read/write read/write mongos config
It was sharding
server down
Thanks!
?