Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Varnish: where developers & sysadmins meet - Varnish Summit Amsterdam 2015
Thijs Feryn
November 05, 2015
Technology
1
1.5k
Varnish: where developers & sysadmins meet - Varnish Summit Amsterdam 2015
Varnish: where developers & sysadmins meet - Varnish Summit Amsterdam 2015
Thijs Feryn
November 05, 2015
Tweet
Share
More Decks by Thijs Feryn
See All by Thijs Feryn
thijsferyn
0
130
thijsferyn
0
58
thijsferyn
0
120
thijsferyn
1
120
thijsferyn
0
230
thijsferyn
0
150
thijsferyn
0
150
thijsferyn
0
110
thijsferyn
0
140
Other Decks in Technology
See All in Technology
line_developers
PRO
3
500
clustervr
0
190
stakaya
8
5.4k
tsuyo
0
180
nihonbuson
2
1.6k
kakka
0
3.4k
ocise
1
1.3k
clustervr
0
200
clustervr
0
210
line_developers
PRO
0
150
nkjzm
1
830
harshbothra
0
120
Featured
See All Featured
samlambert
237
9.9k
pauljervisheath
196
15k
jrom
114
7.1k
nonsquared
81
3.3k
addyosmani
310
21k
marktimemedia
6
330
62gerente
587
200k
wjessup
338
16k
productmarketing
5
650
shpigford
165
19k
chrislema
173
14k
mojombo
358
62k
Transcript
Where developers & sysadmins meet By Thijs Feryn Varnish
Hi, I’m Thijs
I’m @ThijsFeryn on Twitter
I’m an Evangelist At
I’m an at Evangelist
I’m a at board member
Early days
Down
Website performance?
More servers
Identify slowest part
Optimize database
Optimize runtime
After a while you hit the limits
Caching
Memcached or Redis
None
Optimize database Optimize runtime A void A void
Varnish
Hit rate?
Cookies?
Cache Control?
Developers Sysadmins
None
✓State ✓Performance ✓Scalability ✓Cache invalidation ✓Architecture People often forget
Who writes the VCL?
Varnish still considered a sysadmin responsibility
None
Coaching developers & sysadmins
✓No state unless required ✓Cache-control discipline ✓Chop pages into content
blocks ✓AJAX or ESI ✓Reasonable cache variations ✓Cache invalidation strategy Advice for developers
✓Normalize input ✓Cookies blacklist/whitelist ✓URL blacklist/whitelist VCL
When you respect HTTP
Developers are bridging the gap too
Collaboration & empathy AKA DevOps
Architecture
Service Oriented Architecture
REST Cacheable in Varnish if done right
Monolith vs Microservices
Distributed systems
Big Data & NoSQL
Async, concurrent & non-blocking processing
Common goal
Better end-user experience
Frameworks & CMS’es
None
Bullet proof?
Well-designed software should be more scalable
Well-designed software should be faster
Well-designed software doesn’t need much caching?
Always cache … when you can
Well-designed software doesn’t require much VCL
Well-designed software knows how to purge the cache
Challenges
Caching state of mind
Purging
There are only two hard things in Computer Science: cache
invalidation and naming things. —- Phil Karlton
SSL termination + SSL awareness in application
Static assets To cache or not to cache?
Invalidate or not?
Clustering & HA
Varnish flow
None
None