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.
10 articles tagged #performance
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.
Why opening database connections is expensive, how pools lend and reuse them, two-tier pooling on large systems, Django's pool options, and the settings that matter.
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.
Precompute leaderboards and reports inside PostgreSQL: create and index materialized views, refresh them concurrently, schedule refreshes, and know the alternatives.
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.
TLS 1.3 connects faster and drops the options behind a decade of attacks. What changed, what 0-RTT risks, what it means on mobile, and whether to keep TLS 1.2.
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.