We accelerate websites

15 days free trial Sign up

Media Acceleration Stream to the world

15 days free trial Sign up

Extensive Network Excellent world coverage

Origin shield

Introduction

The following applies only to CDN Static services. Let's assume that your CDN service has 50 CDN Locations (consisting of let's say 200 CDN edge servers) enabled and that you prefetch a 100 MB file. The prefetch request will generate quite a big traffic on your origin server because all 200 CDN edge servers will request the 100 MB file from it. If your origin server does not have a very good uplink (e.g. 10Gbps) then the prefetch request may use all of its available bandwidth. It is usually not what you want because it can cause degraded performance for other visitors connecting to you origin server.

Origin shield is a server or a small family of servers between your origin and CDN edge servers.

your origin server → origin shield → CDN edge servers

The same prefetch request but with origin shield enabled will generate much lower traffic on your origin server because not all 200 CDN edge servers will request the 100 MB file from your origin server but only origin shield will request it and then it will send it to CDN edge servers. So the "big traffic" will happen on origin shield and not on your origin server.

Enabling origin shield

We don't have a product origin shield but with our architecture you can easily create one. Origin shield is simply a CDN service with just two (minimum is one but for redundancy it is recommend to use two or three) CDN Locations enabled. Let's assume that your Origin Domain is mycompany.com and that you want to create a CDN service with Service Domain cdn.mycompany.com and with origin shield enabled.

Create origin shield

Firstly create a CDN service with Origin Domain mycompany.com and with Service Domain shield.mycompany.com and with just two CDN Locations enabled.

Create CDN service on top of origin shield

Secondly create a CDN service with Origin Domain shield.mycompany.com and with Service Domain cdn.mycompany.com. This CDN service can have as much CDN Locations enabled as you wish, it is the CDN service that will serve content to your visitors.

So we have the following setup.

mycompany.com → shield.mycompany.com → cdn.mycompany.com

That's all you need to do to enable origin shield. Now integrate the CDN service cdn.mycompany.com into your website.

Notes

Traffic Costs

With origin shield your CDN traffic costs will slightly increase. A good estimate for the increase is your cache-hit ratio. If your cache hit ratio is 95% then your traffic costs will increase by 5%. So in general your traffic costs will increase by (100% - cache-hit ratio).

Purging

To purge a content from a CDN service with origin shield enabled you must first purge the content from the origin shield CDN service and then subsequently from the CDN service on top of it.

 
  ______     ___     ______     ______  
 /_____//   / _ \\  |      \\  /_   _// 
 `____ `   | / \ || |  --  //   -| ||-  
 /___//    | \_/ || |  --  \\   _| ||_  
 `__ `      \___//  |______//  /_____// 
 /_//       `---`   `------`   `-----`  
 `-`                                    
Europe
  • Athens
  • Bucharest
  • Budapest
  • Copenhagen
  • Dublin
  • Frankfurt
  • Helsingborg
  • Helsinki
  • Istanbul
  • Karlskrona
  • Kharkov
  • Kiev
  • Krasnoyarsk
  • Kungalv
  • Lisbon
  • London
  • Lvov
  • Madrid
  • Milan
  • Moscow
  • Odessa
  • Oslo
  • Paris
  • Stockholm
  • Trondheim
America
  • Arlington
  • Atlanta
  • Bogota
  • Buenos Aires
  • Chicago
  • Dallas
  • Denver
  • Green Bay
  • Los Angeles
  • Miami
  • Montreal
  • New York
  • Portland
  • Provo
  • Queretaro
  • Sacramento
  • San Jose
  • Sao Paulo
  • Seattle
  • Toronto
  • Washington
Contact
  • e-mail: info@cdnsun.com
  • skype: cdnsun.com
  • phone: +1 844 300 9206
  • phone: +420 776 256 872
Blog Twitter LinkedIn Facebook CrunchBase Google+ / Google plus Foursquare Pinterest