~/talk

Caching Best Practices

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [web-performance, web-platform]
linkedin:moshezadka
slides:none on file

Focuses on in-memory key value caches like memcache and routing layers like mcrouter or twemproxy and shows concrete failure modes: keys expire, are evicted when memory fills, or get corrupted by version changes. Recommends using only set/get/get_many/delete, configuring socket and TCP options, preferring multi-get, measuring per-code-path hit/miss ratios, exposing a dummy-cache toggle, and testing hit path, stale-value detection, disconnects and rolling upgrades. Advises expiry strategy and continuous monitoring to avoid caches becoming an overhead.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:27What is a cache and why use it
  3. 3:12Cache for latency vs resources
  4. 7:00Memcache overview and basics
  5. 10:09Cache eviction and memory limits
  6. 11:56Cache routing with mcrouter
  7. 15:26Why routing is not optional
  8. 17:35Caching complicates application code
  9. 20:25Handling cache failures and edge cases
  10. 22:12Cache invalidation challenges
  11. 23:59Testing cache behavior under pressure
  12. 26:07Measuring cache effectiveness
  13. 28:54Debugging and A/B testing with dummy cache
  14. 30:21Cache granularity and serialization
  15. 32:50Best practices and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.