Make API Calls Wicked Fast with Redis
summary
Shows how Redis sits in front of API/database calls to cut response times from hundreds of milliseconds to single digits (examples: 236 ms first query, 120 ms DB read, 3 ms cached). Demonstrates configuring eviction behavior (allkeys-lru, maxmemory-samples), using redis-cli, setting TTLs, and when to avoid caching vs add DB indexes. Explains creating cache keys for autocomplete, avoiding stale results by invalidating with pipeline deletes, and tradeoffs of persistence vs ephemeral cache.
AI-written summary · about
chapters (7)
- 0:00Start
- 18:49When You Should and Should Not Cash
- 20:57When Should You Totally Avoid a Caching Solution
- 25:29Redis Config
- 31:28Flask Sequel Alchemy Extension
- 39:34Add a Skyline Recipe
- 48:05Postgres Indexing
related talks
36mCache is King
21mHigh Performance APIs through Caching
32mCache me if you can: Boosted application performance with Redis and client-side caching
17mCache me if you can: Boosting performance with Data Caching in Python
30mCaching patterns for lazy devs for lazy loading
37mCache is King: Get the Most Bang for Your Buck From Ruby
49mUnlocking Performance with Response Caching
31mSolid Cache: A disk backed Rails cache
