Перейти к содержимому

Scaling Reads, Explained: The System Design Pattern You'll Use Most

StaffSignal

0:00 / 0:00

Scaling Reads, Explained: The System Design Pattern You'll Use Most

4 просмотра · 9 ч назад
StaffSignal
8 подписчиков
4 просмотра · 9 ч назад
Most systems read ten to a thousand times more often than they write, so scaling reads is the system design pattern you'll use most. This video explains it from the one trade-off underneath it, freshness against latency and cost, through the tools, when each one wins, the hard parts that break read-heavy systems in production, and what interviewers look for. What's covered: • How to recognize a read-scaling problem, and a staleness budget for each kind of data • The read layers: client, CDN, in-process cache, Redis or Memcached, views, replicas • Eight tools and the default: cache-aside for reads by key, replicas for everything else • Hit rate math: 95% vs 99% is five times the database load • Read replicas and the 'my post vanished' bug (read-your-writes) • Expensive pages: materialized views kept by CDC, precomputing, caching lists • Hot keys: a celebrity profile at 3 million reads a second • Permissions: never cache a personal page under a shared key • When the cache fails: a cold cache is 20 times the database load • What interviewers ask, and the common mistakes Read the full chapter (members): https://staffsignal.app/reader.html?c... Staff Signal: worked system design interviews for senior and staff engineers. https://staffsignal.app Chapters 0:00 Intro 0:15 Why scaling reads matters 0:51 How to recognize it 1:35 The one trade-off: staleness budgets 2:28 The read layers 3:47 Eight tools, and the default 6:13 Hit rate and sizing 7:09 Replicas and read-your-writes 8:10 Expensive pages and lists 9:48 Hot keys and stampedes 11:11 Permissions 11:55 When the cache fails 13:16 The decision, and what flips it 14:27 In the interview The narrator is an AI-generated avatar and voice, made with the consent of the person it is based on. The script is Staff Signal's own. #systemdesign #systemdesigninterview #scalability