How the concepts connect

Each box is one concept. An arrow runs from a topic to the topic that builds on it. Pick a box to light up its links.

  • The step right before it on the learning path
  • Another topic it builds on

Caching strategies

Stage 2 · Building blocks
Learn first
Comes after

Read the concept →Open its lab →

Caching strategies. Learn first: Vertical and horizontal scaling. Comes after: Cache eviction and stampedes, Consistent hashing, Event-driven fan-out: push vs pull and LLM serving and retrieval (RAG).

Stage 1 Foundations

Stage 0 Interview method

Stage 2 Building blocks

Stage 3 Distributed data

Stage 4 Reliability

Stage 5 Architecture patterns

Stage 6 Architecture at scale

Read the map as a list
  1. The client–server model: nothing to learn first.
  2. DNS and geo-routing: learn The client–server model first.
  3. HTTP, TCP, UDP and connections: learn The client–server model first.
  4. API styles: REST, gRPC, WebSockets and SSE: learn HTTP, TCP, UDP and connections first.
  5. Vertical and horizontal scaling: learn The client–server model first.
  6. How system design interviews work: nothing to learn first.
  7. Functional and non-functional requirements: learn How system design interviews work first.
  8. Latency, throughput and availability: learn Functional and non-functional requirements first.
  9. Capacity and cost estimation: learn Latency, throughput and availability first.
  10. Load balancing and health checks: learn Vertical and horizontal scaling and Latency, throughput and availability first.
  11. Service discovery: how services find each other: learn DNS and geo-routing and Load balancing and health checks first.
  12. Reverse proxies and API gateways: learn HTTP, TCP, UDP and connections and Load balancing and health checks first.
  13. Authentication and authorization: learn HTTP, TCP, UDP and connections and Reverse proxies and API gateways first.
  14. CDNs and edge caching: learn DNS and geo-routing and HTTP, TCP, UDP and connections first.
  15. Rate limiting: learn Reverse proxies and API gateways first.
  16. Caching strategies: learn Vertical and horizontal scaling first.
  17. Cache eviction and stampedes: learn Caching strategies first.
  18. Choosing a database and modelling data: learn Functional and non-functional requirements and Vertical and horizontal scaling first.
  19. Indexes and storage engines: learn Choosing a database and modelling data first.
  20. Transactions and isolation levels: learn Choosing a database and modelling data first.
  21. Object storage and large files: learn CDNs and edge caching and Choosing a database and modelling data first.
  22. Message queues and Kafka: learn API styles: REST, gRPC, WebSockets and SSE and Vertical and horizontal scaling first.
  23. Search indexes and autocomplete: learn Indexes and storage engines first.
  24. Replication and sharding: learn Choosing a database and modelling data first.
  25. Consistent hashing: learn Caching strategies and Replication and sharding first.
  26. Geospatial indexes: finding what is nearby: learn Indexes and storage engines and Replication and sharding first.
  27. CAP, PACELC and quorums: learn Replication and sharding first.
  28. Time, clocks and ordering: learn Replication and sharding first.
  29. Consensus and Raft: learn CAP, PACELC and quorums first.
  30. Distributed locks and fencing tokens: learn Time, clocks and ordering and Consensus and Raft first.
  31. Timeouts, retries and idempotency: learn HTTP, TCP, UDP and connections first.
  32. Circuit breakers and bulkheads: learn Timeouts, retries and idempotency first.
  33. Cascading failures, load shedding and backpressure: learn Timeouts, retries and idempotency and Circuit breakers and bulkheads first.
  34. Observability, SLOs and error budgets: learn Latency, throughput and availability and Cascading failures, load shedding and backpressure first.
  35. CI/CD and safe deployments: learn Load balancing and health checks and Observability, SLOs and error budgets first.
  36. Changing a database table without downtime: learn Choosing a database and modelling data and CI/CD and safe deployments first.
  37. Containers, orchestration and autoscaling: learn Load balancing and health checks and CI/CD and safe deployments first.
  38. Security beyond sign-in: secrets, encryption and abuse: learn Authentication and authorization and Rate limiting first.
  39. Event-driven fan-out: push vs pull: learn Caching strategies and Message queues and Kafka first.
  40. Stream and batch processing: learn Message queues and Kafka first.
  41. Analytics storage: row stores and column stores: learn Indexes and storage engines and Stream and batch processing first.
  42. CQRS and event sourcing: learn Event-driven fan-out: push vs pull first.
  43. Distributed transactions: outbox, CDC and sagas: learn Transactions and isolation levels and Message queues and Kafka first.
  44. Multi-region architecture and disaster recovery: learn Replication and sharding, CAP, PACELC and quorums and Observability, SLOs and error budgets first.
  45. Architecture evolution and service boundaries: learn Reverse proxies and API gateways, Event-driven fan-out: push vs pull and CI/CD and safe deployments first.
  46. Cost, ownership and build or buy: learn Capacity and cost estimation and Architecture evolution and service boundaries first.
  47. LLM serving and retrieval (RAG): learn Search indexes and autocomplete, Caching strategies and Rate limiting first.

Browse the topics by area

Caching Strategies & In-Memory Storage

Critical for reducing database read load, lowering latencies from 20ms to 1ms, and surviving high traffic spikes.

Cache-Aside (Lazy Loading)

App queries cache first. On miss, queries DB and populates cache.

Write-Through

Data is written to cache and primary DB simultaneously.

Write-Behind (Write-Back)

App writes to cache immediately; async worker writes to DB in batches.

Eviction Policies (LRU, LFU, FIFO)

Algorithms for evicting cold keys when RAM memory hits capacity limits.

Cache Stampede (Thundering Herd)

Concurrent misses when a popular key expires, overwhelming the DB.

Hot Keys & Local Memory Buffers

Caching viral keys in application pod heap memory to protect Redis.