~/talk

Lazy Defenses: Using Scaled TTLs to Keep Your Cache Correct

Talkat Strange Loop 2017 · 2017-09-28..09-30· [web-performance]
slides:none on file

Describes a concrete system: uses Twitter memcache plus an in‑process hot‑key cache with 30s TTL for spikes, scaled TTLs that start at 2 minutes and ramp to 30m 6h 12h 24h based on consecutive identical reads, and an auto‑darkening/backpressure mode to serve stale values during backend failures. Implementation stores a small counter per cached value; result is up to a 30% reduction in cross‑DC inconsistencies, 99.9% of requests served from cache, and effective handling of millions qps.

AI-written summary · about

  1. 0:00Introduction to caching
  2. 3:05Twitter's caching architecture
  3. 5:14Basic cache implementation
  4. 8:28Advanced TTL strategies
  5. 10:37User service characteristics
  6. 13:54Solving hot key issues
  7. 16:45Handling service outages
  8. 18:31Fixing inconsistent data
  9. 21:58Implementing scaled TTLs
  10. 29:11Metrics and gotchas
  11. 32:54Code idioms and libraries
  12. 36:35Conclusion and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.