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.
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.
Scale up or scale out? The trade-offs in cost, limits and downtime, what stateless apps need, and why databases usually grow vertically first, with a worked cost example.
What layer 4 and layer 7 load balancers can see and do, ALB vs NLB on AWS, load balancing algorithms, and a typical layout for a learning platform.
Fixed and sliding windows, token and leaky buckets compared, where to enforce limits, distributed limits with Redis, and how to protect OTP, login and test submission.
Cache-aside, read-through, write-through and write-back compared: how each works, how each fails, and which suits course pages, progress and leaderboards.
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.