|
|
|
|
|
by alanfranz
1856 days ago
|
|
Sidenote: unless you think you can get really, REALLY popular, you won't hit a CDN-deserving load. My own homepage/blog is hosted on a cheap 100mbps box on OVH (the server has 16gb of RAM but the CPU is from ~10 years ago or so); I use self-hosted Ghost with a caching nginx reverse proxy. Cache expiration is around 30 minutes (I think). The price for such box is around 20 EUR/month for the whole server. In order to crash such an instance I'd need an insane amount (of course now that I need the hard numbers I cannot find the log I had dumped at the time with Locust) of simultaneous users - something that never got close to happening, not even in those couple of times where I reached the frontpage on HN. My best posts got the box/bandwidth at around 1% the load that was needed to start dropping a significant number of requests. Don't optimize for the problems you wish you had. |
|
I don’t agree. A few months ago my blog post on CRDTs got 100k views within a week after landing on the top of HN. It’s just hosted on ghost with some poorly written custom theme that loads a ton of CSS for some reason. The VPS I host it from wouldn’t have dealt with the traffic - it served over 50 gigs within a week; and that’s over my VPS’s monthly cap iirc.
I have the whole site behind Cloudflare’s free plan and it handled the load flawlessly. And cloudflare also makes the webpage load faster for everyone. It seems like a no brainer to me.