Live data from Hacker News

Serverless: A lesson learned the hard way

sourcebox.be

11–20 of 139 posts

Re: Serverless: A lesson learned the hard way

#11
The infinitely scalable cloud services have this big problem with surprise bills. In the old days teams often made do with what was available, now it too easy to spin up more resources.

I'm surprised people still talk about cloud services as being cheaper esp where developers are free to use what they want.

Re: Serverless: A lesson learned the hard way

#13

"The actual cost is now $206 and over $1000 forecasted, it makes me think twice about using pay-per-use services in the future." Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. Also, never use such services without being sure to configure such settings. I like to think of this as a self-inflicted "DDOC" attack: Distributed Denial of Capital. Bes…

> Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. None of the "Cloud providers" offer that. They "claim" that it could impact service - yeah, service of debt that you owe them.

[deleted]

Re: Serverless: A lesson learned the hard way

#14

"The actual cost is now $206 and over $1000 forecasted, it makes me think twice about using pay-per-use services in the future." Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. Also, never use such services without being sure to configure such settings. I like to think of this as a self-inflicted "DDOC" attack: Distributed Denial of Capital. Bes…

If you really wanted, you could create a script that after a certain billed amount gets reached switches your site via route53 over to a static s3 page that says "down for maintenance" or something until you figure out why your forecasted billing amount is so high. forcastedSpend is an object you can call via api: http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/...

and a SDK like boto3:

http://boto3.readthedocs.io/en/latest/reference/services/bud...

Re: Serverless: A lesson learned the hard way

#15

"The actual cost is now $206 and over $1000 forecasted, it makes me think twice about using pay-per-use services in the future." Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. Also, never use such services without being sure to configure such settings. I like to think of this as a self-inflicted "DDOC" attack: Distributed Denial of Capital. Bes…

> Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. None of the "Cloud providers" offer that. They "claim" that it could impact service - yeah, service of debt that you owe them.

Azure has this. When you hit your spending limit, it shuts down your services.

Re: Serverless: A lesson learned the hard way

#17
This is not a "Serverless" problem; this is a mistake a developer made that used a pay-per-use system. If I write code that launches EC2 instances and I accidentally set it to launch an instance every second instead of minute because I divided wrong, that's my fault.

Re: Serverless: A lesson learned the hard way

#18

Earlier quoted context omitted.

> Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. None of the "Cloud providers" offer that. They "claim" that it could impact service - yeah, service of debt that you owe them.

Azure has this. When you hit your spending limit, it shuts down your services.

They didn't a year and a half ago. Created a 3k bill for my employer over RemoteApp. Yeah, charge per user, they said. Oh yeah, min 20 users, and we round up - of course in small print at the time.

Unless I have hard guarantees, I give "cloud providers" re-loadable cards. Can't take more money than what's on there.

Re: Serverless: A lesson learned the hard way

#19

Earlier quoted context omitted.

> Never use a pay-per-use service that does not include a reasonable "turn off after $X" feature and appropriate warnings. None of the "Cloud providers" offer that. They "claim" that it could impact service - yeah, service of debt that you owe them.

Azure has this. When you hit your spending limit, it shuts down your services.

And now we wait for the first reports of production services that were shutdown due to spending limits :)

Re: Serverless: A lesson learned the hard way

#20
post #10

Off topic, but the "serverless" moniker needs to die. I propose "adminless" as in "server I don't have to admin, configure, or patch" as being much more descriptive of whats really going on.

Well, it's not adminless either, as AWS have lots of them keeping the hosts alive and running.

But if you can ignore that, you can probably also ignore the fact that your code runs on a server.

Post reply on HN