Procrastination as a Service: Caching and Queueing
summary
Argues that deferring work—caching, queueing and websockets—is a practical performance strategy: uses Redis for in-memory caching and queues, shows a leaderboard and full‑page cache that cut repeated reads from ~2.5s to under 2s, and replaces slow synchronous email sending (8s) with queued jobs that respond in ~2s — about 73% faster. Covers cron jobs to prefill caches, background workers, retry/fault tolerance, use of HTTP 202 Accepted for “we’ll do it later,” and tradeoffs like initial cache write cost and stale data.
AI-written summary · about
chapters (14)
- 0:00Introduction and welcome
- 1:07Why caching matters
- 10:03Redis as cache and queue
- 13:41Caching in practice with PHP
- 18:45Using cron for background caching
- 20:55When to delay data updates
- 22:51Full page caching benefits
- 26:31Queuing slow operations
- 29:00HTTP 202 Accepted explained
- 30:21Processing queued jobs
- 31:49Performance gains from queuing
- 33:53Queue everything you can
- 34:36Real-time updates with WebSockets
- 37:49Summary and Q&A
related talks
21mHigh Performance APIs through Caching
30mBuilding Faster, More Resilient Apps with Service Worker: A Caching Strategy Deep Dive
42mCaching for Cash
47mCaching strategies on https://dev.to
25mCaching strategies on https://dev.to
27mCaching for Cash
38mThe power of cache in a slow world
43mCache Me Outside - Caching Methodologies & Architectures
