Live data from Hacker News

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

alexolivier.me

371–380 of 397 posts

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

#371
post #312

Earlier quoted context omitted.

A few years ago I set up a $5 DO droplet with the Dokku image they provide. Years later it's still running all of my side projects in production, even though I moved from the $5/mo plan to the $20/mo plan as my business grew and my needs increased. I have 15 containers connected to 10 Postgres instances running right now handling tens of thousands of views per month for $20/mo, AND I have Heroku-like convenience to d…

Are you hosting the database on the same instance? Also, how are you doing automatic backups? Thanks

Yes the database is on the same instance. The biggest downside to that is my droplet gets low on space as the database grows but so far it hasn’t been too much of an issue. The growing need for SSD space has pretty much matched the growing need for RAM as I increase the droplet size.

For backups: I have a bash script set up every night to run a pg_backup and send it to an S3 bucket where I store the last 7 days of backups. All static files (images mostly) are hosted on S3 with no real backup but that works fine for my particular use case.

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

#372

Earlier quoted context omitted.

Interesting! How/why are they so much (~8x) cheaper than e.g. DigitalOcean or Linode? Or am I missing something and they're not comparable in some way?

A lot of things related to hosting (land, power, cooling, bandwidth) are cheaper in Germany versus where Linode and DigitalOcean are located.

Sure, but 8x cheaper? And I think most non-European hosting companies have datacentres in Europe; I assumed they'd compete on price but apparently not.

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

#373

Earlier quoted context omitted.

Strato.de (German) has some great plans. Just install docker one their linux vserver and you’re good to go. https://www.strato.de/server/linux-vserver/

Interesting! How/why are they so much (~8x) cheaper than e.g. DigitalOcean or Linode? Or am I missing something and they're not comparable in some way?

I manage one app on a DO droplet and one on a Strato vserver and the docker setup I use for both is almost identical. So it's definitely comparable.

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

#374
post #254

Earlier quoted context omitted.

> since I don’t want to risk having my entire google account locked due to “suspicious activity”, whatever that might mean. Agreed. I often second guess my usage of various Google apps and services since I don't want to trigger some process that I would have no way of ever knowing. The recent case of someone getting banned from using Apple Pay comes to mind ( https://news.ycombinator.com/item?id=20841586 )

Sounds like self-censorship in dystopia full of secret laws. I'm glad Google isn't running a country.

Not only Google, just visit any online space and you will see a lot of arbitrariness, inconsistent rules, obscure decision making, etc. I honestly think that the best people to rule a country are the politicians: They are corrupt, narcisists and dangerous but at least they are somewhat professional in what they do.

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

#375

Earlier quoted context omitted.

Here's a few: https://news.ycombinator.com/item?id=17115643 https://news.ycombinator.com/item?id=19124324 https://news.ycombinator.com/item?id=19432702 https://news.ycombinator.com/item?id=21247759

Google's main problem here is they can't tell their side of the story . If only they had some process where a customer could agree to have Google publicly explain why an account was banned, I think we'd see many more explanations along the lines of "This customer was using Google cloud to launch Ddos attacks" or "This customer sent bomb threats to the president".

Downvote - Google could reply here on HN, which is one of (if not THE) top developer site in the world.

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

#376

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…

Wow is the ban thing a real risk that anyone can substantiate? That's horrifying and I had the same thought that everyone else did about using a burner email, which is apparently impossible.

Personally I don't think I can go straight up Heroku or DO because I like things like firestore/dynamo, S3, etc etc. But this is pushing me to move everything I do over to AWS. The only thing is I am very comfortable in GCP, so that would kind of suck. bleh.

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

#377

Earlier quoted context omitted.

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.

$1500/month is a massive cost for a side project, I'd rather have it go offline by far.

Side project turned business. It’d paid for itself and more.

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

#378

Earlier quoted context omitted.

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.

What was that cost for? 60k visitors is less than 1 req/sec, something a terribly small server should be able to handle with relative ease. We’re there a lot of static assets not served by a CDN or cache?

It was a SaaS. Required heavy database and memory work. But it supports my point that a surprise $100k is a far fetched concern.

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

#379
> The service will create more and more instances of your application up to the limit you defined (currently the cap is 1000 instances).

> As long as you have architected your application to be stateless - storing data in something like a database (eg CloudSQL) or object storage (eg Cloud Storage) - then you are good to go.

Won’t this just defer the scalability issue to the SQL part of the application? It’s nice that the stateless REST part can be scaled almost infinitely, but if the SQL part doesn’t offer the same scalability, what’s the point? Last time I looked, CloudSQL didn’t offer this kind of scalability.

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

#380

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…

What if you use a different google account only for this?
Post reply on HN