Use Amazon CloudFront as a CDN Origin Pull instead of Push.
Today I’ve learned something awesome. It’s been a while since I discovered the CDN’s, Amazon S3 and so on.
For all my blogs and sites I’ve set up Amazon CloudFront with Amazon S3 (Push). Wich basically means you have to upload all the files to Amazon S3 in order to serve it from CloudFront.
But here’s the dealio: I had my main blog (Quicoto Blog) running for years. With a lot of attachments. It was almost imposible to upload all of them using the plugin.
So I used flickr to host my photos instead of my hosting since then.
Today that has changed. With the Origin Pull CloudFront you don’t need to upload anything to Amazon. When a user request a page (files) CloudFront checks if it has the files. If not it will pull it from your hosting.
What does it mean?
It means I don’t need to upload all the previous attachments from the past years. If a user loads an old post, CloudFront will pull the files and serve them. Neat, isn’t it?
It also means I can get rid of flickr (finally) 🙂
Now I encourage you to use CloudFront with origin pull, you will hugely increase your response time 😉
Are you already using some sort of a CDN service?