Speaker Deck
Speaker Deck Pro
Sign in
Sign up
for free
Great Caching Disasters! (and how to avoid them)
Lisa van Gelder
July 03, 2015
Technology
0
11
Great Caching Disasters! (and how to avoid them)
Lisa van Gelder
July 03, 2015
Tweet
Share
More Decks by Lisa van Gelder
See All by Lisa van Gelder
lvgelder
0
20
lvgelder
0
110
lvgelder
0
170
lvgelder
0
140
lvgelder
0
61
lvgelder
0
52
lvgelder
1
220
lvgelder
1
3.6k
Other Decks in Technology
See All in Technology
ytaka23
0
420
clustervr
0
190
kurotanshi
0
170
torisoup
0
260
tsuyo
0
180
clustervr
0
180
vkbaba
0
100
cmwatanabeseigo
0
320
hsano
0
120
110y
3
690
pinboro
1
1.4k
kakka
0
3.3k
Featured
See All Featured
robhawkes
52
2.8k
frogandcode
127
20k
wjessup
338
16k
orderedlist
PRO
329
35k
holman
288
130k
ddemaree
274
31k
jensimmons
207
10k
philnash
8
480
eileencodes
113
25k
lauravandoore
11
1.2k
brettharned
93
3k
bkeepers
408
57k
Transcript
Great Caching Disasters!!! And how to avoid them.
About me Lisa van Gelder VP of Engineering at Stride
lisa@stridenyc.com @techbint
The case of the disappearing website
None
Lessons • If caching is important, monitor it! • Never
build a cache invalidation system
None
Keep caching simple
Cache for the smallest amount of time you can get
away with
So we built a 3-day cache
None
None
Fix your sql! Don’t cover up terrible queries with caching.
Cache for 1 minute
None
<div class="comment__timestamp"> <!-- microapp-href name="discussion" url="/comment- permalink/51075599" —> ... </div>
Only cache static content
None
Caching should be automatic
Epilogue
Lessons • Cache for 1 minute • Cache static content
• Never build a clear cache system!* * Unless you are a cdn