-
You use s3 don't you? Don't forget the data transfer costs will go up with bigger files...
We don't have a bandwidth charge from S3.
What I do instead:
- Proxy S3 behind our app (long term durable storage)
- Rename all files to their SHA1 hash
- Serve all files from /api/files
- Put an nginx file cache in front of /api/files (long term slow cache)
- Put Cloudflare in front of nginx (short term fast cache)
- Configure a Cloudflare Page Rule to cache everything
The only bandwidth we ever incur is the very first GET of a file after it's uploaded.
I really focused on this when our S3 cost became our biggest cost.
Now our Linode costs are our biggest costs (at just over £310 per month).
So it's just storage really... and that isn't so bad.
- Proxy S3 behind our app (long term durable storage)
You use s3 don't you? Don't forget the data transfer costs will go up with bigger files...