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
Large scale distributed systems patterns
Search
Ryosuke Iwanaga
September 22, 2025
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Large scale distributed systems patterns
Ryosuke Iwanaga
September 22, 2025
Other Decks in Technology
See All in Technology
PLaMo 3.0 Primeの構造化出力サポート
pfn
PRO
0
170
OSPN.JPバージョンアップ作業進捗のご報告 / 20260801-osc26kyoto
akkiesoft
0
160
13年運用タイトルのサーバーサイドが辿り着いた現在地 ― モンスターストライクにおける技術・組織・AI活用から得た知見
mixi_engineers
PRO
1
400
サイバー捜査員研修(前半)
nomizone
0
260
【CEDEC2026】『ウマ娘 プリティーダービー』 英語版のキャラクターの方言や口調をローカライズするための創造的アプローチ
cygames
PRO
0
110
コンポーネント名には何を含めるべきなのか? / what-should-be-included-in-component-names
airrnot1106
0
250
脱Jenkins、インターン生が挑んだCIツールGitHubActions移行
mixi_engineers
PRO
1
310
ガバメントクラウドでのランサムウェア対策
techniczna
1
610
データ組織の転換期 一足飛びしない段階的戦略
leveragestech
PRO
0
140
タクシーアプリ『GO』の実践的データ活用〜位置情報データの収集とStreamlitでの可視化〜
mot_techtalk
2
180
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
3
110
新しい SLO が良い感じにハマっている話
z63d
4
2k
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
350
Code Review Best Practice
trishagee
74
20k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
390
Google's AI Overviews - The New Search
badams
0
1.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
1k
Typedesign – Prime Four
hannesfritz
42
3.1k
RailsConf 2023
tenderlove
30
1.5k
A Modern Web Designer's Workflow
chriscoyier
698
190k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Accessibility Awareness
sabderemane
1
170
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
450
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
430
Transcript
Large scale distributed systems patterns Ryosuke Iwanaga
Agenda Visit architecture patterns and talk about problems * Web
app * Cloud native * Microservice in scale * Resource management * Event system * Problem 1: Cold start * Problem 1: Poison pill
Distributed systems always fail => Design for failure Takeaways One
solution introduces another problem => Design exercise
2009 Mobile browser gaming (SRE / DBA) * ~5,000 physical
servers * MySQL replications, sharding * Datacenter operations AI! 2025 Cloud (Solutions architect) Distributed datastore (Developer) 2015 2018 * Architecture * Container * Analytics * Distributed system * ~50 Microservices * Horizontal scale * Cell-based My experience in large scale distributed systems
LB ... User Web app distributed system Replication delay Deadlock
Write bottleneck LB's scalability Typical problems: App App App App DB Writer DB Reader DB Reader ... DB Writer DB Reader DB Reader ... ... Payment
Write Read Read LB ... App App App App DB
DB DB ... Cache Cache Cache ... Web app distributed system Cache invalidation Cache scalability Typical problems:
... Server 1 Resource orchestrator/manager App1 Amazon EC2, Eucalyptus, OpenStack
Hadoop, Mesos, YARN, Omega, Borg, k8s Server 2 Server N App1 App1 App1 App2 Cloud resource distributed system App3 App2 App3 Manager’s scalability Consistency Typical problems:
App Stream Speed layer Event distributed system e.g. Lambda architecture
App App Stream process 1 Object storage Stream process 2 Batch process 1 Batch process 2 Batch layer At least once At most once Stream scalability Back pressure Typical problems:
App Service A ... User 1 Metadata User 1,3,4 User
1 => DB 1 User 2 => DB 2 User 3 => DB 1 ... 💀 DB 1 DB 2 Service B App App User 2 LB Service C User 2,5 Microservice distributed system ...
App Service A ... User 1 Metadata User 1,3,4 User
1 => DB 1 User 2 => DB 2 User 3 => DB 1 ... DB 1 DB 2 Service B App App User 2 LB Service C User 2,5 Microservice distributed system ... Cache 😁?
Warm start 🔄Restart ✅ https://aws.amazon.com/message/11201/ Cold start Metadata App App
App App App App App 🔄Restart App App App App App App App 🔄Restart 🔄Restart 🔄Restart 🔄Restart 🔄Restart 💀 Cold start problem
💊 If user 1's requests trigger a bug on app
that crashes the app... 💀 Retry Retry Retry Retry Retry Retry Retry 💀 0% availability => App User 1 App App User 2 App App App App App User 3 💀 💀 💀 💀 💀 💀 💀 LB Poison pill problem 0% availability => 0% availability =>
💊 💀 ✅ App User 1 App App User 2
App App App App App User 3 💀 Naive sharding 💀 💀 0% availability => 100% availability => 0% availability =>
💊 ✅ App User 1 App App User 2 App
App App App App User 3 💀 Shuffle sharding 💀 ✅ ✅ https://aws.amazon.com/blogs/architecture/shuffle-sharding-massive-and-magical-fault-isolation/ : Server set for user 1, 2 5 overlap (k=5): 0.00000013% 4 overlap (k=4): 0.00063% 3 overlap (k=3): 0.059% 2 overlap (k=2): 1.8% 1 overlap (k=1): 21% 0 overlap (k=0): 77% 💀 50% availability => 100% availability => 0% availability => : Number of total servers : Size of each shard : Overlap between user 1 and 2
What’s next? App Service A ... User 1 Metadata DB
1 DB 2 Service B App App User 2 Service C ... App Service D ... App App Metadata LB Service E 💀
Distributed systems always fail => Design for failure Takeaways (again)
One solution introduces another problem => Design exercise
Thanks! @riywo OpsBR