Elements of Scalable Architecture
summary
Explains how a timeline system trades storage for latency by doing fan-out to cached timelines on write and serving reads from cache, handling tens of millions of read requests per second vs thousands of writes, with a typical 94% cache hit rate and ~50 billion cached tweets per datacenter; persistent store Manhattan receives synchronous writes, fan-out runs asynchronously for huge accounts, and during a Manhattan outage caches still serve ~80% of reads; uses Thrift/Mocks and Finagle for binary RPCs.
AI-written summary · about
chapters (23)
- 0:00Introduction and speaker intro
- 1:45Capacity vs habitability in scaling
- 4:58Capacity scaling fundamentals
- 7:28Optimizing with fan-out service
- 9:12Handling high-follower user constraints
- 10:56Asynchronous processing trade-offs
- 11:39Data access patterns and caching
- 14:49Scaling specific services
- 16:17Context and compromises in scaling
- 16:38Defining habitability in software
- 19:11Writing changeable software
- 20:39Design patterns and context sharing
- 23:08Why context matters in code
- 25:34Reducing shared context
- 26:18Using obvious technologies
- 28:23Abstraction overuse pitfalls
- 29:05Sharing context effectively
- 31:11Code reviews and documentation
- 32:59Tools for context sharing
- 34:24Incentives for documentation
- 36:12Onboarding and team efficiency
- 38:20Conclusion and key takeaways
- 38:47Q&A session
