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 Path Towards Simplifying Consistency in Dis...
Search
Caitie McCaffrey
April 24, 2017
Technology
1
330
The Path Towards Simplifying Consistency in Distributed Systems
Caitie McCaffrey
April 24, 2017
Tweet
Share
More Decks by Caitie McCaffrey
See All by Caitie McCaffrey
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Argus Papers We Love
caitiem20
13
1.2k
The Verification of a Distributed System
caitiem20
22
2.2k
We Hear You Like Papers: Eventual Consistency
caitiem20
14
810
The Verification of a Distributed System
caitiem20
12
780
The Verification of a Distributed System
caitiem20
6
780
A Brief History of Distributed Programming: RPC
caitiem20
31
6.6k
Building Scalable Stateful Services
caitiem20
12
1.6k
Papers we Love PDX
caitiem20
2
1.3k
Other Decks in Technology
See All in Technology
金融システムをモダナイズするためのAmazon Elastic Kubernetes Service(EKS)ノウハウ大全
daitak
0
120
Eight Engineering Unit 紹介資料
sansan33
PRO
0
3.1k
S3 Tables を図解でやさしくおさらい~基本から QuickSight 連携まで/s3-tables-illustrated-basics-quicksight
emiki
1
280
Introduction to Bill One Development Engineer
sansan33
PRO
0
230
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
1
7.1k
AIの電力問題を概観する
rmaruy
1
200
ソフトウェアは捨てやすく作ろう/Let's make software easy to discard
sanogemaru
10
5.2k
データ戦略部門 紹介資料
sansan33
PRO
1
3.1k
技術書典18結果報告
mutsumix
1
140
iOS/Androidで無限循環Carousel表現を考えてみる
fumiyasac0921
0
110
“新卒らしさ”を脱ぎ捨てて 〜1年を経て学んだこと〜
rebase_engineering
0
120
フロントエンドがTypeScriptなら、バックエンドはPHPでもいいじゃない/php-is-not-bad
hanhan1978
8
12k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
269
20k
The Invisible Side of Design
smashingmag
299
50k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
830
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
1
63
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.8k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
6
650
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Transcript
The Path Towards Simplifying Consistency in Distributed Systems
Caitie McCaffrey Distributed Systems Engineer caitiem.com @caitie
Distributed Systems Engineer Feral Concurrency Control Programmer Caitie McCaffrey
2015
2015 “Application-level Mechanisms for maintaining database integrity”
Halo 4 Statistics Service Halo 4 Statistics Service Record &
Aggregate Statistics From Every Multiplayer Halo Game a User Plays
Halo 4 Statistics Service
Observability at Twitter Make Dashboards & Alerts Always Available
Cmd Line Tool Viz / Dashboad Alerting Svc Cuckoo-Read Cuckoo-Write
Indexing Svc Relay Svc Twitter Front End Twitter Svc Twitter Statsite Twitter Svc Twitter Svc Scribe Collection Agent HDFS Manhattan Database Public Cloud Observability at Twitter
Notify Users When We Receive Abuse Reports
Notify Users If An Action is Taken
Report Events Stream Modification Events Stream Enrollment Events Stream Listener
Service Daemons Service Executor Service Notification Events Stream Notification Service Manhattan Macaw
Feral Concurrency Control
Service Service Service Monoliths
The Rise of NoSQL
None
Microservices
State of Affairs
Linearizable Sequential Causal Pipelined Random Access Memory Read Your Write
Monotonic Read Monotonic Write Write From Read Consistency Models
None
None
None
None
None
None
Can We Do Better?
Finance & Accounting
VisiCalc 1979
1983 Lotus 123
None
1987 Excel
None
& Standardization Computer Aided Computation
Standardization for Consistency in Distributed Systems
1988
1988 “We believe the form of communication that is needed
is remote procedure call with at- most-once semantics”
1988 “An adequate language must provide a modular, reasonably automatic
method for achieving consistency ”
Branch B Account 789: $250 Branch A Account 123 :
$100 Account 456: $50 SubAction: Deposit (123, 50) Transfer Action SubAction: Withdraw(789, 50) Transfer Deposit Withdraw enter topaction coenter action branchA.Deposit(123, 50) action branchB.Withdraw(789, 50) end end
What about Spanner?
2015
2015 “The biggest barrier…is that consistency mechanisms must integrate across
many stateful services”
Microservices
CRDTs * Stolen from Chris Meiklejohn in practice
CRDTs * Stolen from Chris Meiklejohn in practice
There Is No One Size Fits All Consistency Model
Mixed Consistency Data Stores Manhattan
None
Computer Aided Computation for Consistency in Distributed Systems
2016
Bank Application Bank Account must be > 0 Deposit Money
Withdrawal Money
‘Cause I’m Strong Enough: Reasoning About Consistency Choices in Distributed
Systems
Define Invariants & Actions Deposit Money Withdrawal Money Determine Consistency
Required Bank Account > 0 Eventual Consistency Strong Consistency Code Generation?
& Standardization Computer Aided Computation
Thank you @caitie