Django caching: per-view, fragment and low-level caching
Pick a Django cache backend, use cache_page, template fragment caching and the low-level API safely, and invalidate with signals and versioned keys.
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.
B-trees in plain English, reading EXPLAIN ANALYZE, composite, partial and covering indexes, what indexes cost, and adding them to a live Postgres table safely.
How PostgreSQL streaming replication works, synchronous vs asynchronous commits, routing reads in Django, handling replication lag, and replicas for failover.
How to turn an uploaded lecture into encrypted HLS: probing, encoding a ladder with FFmpeg, queue-driven workers, CPU vs GPU vs spot capacity, retries and what one lecture really costs.