cdn implmentation consideration
DESCRIPTION
The presentation describe important aspects of implmenting CDN. It was presented in MoovingON conference on June 10, 2014 "Best Practices in SaaS Operation"TRANSCRIPT
![Page 1: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/1.jpg)
CDNשיקולים בשימוש GLOBALDOTS.COM
![Page 2: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/2.jpg)
WHAT IS A CDN?
![Page 3: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/3.jpg)
GLOBAL WEB SITE
End users
Servers
![Page 4: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/4.jpg)
WEB SITE WITH CDN
![Page 5: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/5.jpg)
CDN does• Decrease Latency
• Stop server sprawl
• Increase security
![Page 6: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/6.jpg)
• Price
• Performance
• Features
Which CDN?
![Page 7: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/7.jpg)
Traffic
Dumb Smart
Engagement
Low High
Content
Static Dynamic
![Page 8: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/8.jpg)
Smart Traffic• Modify content on the edge
• Conditions and rules
• Content based load balancing
![Page 9: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/9.jpg)
Dynamic content• Really dynamic?
• Network optimization
• Application integration
![Page 10: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/10.jpg)
High engagement• Application integration
• Build integration
• Use built-in reporting
![Page 11: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/11.jpg)
Application integration
examples
![Page 12: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/12.jpg)
ESI - Edge Side Include• Moves assembly of the web page from the
web server to the Edge server
• Allows easy caching of web page parts
• Can significantly increase caching rates and
lower origin load
![Page 13: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/13.jpg)
Example without ESI<?php
require(‘user-header.php');
require('left-body.php');
require(‘user-body.php');
require('footer.php');
?>
• This happens on the Origin• The result changes for every user and is non-cacheable
![Page 14: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/14.jpg)
Example using ESI<html>
<esi:include src="http://example.com/user-header.php?u=xyz" />
<esi:include src="http://example.com/left-body.php" />
<esi:include src="http://example.com/user-body.php?u=xyz" />
<esi:include src="http://example.com/footer.php" />
</html>
• This happens on the Edge
• Left-body and footer are cacheable
![Page 15: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/15.jpg)
Deploying CDN
![Page 16: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/16.jpg)
Most Important
Use CDN experts
www.globaldots.com
![Page 17: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/17.jpg)
Language• POP
• CHR
• Edge
• Shield
• TTL
• Downstream / Upstream
![Page 18: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/18.jpg)
Application• Whole web site Static assets
• IP address
• Application purging
• Split static from dynamic content
![Page 19: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/19.jpg)
Infrastructure• Check Load balancers
• Origin failover
• CDN failover – Multi CDN?
![Page 20: CDN implmentation consideration](https://reader034.vdocuments.mx/reader034/viewer/2022051609/5474a75db4af9fc80a8b57a7/html5/thumbnails/20.jpg)
Monitoring• Access logs
• CDN availability