20
שיקולים בשימושCDN G LOBAL D OTS . COM

CDN implmentation consideration

Embed Size (px)

Citation preview

CDNשיקולים בשימוש GLOBALDOTS.COM

WHAT IS A CDN?

GLOBAL WEB SITE

End users

Servers

WEB SITE WITH CDN

CDN does• Decrease Latency

• Stop server sprawl

• Increase security

• Price

• Performance

• Features

Which CDN?

Traffic

Dumb Smart

Engagement

Low High

Content

Static Dynamic

Smart Traffic• Modify content on the edge

• Conditions and rules

• Content based load balancing

Dynamic content• Really dynamic?

• Network optimization

• Application integration

High engagement• Application integration

• Build integration

• Use built-in reporting

Application integration

examples

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

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

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

Deploying CDN

Most Important

Use CDN experts

www.globaldots.com

Language• POP

• CHR

• Edge

• Shield

• TTL

• Downstream / Upstream

Application• Whole web site Static assets

• IP address

• Application purging

• Split static from dynamic content

Infrastructure• Check Load balancers

• Origin failover

• CDN failover – Multi CDN?

Monitoring• Access logs

• CDN availability