3 ms·
> Error establishing a database connection Based on the title I'm guessing this could have been delivered as a static web page delivered by a CDN. I've never
by baobabKoodaa 6y ago
> Error establishing a database connection
Based on the title I'm guessing this could have been delivered as a static web page delivered by a CDN.
I've never understood why some people want to set up their own web servers to deliver static content.
- s_dev 6y ago>I've never understood why some people want to set up their own web servers to deliver static content. I've a Digital Ocean droplet running several static sites for €5 a month. Whats the problem?
- baobabKoodaa 6y agoThe problem is that this website is down and no-one can access its content. This problem would not exist if the author had simply released their static content on a CDN. Your 5€ DO droplet is not helping me access this content.
- Macha 6y agoDon't know if it's a personal site or not, it sounds like it is. But at least my case is that a VPS provider provides a hard stop to spend. Sure, your service will go down if you get too much traffic, but that's a risk I'm happier with than a potentially unbounded AWS bill. That said, I've topped HN before and nginx happily handled that load on a 2 vCPU / 2 GB RAM host with a static site. A lot of these personal site meltdowns are Wordpress with no caching plugins.
- fractionalhare 6y ago> Sure, your service will go down if you get too much traffic, but that's a risk I'm happier with than a potentially unbounded AWS bill. The last time an article on my site reached the top of HN, my AWS bill was a couple of dollars for the month, across S3, Cloudfront, Athena and SNS. I get the concern that you'll spend more than you intended with AWS, but it's honestly hard to blow a budget on a static site hosted in S3 and served by Cloudfront. Those two services have heavy guard rails on what you can accidentally commit to doing, unlike the myriad compute services.
- paulgb 6y agoThere's also services like Vercel, Netlify, and GitHub pages with generous free tiers and minimal setup for SSL, CDN, etc. If you're more comfortable paying for something, it's easy to set up a prepaid BunnyCDN to hit an S3 bucket.
- baobabKoodaa 6y agoYou can set a hard cap of 0€ when you deliver static content on Netlify or GitHub Pages.
- sct202 6y agoIP lookup says it's hosted by a shared web host (InMotion), so the writer isn't running his own server.
- baobabKoodaa 6y agoThe point is this is static web content; it should be delivered by a CDN, but it's not, and that's why it's down. If it was delivered by a CDN it wouldn't be down.