Concept 05
Caching
Reuse an answer, then decide how long it can be wrong.
10 lessons · 4 notes · 13 labs · 1 simulator · 7 design problems · 38 vault drills · 10 free
You need these first
Each topic builds on the ones before it. Read one page from each, then come back.
- Foundations · start with What System Design Actually Is
Free
73 matching resources
Lesson
- Caching PatternsLesson
Locked 15 min read - Caching Strategies: Cache-Aside & Write-ThroughLesson
Locked 12 min read - Eviction PoliciesLesson
Locked 17 min read - CDN & Edge ComputingLesson
Locked 19 min read - Distributed Cache ArchitectureLesson
Locked 18 min read - Redis Deep Dive: Data Structures & EvictionLesson
Locked 21 min read - Cache Invalidation & StampedeLesson
Free 19 min read - Bloom Filters & Probabilistic Data StructuresLesson
Locked 18 min read - Design an LRU CacheLesson
Locked 18 min read - Caching: Exact, Prefix, and SemanticLesson
Locked 27 min read
Note
- DNS, CDN and Reverse ProxiesNote
Locked 20 min read - Caching StrategiesNote
Locked 20 min read - Redis Field GuideNote
Locked 24 min read - Redis and Search Command ReferenceNote
Locked 26 min read
Lab
- HTTP Caching Headers & DNS Resolution MechanicsLab
Locked Laptop + Docker - Redis Basics: Every Command You Need Before Any Redis LabLab
Locked Laptop + Docker - Lua in Redis: Atomic Scripts Explained from ZeroLab
Locked Laptop + Docker - Edge Reverse Proxy & CDN Cache-ControlLab
Locked Laptop + Docker - Redis Cache-Aside Pattern, Invalidation & Memory EvictionLab
Locked Laptop + Docker - Real-Time Leaderboard with Redis Sorted SetsLab
Locked Laptop + Docker - Cache Stampede, Mutex Locks & Single-Flight Request CoalescingLab
Locked Laptop + Docker - Bloom Filter Cache Penetration ShieldLab
Locked Laptop + Docker - HyperLogLog Unique Visitor Cardinality EstimationLab
Locked Laptop + Docker - Distributed Token Bucket Rate Limiter with Redis LuaLab
Locked Laptop + Docker - Spatial Proximity & Dispatch: Redis GEO vs PostgreSQL PostGISLab
Locked Laptop + Docker - Distributed Caching: Two-Tier L1/L2 Cache Invalidation & ConsistencyLab
Locked Laptop + Docker - Redis Sentinel Quorum Failover and Split-Brain PreventionLab
Locked Laptop + Docker
Simulator
- Interactive Traffic SandboxSimulator
Free Browser, no install
Design problem
- Design Distributed Rate Limiter (API Gateway Throttling)Design problem
Free 59 min read - Design a News Feed (Social Timeline at Scale)Design problem
Locked 45 min read - Design a Live Leaderboard (Fantasy Cricket Contest)Design problem
Locked 45 min read - Design a URL Shortener (Bitly Style)Design problem
Locked 42 min read - Design a Distributed Cache (Redis or Memcached Style)Design problem
Locked 49 min read - Design Search Autocomplete (Typeahead Suggestions)Design problem
Locked 48 min read - How an Ecommerce Platform Grows to 100 Million UsersDesign problem
Locked 45 min read
Vault drill
- How to Stop Two Users from Booking the Same Seat Without Locking the Whole TableVault drill
Free 14 min read - How to Stop 10,000 Requests from Hitting the Database When a Cache Key ExpiresVault drill
Locked 16 min read - How to Cut LLM Costs and Rate-Limit Teams with an AI GatewayVault drill
Free 15 min read - What to Do When 80% of Your Traffic Hits a Single Cache KeyVault drill
Locked 14 min read - Design a Virtual Waiting Room and Ticket Queue for 10 Million UsersVault drill
Free 16 min read - How to Serve Live Video to 50M Viewers Without Crashing the OriginVault drill
Free 15 min read - How to Track Dark-Store Inventory When Hundreds of Orders Hit at OnceVault drill
Locked 16 min read - How to Log Out a Compromised User When Using Stateless JWTsVault drill
Free 14 min read - Why Your RAG Assistant Misses Exact Clauses and How to Fix ItVault drill
Free 16 min read - How to Track Millions of Moving Cars and Find the Nearest DriverVault drill
Locked 16 min read - How to Fail Over Across Clouds Without DNS Flapping or Stale CachesVault drill
Locked 15 min read - How to Build a Distributed Rate Limiter That Does Not Overload RedisVault drill
Locked 15 min read - Why Redis Locks Fail and How Fencing Tokens Stop Double-WritesVault drill
Locked 16 min read - Why Rendering 2,000 Seats in SVG Freezes the Browser and How Canvas Fixes ItVault drill
Locked 14 min read - Where Should You Store User Sessions? Sticky Sessions vs RedisVault drill
Locked 15 min read - How to Stop Deeply Nested GraphQL Queries from Crashing Your BackendVault drill
Locked 15 min read - Which Rate Limiting Algorithm Should You Pick for an API Gateway?Vault drill
Locked 15 min read - How to Combine Local In-Memory Cache with Redis Across 50 ServersVault drill
Locked 16 min read - Design a Thread-Safe In-Memory LRU Cache with TTL ExpiryVault drill
Locked 15 min read - How to Invalidate Global CDN Caches Without a Thundering HerdVault drill
Locked 15 min read - Design Real-Time Chat Like WhatsApp for 50M WebSocketsVault drill
Locked 15 min read - Design a Newsfeed with Push vs Pull Fan-Out for CelebritiesVault drill
Locked 14 min read - Redis Crashes Under Peak Load (100,000 RPS)Vault drill
Free 14 min read - We Added Redis, but API p99 Latency Got Worse With Redis CPU at 10%Vault drill
Locked 14 min read - 2GB of Logical Data Is Consuming 10GB of RAM in RedisVault drill
Locked 14 min read - One Hot Key Gets 40% of Traffic and Pins a Single Redis Shard at 100%Vault drill
Locked 14 min read - The Cache and Database Disagree on a Customer's Wallet BalanceVault drill
Locked 14 min read - Our LLM Slows to 25 Seconds and Hallucinates. How Do You Fix It?Vault drill
Locked 14 min read - A Thread-Safe Cache Still Fires 50 Remote Calls on a Miss. Why?Vault drill
Locked 12 min read - Why Did a Redis Cache Leak Another Tenant's Data and Admin Views?Vault drill
Locked 12 min read - The Distributed Redis Lock That Deleted Another Worker's LockVault drill
Locked 12 min read - Design a ChatGPT-Style Streaming Backend for 1M UsersVault drill
Locked 15 min read - How to Get Valid JSON from LLMs and Redact PII Before the ModelVault drill
Locked 15 min read - How Do You Scale 70B LLM Serving Without Running Out of GPU Memory?Vault drill
Locked 16 min read - Design the Matching Backend for a Dating App Like TinderVault drill
Locked 22 min read - Users Close the Chat Tab, and the GPU Servers Run Out of Memory. Why?Vault drill
Locked 18 min read - This Redis Lock Passes Every Test but Still Lets Two Workers WriteVault drill
Locked 18 min read - How Do You Build a Short-Link Service for Campaigns?Vault drill
Locked 15 min read