Ask HN: AWS S3 billed us over $1k. What cheaper alternatives do you recommend?
http://i.imgur.com/sGrYboT.png
What cheaper alternatives do you recommend?
http://i.imgur.com/sGrYboT.png
What cheaper alternatives do you recommend?
But before I would go that route I'd probably first try setting up a proper CDN for the images and take advantage of the caching settings so you can reduce your S3 bandwidth charges.
Also, if you don't already have it, I'd also setup some monitoring on your AWS account to give you a weekly update on account charges & usage so you can see what is going on.
I would stick with S3 for the origin to start with, setting up a bunch of servers to reliably store and serve data is a pain, and one you should avoid it if you can. On the CDN enable origin shielding, and set TTL of the images to never expire if you can. This will lead to images only to be served once from s3. When they upload, link to the CDN'd asset, it will pre-warm the CDN for subsequent requests.
Without knowing the trends in your traffic, how much data you are storing etc, its hard to give you really good advice.
https://github.com/hummingbird-me/ansible-deploy/blob/master...
It is very little work to set up, and you don't need to modify your code and migrate your files to a different service. Setting up a CDN might have been easier but this works out cheaper for us.
S3 is expensive for use cases like an image sharing service. Running your own servers with dedicated, unmetered bandwidth (or at least metered bandwidth in the 20TB+ range) is cheaper.
If 11TB of network transfer is spread out evenly over the month, a 100mbit uplink would handle it with plenty of room to spare. (Your traffic is probably not evenly distributed, it's probably very bursty.)
location ~* \.(?:ico|js|css|gif|jpe?g|png|xml)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}Worth seeing the numbers before you invest in dev & operations.
Or is there anything specific in S3 feature that you need replicated?