A Guided Tour of Caching Patterns
summary
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
chapters (7)
- 0:00Introduction
- 0:36Hazelcast
- 1:07Caching tradeoffs
- 10:55Read Through
- 14:22Right Through
- 19:10Refresh Ahead
- 23:07Demo
related talks
45mCaching: A trip down the rabbit hole
05mLightning Talk: HTTP Caching in Python
17mCache me if you can: Boosting performance with Data Caching in Python
52mData Driven Cache Invalidation
19mOptimizing Data Retrieval with Python Celery
30mLearn You a Flask
06mCache Is the King! Create Cache in AWS Lambdas
21mHow I learned Python while working
