Types of caching: every layer from browser to database
Browser, CDN, reverse proxy, app memory, Redis and database: what each caching layer stores, who shares it, and how one results-day request moves through them.
11 articles tagged #caching
Browser, CDN, reverse proxy, app memory, Redis and database: what each caching layer stores, who shares it, and how one results-day request moves through them.
Load balancing, caching, queues, read replicas, connection pooling, autoscaling and load testing: how to build a platform that survives its busiest minute.
What each Cache-Control directive does, no-cache vs no-store, ETags and revalidation, and ready-to-use headers for static files, HTML, APIs and HLS video.
How edge caches decide hits and misses, what Cloudflare caches by default, cache rules for HTML, APIs and HLS, measuring hit ratio, and purging safely.
Set up Nginx proxy_cache, microcache dynamic pages for one second, bypass logged-in users, and stop pile-ups with cache locks and stale-while-updating.
Pick a Django cache backend, use cache_page, template fragment caching and the low-level API safely, and invalidate with signals and versioned keys.
Why Redis is fast, how TTLs and eviction policies work, how to size memory, when persistence matters for a cache, and how Redis compares with Memcached.
Cache-aside, read-through, write-through and write-back compared: how each works, how each fails, and which suits course pages, progress and leaderboards.
Precompute leaderboards and reports inside PostgreSQL: create and index materialized views, refresh them concurrently, schedule refreshes, and know the alternatives.
TTLs, event-based deletes and versioned keys: choosing TTLs per data type, purging CDNs, avoiding stale reads after writes, and why eviction isn't invalidation.
Why one expired key can overload your database, and how locks, request coalescing, probabilistic early refresh, TTL jitter and serving stale data prevent it.
Upclass for institutes
Your courses, live classes and tests in your own branded app, with piracy protection on every lecture. Plans start at ₹1,999/month.