3 ms·
I built something like this for one of my sites and ended up deeply regretting it when my hosting for the month hit $100 (due to bandwidth/data fees). I now pa
by freedomben 6y ago
I built something like this for one of my sites and ended up deeply regretting it when my hosting for the month hit $100 (due to bandwidth/data fees).
I now pay $5 a month with nginx on Linode/Cloudflare. If you pay for this out of your own pocket and your site doesn't make any money, consider bandwidth/data costs first.
- docuru 6y agoFor the $100, Was it because there was too many static files, plus frequently update? (beside user visits)
- ivanhoe 6y agoProbably, the hidden costs of running in cloud can be tricky...
- freedomben 6y agoYep, frequent updates, lots of high quality images and some videos. That also made a huge spike in traffic painful because I wasn't expecting it. Having a page go viral can have unforeseen consequences :-)
- ivanhoe 6y agoOne should always set alarms on expanses
- sweeneyrod 6y ago$100/month gets you around 1TB on CloudFront doesn't it? If that's all web pages, surely you should be getting enough traffic that you can monetise somehow for the cost to be negligible.
- freedomben 6y agoYep it was right around 1TB :-) (high quality images and videos, combined with a viral page)
- thamer 6y agoWas this with very large files? I remember a similar HN comment a while back and couldn't see how this would happen with a static site. If you store 1 GB of data in total in us-east-1 and serve 1 request per second with an average size of 100 KB, it would cost $1.28 per month[1] for S3 and $25.38 for CF without the free tier, $20.24 total with the free tier. That's much more than most static websites ever store and ever serve. I use S3 & CloudFront for multiple static websites (all low-traffic, < 50 pages with some images) and the cost per site for hosting is less than I pay to renew its domain each year. I used to do these by hand and finally started using Hugo a few years ago, and love the solution. Everything is simple to set up, the SSL cert is free and auto-renewed, the performance is great and the costs are negligible. For the vast majority of small static websites and even up to thousands of page views a day I find this approach ideal. (obligatory: I am not affiliated with Amazon in any way, just a happy customer). [1] on https://calculator.s3.amazonaws.com/index.html https://calculator.s3.amazonaws.com/index.html — S3 page -> Standard, Storage: 1GB, GET: 2628000 requests, returned: 262.8 GB. CloudFront page -> Data transfer out: 262.8 GB, Average object size: 100 KB.
- freedomben 6y agoYes, I host quite a few high-quality images and videos that can really add up. It's not shocking to see it come close to 1 TB a month.