Top Banner
CONTENT DELIVERY NETWORK (CDN) IN PRACTICE By Konstantin Root
22

Content Delivery Network (CDN) in practice

Feb 16, 2017

Download

Software

LatCraft
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Content Delivery Network (CDN) in practice

CONTENT DELIVERY NETWORK (CDN) IN PRACTICEBy Konstantin Root

Page 2: Content Delivery Network (CDN) in practice

ABOUT ME

DIRECTOR OF ENGINEERING @ ASK.FM20 YEARS IN IT INDUSTRY

HTTPS://WWW.LINKEDIN.COM/IN/KONSTANTINROOT/ TWITTER - @KONSTANTIN_ROOT

Page 3: Content Delivery Network (CDN) in practice
Page 4: Content Delivery Network (CDN) in practice

WHAT IS CDN?

“A CONTENT DELIVERY NETWORK OR CONTENT DISTRIBUTION NETWORK (CDN) IS A LARGE DISTRIBUTED SYSTEM OF PROXY SERVERS DEPLOYED IN MULTIPLE DATA CENTERS VIA THE INTERNET.”

Page 5: Content Delivery Network (CDN) in practice

WHAT PROBLEM IT SOLVES?

Page 6: Content Delivery Network (CDN) in practice
Page 7: Content Delivery Network (CDN) in practice
Page 8: Content Delivery Network (CDN) in practice
Page 9: Content Delivery Network (CDN) in practice

WHEN YOU COULD NEED IT?

Page 10: Content Delivery Network (CDN) in practice

CONTENT* SITE JS/HTML/CSS/IMAGES* USER GENERATED* DYNAMIC

Page 11: Content Delivery Network (CDN) in practice

CROWDED SPACE – 100+ CDN PROVIDERS

Page 12: Content Delivery Network (CDN) in practice
Page 13: Content Delivery Network (CDN) in practice

COLLECT* MONTHLY TRAFFIC* AVERAGE FILE INFO* LIBRARY SIZE, HTTPS

Page 14: Content Delivery Network (CDN) in practice

CDN PRICES* 4X DIFFERENCE* EU/US VS WORLD* $0.3 -> $0.005* NEGOTIATIONS* INTEGRATORS

Page 15: Content Delivery Network (CDN) in practice

ORIGIN SERVER* YOUR OWN* AWS S3/GOOGLE CLOUD/…* CDN PROVIDER STORAGE

Page 16: Content Delivery Network (CDN) in practice

ONE DOES NOT SIMPLY

MUTATE CDN DATA

Page 17: Content Delivery Network (CDN) in practice

TESTING* EDGES LATENCY* TRIAL WITH % LIVE TRAFFIC* EDGE -> ORIGIN LATENCY

Page 18: Content Delivery Network (CDN) in practice

PRODUCTION MONITORING* OFFLOAD RATE* LATENCY BASELINE CHECKS* ANALYZE LOGS

Page 19: Content Delivery Network (CDN) in practice

SECURITY* PROTECT CDN CREDENTIALS* 2 FACTOR AUTHENTICATION* PAGEFAIR INCIDENT

Page 20: Content Delivery Network (CDN) in practice

SUBRESOURCE INTEGRITY (SRI)<SCRIPT SRC="APP.JS" INTEGRITY="SHA256-TVVUHZSFFTWG1RCFL6TIJ0XKEGRGLYEQ6LEPCMRG9QS="></SCRIPT>CHROME 45, FIREFOX 43.

Page 21: Content Delivery Network (CDN) in practice

TIPS & TRICKS* CDN PROVIDER CACHE LIMITS* MIDDLE TIER CACHE* FORCING MAX-AGE* DROP COOKIES / QUERY STRINGS

Page 22: Content Delivery Network (CDN) in practice

Q & A