6

Most of the CDN's that I've seen require you to upload your content in advance. I'm looking for a CDN that, upon receiving a request for a resource it hasn't seen, will contact my application server. If the application server returns something, it should be sent to the user and then cached in the CDN. If not, it should just return a 404. If the user requests an unexpired item, the CDN should just serve it without bothering my app server.

Does anything like this exist? Is there a way to get Cloudfront to work like this?

Bill
  • 302
  • 1
  • 3
  • 7

7 Answers7

8

The technology you're looking for is called Origin Pull. I'm not sure about Cloudfront specifically, but most CDNs are able to offer this.

gjb
  • 196
  • 1
1

AS mentioned, you want "origin fetch" services from a CDN. SimpleCDN, MaxCDN, Voxel, CacheFly and others offer this at the low end with contract-less pay-as-you-go options. See here for a list of many of these smaller CDNs.

As for the big boys, Level3, Akamai, and Limeleght offer this with contract-based terms.

rmalayter
  • 201
  • 1
  • 2
1

Origin pull is also available on MaxCDN.com a cost-effective Content Delivery Network (CDN). It works seamlessly with all hosting providers, including Amazon's S3 and Rackspace. And depending on your CMS platform, you can easily and quickly integrate the CDN on your website, with CMS's such as Wordpress, Drupal, Magento, vBulletin, Joomla CDN and more.

0

You're looking for the Coral CDN, basically. It's dead easy to use, and free!

Bill Weiss
  • 101
  • 2
0

Yes, Cloudfront will do this quite easily. I used it to offload 2/3 of our server image traffic.

  1. Set up Cloudfront with a Custom Origin pointing to your web server.
  2. Set up a cname in your dns entries that points to the assigned Cloudfront server.
  3. Then send all your image requests to your cname server with the path to image on your web server.

Requests to images on your web pages like www.example.com/images/thisimage.jpg becomes a request to media.example.com/images/thisimage.jpg and Cloudfront does all the rest by pulling the image and serving subsequent requests.

Fiasco Labs
  • 2,492
  • 14
  • 11
0

You can find more about Origin Pull providers also in discussion at StackOverflow. AFAIK most of pay-as-go CDN providers, as CDN77.com or Maxcdn, has this feature as the simpliest and standard one. It is quite easy for configuration as there is no need for any downloads, just preset directly on CDN.

Something about it also on it here.

RichardM
  • 11
  • 1
-1

Akamai will do this for you.....

John Conde
  • 86,484
  • 28
  • 150
  • 244
Nick O'Neil
  • 157
  • 2