Live data from Hacker News

Deploy your side-projects at scale for basically nothing – Google Cloud Run

alexolivier.me

201–210 of 397 posts

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#201
post #124

Earlier quoted context omitted.

Cloud hosting is great for businesses, that's why I believe that every web developer should experiment with those services. It's not great for personal use for the reasons you've stated - the risk of your service going down due to it being viral is much easier to bear than the risk of having to pay outrageous amounts of money for those services in that event. If your hobby project goes down for a while nobody will re…

Years ago I ran a side project that went viral. It grew to 60k visitors a day and my monthly cloud expenses were around $1,500. I cannot fathom a scenario where you get a surprise $100k bill from a viral hit. Anytime my project went down due to scaling, it was painful. You don’t get many chances at going viral.

I’ve seen surprise bills not far off that, not from a viral hit, but from bugs in the firmware for connected devices which suddenly switched them from taking 1 action/10 minutes to 1 action/3 seconds. Needless to say firmware QA has become much more focused since that incident.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#202
post #150

This article fails to mention the issue of needing a database. It doesn't matter how seamlessly your application can scale if your data backend won't scale with it. They mention Cloud SQL, which is of course instance based and would run into scaling issues if your app got suddenly hammered. Not to mention, the cost isn't $0 if your app gets 0 traffic, you are going to have to pay to keep that running around the clock…

AWS has Aurora Serverless ( https://aws.amazon.com/rds/aurora/serverless/ ) for that purpose with MySQL and Postgres compatible engines. But I haven't heard anyone using it for side projects yet.

They also have RDS Proxy (https://aws.amazon.com/rds/proxy/) that lets you pool connections from tons of lambda instances in order not to overwhelm your DB when scaling up.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#203

I have used it for work-related reasons and indeed the service is quite nice. But I don't use Google Cloud Run for personal projects for two reasons: - No way of limiting the expenses AFAIK. I don't want the possibility of having a huge bill on my name that I cannot pay. This unfortunately applies to other clouds. - The risk of being locked out. For many, many reasons (including the above), you can get locked out of…

I just did some math on their calculator: https://cloud.google.com/products/calculator/ I think some folks may be overestimating their ability to put a dent in Google's infrastructure. 1 CPU 2GB memory 80 concurrent requests per container instance 1000ms execution time per request 5kb outbound network bandwidth per request 100 million requests per month $120.19 per month What if we bump it up to 100kb per request? In…

Your setup is unrealistic. 100 million requests per month with 80 concurrent requests?. 1000 $ is cheap if you try to run wikipedia.com fully managed.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#204

I have used it for work-related reasons and indeed the service is quite nice. But I don't use Google Cloud Run for personal projects for two reasons: - No way of limiting the expenses AFAIK. I don't want the possibility of having a huge bill on my name that I cannot pay. This unfortunately applies to other clouds. - The risk of being locked out. For many, many reasons (including the above), you can get locked out of…

I just did some math on their calculator: https://cloud.google.com/products/calculator/ I think some folks may be overestimating their ability to put a dent in Google's infrastructure. 1 CPU 2GB memory 80 concurrent requests per container instance 1000ms execution time per request 5kb outbound network bandwidth per request 100 million requests per month $120.19 per month What if we bump it up to 100kb per request? In…

I'm not from the US, and the thought of "only" paying $1071/m for a side project which is most likely not generating revenue is mindblowing.

If you give me $1071-$120 = $951/month forever for optimizing an app once I'll optimize it for you :)

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#205

I have used it for work-related reasons and indeed the service is quite nice. But I don't use Google Cloud Run for personal projects for two reasons: - No way of limiting the expenses AFAIK. I don't want the possibility of having a huge bill on my name that I cannot pay. This unfortunately applies to other clouds. - The risk of being locked out. For many, many reasons (including the above), you can get locked out of…

I just did some math on their calculator: https://cloud.google.com/products/calculator/ I think some folks may be overestimating their ability to put a dent in Google's infrastructure. 1 CPU 2GB memory 80 concurrent requests per container instance 1000ms execution time per request 5kb outbound network bandwidth per request 100 million requests per month $120.19 per month What if we bump it up to 100kb per request? In…

Silly me I have last week made an infinite loop on Firestore - update to document triggered CloudFunction which updated document and Firestore is fast..

In just minutes I had passed free quota and here I have been lucky because I have checked console.

If I have left that version (and I have been sure it is just innocent commit) for a few hours running I would be up for a surprise.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#206
post #95

Earlier quoted context omitted.

It seems absolutely within amazon's technical ability to allow you to prepay for usage, and then evaluate your use on a per-hour basis. I have a side project that uses AWS at the moment, and while stuff like serverless RDS instances are really cool, it scares me that somehow amazon is going to have a bug which empties my checking account. I've read as much of the documentation as I can find and have done everything I…

Checkout privacy.com you can set merchant daily, monthly or yearly spending limits.

It's very ironical to see the word "privacy" in a thread about "serverless" stuff.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#207
post #72

Earlier quoted context omitted.

You can deploy with a —max-instances flag to prevent infinite scaling. This has been a feature since the Cloud Run beta and has been in GAE forever.

One issue in GAE is that it can take 24 hours to update the billing cap. So if you happen to get a ton of fantastic press coverage one day, your site will go down and there is literally nothing you can do to fix it.

Seems unrelated to capping instance counts, which I assume would go into effect very quickly.

(I work on GCP but not this product)

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#208
post #50

What’s the advantage of GCR over AWS Fargate/ECS? I’ve been running an app on ECS for a couple months now and have been pretty happy with the ease of set-up, load-balancing, auto-scaling etc, though there are still kinks I’m figuring out (SSHing into containers to perform database management, for example, or deploying updated tasks without downtime). Is the main selling point of GCR just its price? I haven’t found EC…

GCR runs containers like Fargate, but scales to zero like lambda, so you only pay for usage

GCR is the container registry and does nothing but store your artifacts.

Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run

#209
post #32

Earlier quoted context omitted.

I thought GCP is alerts not capping?

The 'official' method is programmatically DIY! https://cloud.google.com/billing/docs/how-to/notify#cap_disa...

Damn that's ugly.

I'm luckily still on Azure's MSDN tier...which is hardcapped to 150 bucks.

Post reply on HN