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.
Deploy your side-projects at scale for basically nothing – Google Cloud Run
31–40 of 397 posts
Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#32The 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
Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#33this is misleading, as cost curves are usually exponential for these types of managed services
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
#34The 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.
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
#35Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#36Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#37The 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...
Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#38The 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
#39Re: Deploy your side-projects at scale for basically nothing – Google Cloud Run
#40What 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…
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.