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
Reliability of Distributed Systems
Search
Piyush Verma
June 22, 2019
Technology
330
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Reliability of Distributed Systems
Piyush Verma
June 22, 2019
More Decks by Piyush Verma
See All by Piyush Verma
SLOs that Lie
meson10
0
150
Doing SRE the right way - 2
meson10
0
180
Doing SRE the right way
meson10
0
1k
Observability and Control Theory
meson10
1
1.2k
Reliability
meson10
0
200
My TLS was broken
meson10
0
180
Technology that builds Organizations
meson10
0
160
Namespace.go
meson10
0
210
Cgroups and Namespaces in Linux
meson10
0
430
Other Decks in Technology
See All in Technology
[RSJ26] AnoleVLA: Lightweight Vision-Language-Action Model with Deep State Space Models for Mobile Manipulation
keio_smilab
PRO
0
120
20260906 「AWS運用入門」著者が教える、運用業務への生成AI活用入門
masaruogura
0
220
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
140
設計の世代交代を乗り越える、14年続くAndroidアプリの開発戦略
sansantech
PRO
1
120
プロダクトエンジニアに必要な「いい感じ」に作る能力 〜たくさん作れる時代に、どこまで作るかの決め方〜
jnishime_dresscode
2
1.3k
[DroidKaigi 2026] Making UI specifications visible: Android UI development in the AI agent era supported by Compose Screenshot Testing and galleries
syarihu
0
550
Azure App Service / Container Apps の組み込み認証
kuniteru
0
190
Redmine 7.0で私が開発した新機能の狙いと背景
vividtone
1
110
AIエージェントを雇う前に決める5つのこと
knishioka
1
150
V8コントリビュート超入門
riyaamemiya
0
130
Webとヘルスデータ
yukukotani
0
170
Bet AI Day 2026丨How We Bet AI: AIとともに働く場をつくる
layerx
PRO
1
2.1k
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
380
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Unsuck your backbone
ammeep
672
58k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
260
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
410
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
230
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
490
So, you think you're a good person
axbom
PRO
2
2.1k
Transcript
Reliability of Distributed Systems - Piyush Verma
Every product either dies a hero or lives long enough
to hit Reliability issues. 2
Customer Empathy No Chooran. Cost to Everything Architectures adapt to
$ Priority 01 02 03 04 3 Take it and Go
Service receives SMS User sends SMS Remind me to buy
milk at 6:30 PM to 53308 Cron gets Activated when time is right. Call the User 4 Sample Product
Service receives SMS User sends SMS Remind me to buy
milk at 6:30 PM to 53308 Cron gets Activated when time is right. Call the User 5 Sample Product: Inbound
Cron gets Activated when time is right. Call the User
6 Sample Product: Outbound Service receives SMS User sends SMS Remind me to buy milk at 6:30 PM to 53308
7 Inbound Connection
— Leslie Lamport https://www.microsoft.com/en-us/research/uploads/prod/2016 /12/Distribution.pdf “A distributed system is one
in which the failure of a computer you didn’t even know existed can render your own computer unusable” 8
Four Flavors of Failure 9 Disk Network CPU Memory
Network is Reliable Intra-LAN latency is ~ Zero Network is
Homogeneous Network cost is Zero 01 02 03 04 10
11 Scope of Failures: Again
At-least one server is online All servers are below 100%
All servers are responding within x ms. All of the above. 01 02 03 04 12
13 #1 Server is Unavailable
14 Replication Available
15 Replication Available
16 Available != Load Balanced
17 Load Balanced
18 Architecture of a Balancer
GCP AWS On-Prem Azure Who uses What? 19
Trilemma 20
Trilemma 21 Available Economical Endurable
22 Available + Load Balanced
Load Balancing 23
24 Monty Hall Problem: Was Marilyn vos Savant, right?
25 Server-side Load Balancing Example: Fabio
26 Look-aside Load Balancing Example: Consul/ DNS
27 Client-side Load Balancing Example: Ribbon
28 Client-side Load Balancing Example: Ribbon + Curator
29 Problems
30 Load Shedding
— Tyler McMullen https://www.infoq.com/presentations/load-balancing/ “Load Balancing is almost Impossible” 31
Alternate Reliability 32
33 Asynchronous Architectures
34 Asynchronous Architectures Example: RabbitMQ Kafka Kinesis SQS
Cron gets Activated when time is right. Call the User
35 Sample Product: Outbound Service receives SMS User sends SMS Remind me to buy milk at 6:30 PM to 53308 Part 1
36 Outbound
37 Scope of Failure: Outbound
38 Retries
39 Retries: Transient Failures
40 Exponential Backoff: Short term Transient Failures ✋ ✋ ✋
✋ ✋
41 Circuit Breaking: Long Term Transient Failures
42 Revisited
Dilemma 43 At-least Once Exactly-Once At-most Once
44 At-most once delivery
45 At-least once delivery
46 Exactly once delivery
47 Exactly once delivery = At-least-once Delivery + Exactly-once Processing
Keys to Only-Once delivery 48 Atomic Window Idempotent
Out-of-Order delivery 49
Revisit 50
Service receives SMS User sends SMS Remind me to buy
milk at 6:30 PM to 53308 Cron gets Activated when time is right. Call the User 51 Sample Product
52 Problems of State
53 Problems of State
54 Locked /Serialization
55 Master/ Master/ Slave
56 Clustering
Scalability 57 Data Replication Reduced Communication Logic/Data Decentralization
CAP Theorem [Sab topi pehna rahe] 58
59 Trilemma Available Partition Consistent
PACeLC Theorem 60
Dilemma 61 Consistency Latency
62 Revised Flow
63 What about Spanner? What about Calvin?
Reliable System 64 Scalable Correct Transparent
Access Transparency Location Transparency Concurrency Transparency Failure Transparency 01 02
03 04 65
Size Scalability Geographical Scalability 01 02 66
Summary 67 Consistent Available Economical Low Latency
68 All Put Together
Embrace your Bugs No Silver Bullet Cost to Everything Product
First 01 02 03 04 69
Does anyone have any questions?
[email protected]
Thanks 70