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
Search
Bryce "BonzoESC" Kerley
March 07, 2014
Programming
0
400
Growing Distributed Systems
Ruby on Ales, Mar. 7 2014
Bryce "BonzoESC" Kerley
March 07, 2014
Tweet
Share
More Decks by Bryce "BonzoESC" Kerley
See All by Bryce "BonzoESC" Kerley
Ruby in 2020
bryce
1
85
Rails and the Internet of Things
bryce
1
54
It's Not Ruby, But…
bryce
0
42
Ruby 2.5: What's New and What's Cool
bryce
0
54
docker for rubyists
bryce
0
98
Would You Like To Make A Game?
bryce
0
46
WebSockets and ActionCable
bryce
0
72
How I Learned to Stop Worrying and Like RSpec
bryce
0
66
How Do Computers Even Work?
bryce
1
170
Other Decks in Programming
See All in Programming
令和トラベルにおけるLLM活用事例:社内ツール開発から得た学びと実践
ippo012
0
120
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
570
The Shape of a Service Object
inem
0
380
現代のVueとTypeScript - 型安全の活用術
minako__ph
4
3.2k
dotfiles について話したい #湘なんか
stefafafan
2
290
どうしてこうなった?から理解するActive Recordの関連の裏側
willnet
5
550
Kotlin 2.0 and Beyond
antonarhipov
2
140
ドメイン駆動設計を実践するために必要なもの
bikisuke
3
320
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
510
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
110
Swift Concurrencyとレースコンディション
objectiveaudio
1
400
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
180
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
16
940
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Web Components: a chance to create the future
zenorocha
308
41k
Atom: Resistance is Futile
akmur
261
25k
[RailsConf 2023] Rails as a piece of cake
palkan
46
4.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
48
2.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Music & Morning Musume
bryan
46
6k
Making Projects Easy
brettharned
113
5.8k
Web development in the modern age
philhawksworth
204
10k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
354
29k
Building Flexible Design Systems
yeseniaperezcruz
325
37k
Transcript
Growing Distributed Systems
None
None
None
Hello Bryce Kerley @bonzoesc basho
Distributed Systems What even are they?
Distributed Systems
Distributed Systems Always Broken
None
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 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
CP Systems Zookeeper
Unavailability Don’t fill requests
Unavailability
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
None
Distributed Rails Service Oriented Architecture
Service Oriented Extract Parts
Service Oriented Documented Protocols
Service Oriented Smaller Deployments
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/roa-dist
Bonus Slides
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
Why Extract? Break coupling Easier deploys Simpler responsibility Forced abstraction
Prevent introspection Standardization Flexible backends
Offline Libraries Breeze PouchDB Lawnchair
Must Watch Jeff Hodges “Practicalities of Productionizing Distributed Systems” youtu.be/BKqgGpAOv1w