Elliot Haughin

Weblife

Thoughts

  • About to pay for moblie me. Absolutely love the service so far. Will be well worth it!
  • Time for bed. I'll forget I've changed my hair and get a shock when I look in the mirror tomorrow!
  • Hair finished, and it's very very black!
  • Dying my hair. First time I've done by own. Hope it comes out ok. I'll see in 30 minutes!
  • Down the pub with the church crew. It's strange discussing the preach over a cold pint!
  • Anyone going to the 5pm service at hillsong London? It's gonna be great!
  • The perfect night. Lots to drink, house party with friends, no hangover and a fried breakfast. Brilliant!
  • Phoned dell about my fried graphics card in my xps. This warranty is great! Engineer coming to my work to replace the card on Tuesday!

Tunes

  • 17 hours agoSwitchfoot – Meant to Live
  • 17 hours agoJet – Hold On
  • 17 hours agoTrain – Ordinary
  • 17 hours agoDashboard Confessional – Vindicated
  • 18 hours agoMe First and the Gimme Gimmes – She Believes In Me (Kenny Rogers)
  • 18 hours agoMe First and the Gimme Gimmes – On The Road Again (Willie Nelson)
  • 18 hours agoMe First and the Gimme Gimmes – Goodbye Earl (Dixie Chicks)
  • 18 hours agoMe First and the Gimme Gimmes – San Francisco
  • 18 hours agoMe First and the Gimme Gimmes – My Boyfriend's Back
  • 18 hours agoMe First and the Gimme Gimmes – Blowin' in the Wind

Amazon S3 - The future of all our storage needs?

Posted by Elliot on Saturday, February 2nd, 2008

Since I discovered Amazon’s S3 (Simple Storage Service) I’ve been curious about it.

Firstly, it has a very unusual business model; offering unlimited amounts of storage and bandwidth, charging you for what you use.
Their rates are also suprising low:

United States

Storage
$0.15 per GB-Month of storage used
Data Transfer
$0.10 per GB - all data transfer in

$0.18 per GB - first 10 TB / month data transfer out
$0.16 per GB - next 40 TB / month data transfer out
$0.13 per GB - data transfer out / month over 50 TB

Requests
$0.01 per 1,000 PUT or LIST requests
$0.01 per 10,000 GET and all other requests*
* No charge for delete requests

Europe

Storage
$0.18 per GB-Month of storage used

Data Transfer
$0.10 per GB - all data transfer in

$0.18 per GB - first 10 TB / month data transfer out
$0.16 per GB - next 40 TB / month data transfer out
$0.13 per GB - data transfer out / month over 50 TB

Requests
$0.012 per 1,000 PUT or LIST requests
$0.012 per 10,000 GET and all other requests*
* No charge for delete requests

Data transfer “in” and “out” refers to transfer into and out of Amazon S3. Data transferred between Amazon EC2 and Amazon S3, is free of charge (i.e., $0.00 per GB), except data transferred between Amazon EC2 and Amazon S3-Europe, which will be charged at regular rates.

So, say for example you are hosting 25,000 Files at 35GB of data,
and you push out 2.2TB of bandwidth per month:

IN TO S3
35 X $0.18 (Storage in Europe) = $6.30
(25,000 / 1,000) X $0.012 (PUT Requests) = $0.30
35 X $0.18 (Transfer in to S3) = $3.50

OUT OF S3
2,252.8GB (2.2TB) X $0.18 (Transfer out, Europe) = $405.50
(25,000 / 10,000) X $0.012 (GET Requests) = $0.03

TOTAL = $415.63!

These low prices make the service extremely affordable… And that’s without compromising reliability or speed of the service.
Amazon S3 uses Amazon’s huge array of servers around the world to host your files across many servers in many different locations. If one server goes down, your file is available from somewhere else. And, if that file becomes extremely popular, other servers can distribute the load. The S3 Network can also dynamically copy very popular files to additional servers to cope with temporary load spikes.

This extremely affordable, reliable, intelligent, fast hosting solution is just fantastic.
I’ll be using Amazon S3 to power the new version of FilePanda, a filesharing service.

If anyone’s interested in using S3 to host files please take a look at my CodeIgniter port of neurofuzzy’s class

To set up the library, open it up in your text editor and enter your key and secret key at the top of the library.

// -----------------------------------------
// -----------------------------------------
// your API key ID
var $keyId = "";
// your API Secret Key
var $secretKey = "";
// -----------------------------------------
// -----------------------------------------

Here’s an example of how to use the library:

$contents = file_get_contents($path);
$this->load->library('s3');
$this->s3->putObject($filename $contents, $bucketName, 'private', $file['type']);

Sign up for S3 and give it a go… it really is an excellent service, and I’d recommend giving it a try.

Posted in: dev, web 2.0.

3 Responses to “Amazon S3 - The future of all our storage needs?”

  1. Felipe Diesel Says:

    And what about transfer in the server where your site is hosted?

    You will pay 2 times when you get a file and plus 2 when you download. Or you give directly a link to S3?

  2. Dave Salazar Says:

    It is a great service to provide, but I don’t think the prices are that low.

  3. Matthew Lanham Says:

    Dave, in terms of pricing you’ll be hard pushed to find a reliable, secure host who can provide a GB of bandwidth for $0.18 which is only £0.09 in the UK

Leave a Reply

Outside ChurchOutside ChurchOutside ChurchOutside ChurchOutside ChurchOutside ChurchOutside ChurchHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse PartyHouse Party