Explore Library
System Design & ArchitectureCaching Strategies

95 items

1

Write-Through vs Write-Back Caching

Quiz
2

TTL Cache Expiry Unit Mismatch

Code Quiz
3

Cache Invalidation & TTL Basics

Quiz
4

What Caching Is & When to Use It

Flashcard
5

Redis Cache-Aside Serialization Bug

Code Quiz
6

Redis Distributed Cache Consistency

Quiz
7

Cache-Aside Write Invalidation Bug

Code Quiz
8

What Caching Is & When to Use It

Slides / Video
9

Cache Invalidation on Update

Code Quiz
10

In-Memory vs Distributed Cache

Quiz
11

Cache TTL Expiry Bug

Code Quiz
12

Cache Hits, Misses & TTL Basics

Quiz
13

Redis Fundamentals for Caching

Slides / Video
14

Redis Fundamentals for Caching

Flashcard
15

Caching Plus Database Scaling

Slides / Video
16

Caching and Database Scaling

Flashcard
17

Cache Hit Ratio Formula Bug

Code Quiz
18

Cache Warming and Preloading

Slides / Video
19

Cache Consistency and Staleness Trade-offs

Slides / Video
20

Hot Key Problem

Quiz
21

LRU Eviction Policy

Quiz
22

Cache Penetration

Quiz
23

Cache Hit Ratio

Quiz
24

Cache Sizing Trade-off

Quiz
25

Cache-Aside Pattern Basics

Quiz
26

Read-Through Caching

Quiz
27

Write-Through Caching

Quiz
28

Write-Back Caching Trade-off

Quiz
29

Write-Around Caching

Quiz
30

TTL and Expiration

Quiz
31

Cache Invalidation Goal

Quiz
32

Cache Stampede Problem

Quiz
33

Cache Avalanche

Quiz
34

Caching Location Types

Quiz
35

Consistency vs Staleness

Quiz
36

HTTP ETag Header

Quiz
37

Redis vs Memcached

Quiz
38

Cache Warming

Quiz
39

Multi-Level Caching

Quiz
40

Cache Penetration, Breakdown, and Avalanche

Slides / Video
41

Cache Stampede and Mitigation

Slides / Video
42

Distributed Caching and Cache Partitioning

Slides / Video
43

In-Memory Caching: Redis vs Memcached

Slides / Video
44

CDN and Edge Caching

Slides / Video
45

Client-Side and Browser Caching

Slides / Video
46

Write-Back Flush

Code Quiz
47

Write-Through Ordering

Code Quiz
48

Read-Through Cache Loader

Code Quiz
49

Cache-Aside Lazy Loading

Code Quiz
50

CDN Cache-Control Header

Code Quiz
51

Invalidate On Update

Code Quiz
52

TTL Expiration Check

Code Quiz
53

FIFO Eviction Order

Code Quiz
54

LFU Frequency Counter

Code Quiz
55

LRU Recency Update

Code Quiz
56

Write-Around Pattern

Code Quiz
57

Distributed Cache Coherence

Code Quiz
58

Local vs Remote Cache Sizing

Code Quiz
59

Consistent Hashing Ring

Code Quiz
60

Avalanche Staggered Expiry

Code Quiz
61

Cache Penetration Guard

Code Quiz
62

Stampede Lock Guard

Code Quiz
63

Cache Invalidation Strategies

Slides / Video
64

TTL and Cache Expiration Strategies

Slides / Video
65

Cache Eviction Policies: LRU, LFU, FIFO

Slides / Video
66

Cache Eviction Policies

Flashcard
67

Hot Keys and Load Distribution

Flashcard
68

Cache Avalanche

Flashcard
69

Read-Through Cache

Flashcard
70

Cache Stampede

Flashcard
71

Write-Back (Write-Behind)

Flashcard
72

TTL and Expiration

Flashcard
73

CDN / Edge Caching

Flashcard
74

Cache Sizing and Memory

Flashcard
75

Cache Consistency

Flashcard
76

Multi-Level Caching

Flashcard
77

Client-Side / Browser Caching

Flashcard
78

Cache Replication & HA

Flashcard
79

Distributed Caching

Flashcard
80

Cache Hit Ratio

Flashcard
81

Cache Warming / Preloading

Flashcard
82

In-Memory Local Caching

Flashcard
83

Cache Penetration

Flashcard
84

Cache Invalidation Strategies

Flashcard
85

Write-Around Cache

Flashcard
86

Write-Through Cache

Flashcard
87

Cache-Aside (Lazy Loading)

Flashcard
88

Write vs Read Optimization Trade-offs

Flashcard
89

Write-Around Caching Pattern

Slides / Video
90

Write-Back (Write-Behind) Caching Pattern

Slides / Video
91

Write-Through Caching Pattern

Slides / Video
92

Read-Through Caching Pattern

Slides / Video
93

Cache-Aside (Lazy Loading) Pattern

Slides / Video
94

Cache Hit, Miss, and Hit Ratio

Slides / Video
95

What Caching Is and Why It Helps

Slides / Video
Quiz

Write-Through vs Write-Back Caching

How write-through and write-back caching differ in when data reaches the backing store.

A service uses a cache in front of its database. On every write, data is stored in the cache and synchronously written to the database before the write is acknowledged. What write strategy is this, and what is its main trade-off compared to write-back?