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
Growing Distributed Systems: Abril Pro Ruby
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Bryce "BonzoESC" Kerley
April 26, 2014
Programming
58
0
Share
Growing Distributed Systems: Abril Pro Ruby
The Abril Pro Ruby version of my Growing Distributed Systems talk.
Bryce "BonzoESC" Kerley
April 26, 2014
More Decks by Bryce "BonzoESC" Kerley
See All by Bryce "BonzoESC" Kerley
Ruby in 2020
bryce
1
120
Rails and the Internet of Things
bryce
1
81
It's Not Ruby, But…
bryce
0
74
Ruby 2.5: What's New and What's Cool
bryce
0
83
docker for rubyists
bryce
0
120
Would You Like To Make A Game?
bryce
0
64
WebSockets and ActionCable
bryce
0
95
How I Learned to Stop Worrying and Like RSpec
bryce
0
82
How Do Computers Even Work?
bryce
1
220
Other Decks in Programming
See All in Programming
Skillは並べた。動かなかった。契約で繋いだ。— 65個のSkillから、自走する開発サイクルへ
junholee
0
280
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
380
Explore CoroutineScope
tomoeng11
0
190
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
700
AI時代になぜ書くのか
mutsumix
0
390
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
460
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
420
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.8k
Back to the roots of date
jinroq
0
820
t *testing.T は どこからやってくるの?
otakakot
1
930
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
180
Featured
See All Featured
It's Worth the Effort
3n
188
29k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Why Our Code Smells
bkeepers
PRO
340
58k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
140
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
460
Navigating Weather and Climate Data
rabernat
0
190
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
Test your architecture with Archunit
thirion
1
2.2k
Transcript
Growing Distributed Systems
Hello Bryce Kerley @bonzoesc basho
None
None
None
None
None
None
Distributed Systems What even are they?
Distributed Systems
Distributed Systems Always Broken
Distributed Systems Light Cones
Mutual visibility Soldier Fires Sniper Fires
Distributed Systems A distributed system is one in which the
failure of a computer you didn’t even know existed can render your own computer unusable. Lamport, 1987
Distributed Systems •Rules and Theory •Inconsistency and Unavailability •Distributed Rails
Byzantine Generals Two armies One town
Byzantine Generals Horse messengers
Byzantine Generals Consensus on when to attack
Byzantine Generals No Right Answer
Criticality •Amazon S3, July 2008 •GitHub, Dec. 2012 •Northeast US,
2003
Murphy’s Law at Scale •Backblaze •Gears of War 2
CAP Theorem Consistency Availability Partition tolerance
Rules, Theory, and Practice Compromise
Distributed Systems •Rules and Theory •Inconsistency and Unavailability •Distributed Rails
CAP Theorem lose Consistency or Availability during Partitions
Partitions
Partitions
CP Systems Zookeeper
Unavailability Don’t fill requests
Unavailability oonbeamlabs
AP Systems Riak
Inconsistency Accept writes Perform reads
Inconsistency
Hybrid Multiple Stores
Hybrid Where It Counts
Hybrid Riak 2 Strong Consistency
Distributed Systems •Rules and Theory •Inconsistency and Unavailability •Distributed Rails
Distributed Rails You’re Already Distributed
Distributed Rails Rails
Distributed Rails Rails Web DB
Distributed Rails SQL Rules
Distributed Rails NoSQL No Rules
Distributed Rails Temptation
Temptation “We’ll put everything in Rails models.”
None
Distributed Rails Service Oriented Architecture
Service Oriented Extract Parts
Service Oriented Documented Protocols
Service Oriented Smaller Deployments
Service Oriented Simpler Organization
Service Oriented Break Coupling
Service Oriented Flexible Implementation
Testing Unit Tests
Testing Service Tests
Testing Acceptance Tests
Testing Refactoring [GitHub] with Science Wynn Netherland, Big Ruby, Feb.
2014
Offline Apps Latency Garbage Collection Packet loss Airplane rides Local
internet
Offline Apps Smarter clients
Offline Apps You’re Already Doing It
Offline Strategies Conflicts
Offline Strategies Operational Transform
Offline Strategies Git
Offline Strategies Vesper
Distributed Systems •Rules and Theory •Inconsistency and Unavailability •Distributed Rails
Ruby Works
Make Something Awesome
Grow When You Need To
Thanks Bryce Kerley @bonzoesc
[email protected]
http://bitly.com/aprb-dist
Bonus Slides
Consensus Algorithm Paxos 1989
None
None
Consensus Algorithm Raft 2013
Harvest & Yield Harvest: fraction of data Yield: probability of
success
None
NoSQL and Rails SQL ACID
NoSQL and Rails Atomicity Consistency Isolation Durability
NoSQL and Rails NoSQL BASE
NoSQL and Rails Basically Available Soft-state Eventually consistent
Offline Libraries Breeze PouchDB Lawnchair
Must Watch Jeff Hodges “Practicalities of Productionizing Distributed Systems” youtu.be/BKqgGpAOv1w