~/talk

A Guided Tour of Caching Patterns

Talkat XtremePython 2021 · 2021-11-25..11-28· [python]
slides:none on file

Shows concrete caching patterns implemented with Flask + SQLAlchemy + SQLite for the app and Hazelcast for the cache, plus Docker for the demo. Implements cache-aside and moves DB logic into the cache for read-through and write-through, then switches to write-behind with 20s delay for async durability. Adds refresh-ahead and a streaming pipeline that reads MySQL changes and pushes them into the cache so the app only reads cache. All patterns run in the demo and behave as described.

AI-written summary · about

  1. 0:00Introduction
  2. 0:36Hazelcast
  3. 1:07Caching tradeoffs
  4. 10:55Read Through
  5. 14:22Right Through
  6. 19:10Refresh Ahead
  7. 23:07Demo
~/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.