Live data from Hacker News

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

alexolivier.me

31–40 of 397 posts

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

#31
post #24

Excuse my ignorance. if a container hasn't been hit in a long time, how long does it take to serve the first request back? Is it spun up or sort of hot paused?

AWS's firecracker can start a VM for your code in under 15ms, but if you need database access and other stuff, you can 'pre-warm' it.

Thanks, that's impressive.

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

#32
post #17

The thing I really want out of these services is the ability to set a payment cap. It’s probably never going to be an issue, but I have anxiety, and I can’t sleep easily knowing that if I fuck up, if someone sinister abuses my application or whatever I may be stuck with a giant bill.

Do-able today with GCP Billing

I thought GCP is alerts not capping?

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

#33
post #16

this is misleading, as cost curves are usually exponential for these types of managed services

How so?

I don't understand what would make it exponential as opposed to merely linear with traffic.

There's nothing in their pricing documentation to suggest this.

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

#34
post #17

The thing I really want out of these services is the ability to set a payment cap. It’s probably never going to be an issue, but I have anxiety, and I can’t sleep easily knowing that if I fuck up, if someone sinister abuses my application or whatever I may be stuck with a giant bill.

It's cheap insurance to create an LLC to protect yourself from extreme situations for this kind of thing. Worst case the LLC goes defunct, but you won't be personally liable.

https://www.nolo.com/legal-encyclopedia/limited-liability-pr...

EDIT: This comment is based on the assumption that the parent was trying to start a side business. I'm certainly not advocating fraud.

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

#35
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 ECS pricing to be an issue (but I’m also not running anything at scale, and I do pay more than a few cents a month — but still under 10 bucks).

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

#37
post #17

The thing I really want out of these services is the ability to set a payment cap. It’s probably never going to be an issue, but I have anxiety, and I can’t sleep easily knowing that if I fuck up, if someone sinister abuses my application or whatever I may be stuck with a giant bill.

Here's a story about why you are right to be anxious: https://hackernoon.com/how-we-spent-30k-usd-in-firebase-in-l...

This was discussed on HN (237 comments): https://news.ycombinator.com/item?id=17661391

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

#38
I've been using Cloud Run for my GPT-2 text generation apps (https://github.com/minimaxir/gpt-2-cloud-run) in order to survive random burst, and also for small Twitter bots (https://github.com/minimaxir/twitter-cloud-run/tree/master/h...) which can be invoked via Cloud Scheduler to utilize the efficiency benefits. It has been successful in those tasks.

The only complaint I have with Cloud Run now (after many usability updates since the initial release) is that there is no IP rate-limiting to prevent abuse, which has been the primary cause of unexpected costs. (due to how Cloud Run works, IP rate-limiting has to be on Google's end; implementing it on your end via a proxy eliminates the ease-of-use benefits)

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

#40

What will the bill look like if your website suddenly hit a big traffic (e.g. someone post your site on HN)?

It goes up of course. Nothing's for free. Don't expect DigitalOcean level of pricing, the premise of cloud is on efficiency and scale, not necessarily being the cheapest raw computing provider when compared to traditional hosting. In other words it increases the elasticity of computation, but the price per unit of computation goes up. (Of course there are cost-savings like ops, security, uptime etc. But if you are ta…

> It goes up of course. Nothing's for free.

Not sure why you write "of course" and "nothing's for free". If you use dedicated hosting with something like Hetzner, "suddenly hit a big traffic" doesn't automatically mean more costs for you. The website might get slower, or even crash, but your pricing will still be the same as it was before.

Post reply on HN