News for hackers. Stuff that matters.
Re:Ask HN: Cheapest/easiest way to host a static site? by BrandoElFollito on Friday March 26, 2021 @04:54PM (#26596815)
Except if you get hit by a DDoS.

The fact that you cannot put a cap on your spending is infuriating (the official AWS answer is "we do not want to break your business" (even if I want to)).

To be fair, some complaining or crying in such cases usually gets your bill reversed.

Re:Ask HN: Cheapest/easiest way to host a static site? by mtlynch on Friday March 26, 2021 @10:06PM (#26599215)
You don't mean literally distributed denial of service attack, right? It's super easy to keep serving a static resource, so I think you'd need a huge amount of traffic to put a dent in Firebase's static hosting capacity.

I've had spikes of up to 300k visitors to my Firebase blog in a month, and the bill was like $150. It seems hard to get bitten by huge surprise costs from a blog on Firebase static hosting, even if someone's using a botnet to try to drive up your bill.

Edit: Thinking about it a little more, I guess you could find the largest resource on a blog and direct your botnet to download it nonstop repeatedly, and that would be orders of magnitude more expensive than even large organic traffic.

Re:Ask HN: Cheapest/easiest way to host a static site? by dkarras on Saturday March 27, 2021 @04:59AM (#26600993)
That is... $150 you definitely didn't have to spend.
Re:Ask HN: Cheapest/easiest way to host a static site? by BrandoElFollito on Saturday March 27, 2021 @03:47AM (#26600713)
> so I think you'd need a huge amount of traffic to put a dent in Firebase's static hosting capacity.

No, I was referring to your bill, when your resource usage spikes (really spikes, as in sustained Gbps+ traffic spikes). Many people were taken aback by the unexpected bills.

Re:Ask HN: Cheapest/easiest way to host a static site? by villasv on Friday March 26, 2021 @05:54PM (#26597435)
You can, it's just very convoluted.

You can set up billing alarms and use alarms as triggers for actions.

Re:Ask HN: Cheapest/easiest way to host a static site? by VPenkov on Friday March 26, 2021 @08:07PM (#26598491)
One of those stories that get posted every other month about "How I racked up $xx000 bill for Firebase" explained that they had billing alarms but they weren't exactly real time.

Also, you might be the main/only site administrator, in which case falling asleep might end up badly for you.