Live data from Hacker News

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

alexolivier.me

251–260 of 397 posts

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

#251
post #250

Earlier quoted context omitted.

Cloud Functions isn't 1:1 IIRC, once a Function is booted it keeps serving more requests once warm.

No, the concurrency of GCF is always 1. If the latency of your code handling request is 1s, to handle 100 requests per second you'll need to have 100 instances running.

You're right, thanks for letting me know

Link for reference: https://cloud.google.com/functions/docs/max-instances

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

#252

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'd much rather overpay $20-50/month I don't think the alternatives are nearly that expensive. Vultr, DigitalOcean and others have virtual private servers for only $5 per month. They're small instances but totally fine for side-projects. I run a cheap $5/month VPS and it was able to withstand my project making the HN front page without issues. I don't use Google cloud hosting for the same reasons as you, I don't wa…

+1 to just running something on a cheap Digital Ocean style box.

In our modern cloud age, I think we've forgotten how much a single box can actually handle (and how few of us actually _need_ to "scale" from day one). Hacker News front page isn't really that much traffic in the grand scheme of things. My $5 DO instance handled it without a sweat. Hell, even "real" projects can still work under this approach. A $20/mo DO box, sqlite, and a few shell scripts can get you shockingly far ^_^

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

#253

Earlier quoted context omitted.

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.

wut? are you suggesting that if there's a cost overrun you just shutdown the LLC? that sounds like a loop that couldn't possibly be true? when you sign TOS you agree to be responsible for service fees. if being an LLC indemnifies against these sorts of charges it would also indemnify you against other legitimate fees? take out a business credit card and cash advance and then close the LLC? free money!

As someone who used to work as an attorney in a past career, there's a policy called "piercing the corporate veil" to handle cases like this. Basically, if the only reason an LLC exists is to protect the owner from consequences of these sorts of shenanigans, the courts can pretend like the LLC doesn't exists for purposes of financial responsibility.

Note that this is a vague, general answer and most certainly does NOT constitute legal advice.

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

#254

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 had the same thoughts: even if I like Google Cloud a lot (I use it extensively at work), I don’t feel it’s safe for me to use it at home, since I don’t want to risk having my entire google account locked due to “suspicious activity”, whatever that might mean. In fact, I recently shut down a personal App Engine service I had been using for myself for a few years just because of this paranoia. The service was not doi…

> 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)

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

#255
post #200
post #196

Earlier quoted context omitted.

I ordered a phone from Google that's been lost in delivery. I have Gmail/documents/photos/music... Should I do a charge-back? Sue them in small claims court? I should never have done business with them.

Absolutely don't do a chargeback. Try to settle it with the package carrier. Google's algorithm can flag a chargeback as suspicious, leading you to be locked out.

This is a delightfully horrifying response... "Don't poke the trillion dollar bear, he might bite you and lock you out of your account!"

(GOOG's market cap as I write this is $985B...)

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

#256
post #138

As a noob I have a question as to what advantages I have using docker compared to just a service like Heroku where I just push the application to them... and I don't bother with docker? To me with my limited understanding this seems like just another step. Now granted when it comes to work, I'm using docker with specifics that I know why I would want / can specify with docker ... but for personal projects this ever c…

Containers are great for packaging an app, ensuring dependencies will be met and avoiding lock-in.

You can use containers on Heroku, by the way.

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

#257

I wont use this for the simple reason that I bought into the Google Appengine stack in the past and it really bit me for several reasons: They force-upgraded the java version. The problem was their their own libraries didn’t work with the new version and we had to rewrite a ton of code. It ended up being insanely expensive at scale. We were totally locked-in to their system and the way it did things. This would be fi…

You're outlining all the reasons why Cloud Run is the successor to App Engine. App Engine was the very first PaaS, came out before Docker, and did things very uniquely in order to try to only allow scalable apps. App Engine standard has to explicitly create special environments for each of their runtimes, and that's slow and expensive. Services like Datastore and Memcache were tightly coupled. Cloud Run fixes all tha…

My understanding is that the 'flexible' version of App Engine runs on the same infrastructure as Cloud Run (and GKE for that matter). IMO running a regular node express app on Node Flexible App Engine isn't that different from running on Cloud Run, and I'm not really using any specific App Engine services (e.g. I don't use datastore, just a regular postgres DB on Cloud SQL). Lets me get up and running quickly with the knowledge I can easily containerize it if needed.

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

#258

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'd much rather overpay $20-50/month I don't think the alternatives are nearly that expensive. Vultr, DigitalOcean and others have virtual private servers for only $5 per month. They're small instances but totally fine for side-projects. I run a cheap $5/month VPS and it was able to withstand my project making the HN front page without issues. I don't use Google cloud hosting for the same reasons as you, I don't wa…

Granted, but those are not 1-to-1 to Google Cloud Run mentioned in the article, I normally use Heroku and the typical "production" server for me is comprised of:

- Hobby server, at $7/month

- Database, there are many but add another $5-$15/month

- Redis, either $0/month or $15/month, depending on the needs

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

#259

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…

Why not just make another Google Account just for this project? It’s what I do since year, basically for every customer I work, I create a new account and even share the credentials with the customer (if he wants it).

Has anyone actually been locked out of Gmail because of a google cloud bill? I don't think they are connected in the sense that your Gmail/Youtube/Android etc account will stop working if you don't pay.

Same with Amazon accounts and AWS bills for that matter.

I understand the concern though... and using separate accounts is probably best practice.

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

#260
post #200

Earlier quoted context omitted.

Absolutely don't do a chargeback. Try to settle it with the package carrier. Google's algorithm can flag a chargeback as suspicious, leading you to be locked out.

This is a delightfully horrifying response... "Don't poke the trillion dollar bear, he might bite you and lock you out of your account!" (GOOG's market cap as I write this is $985B...)

It is horrifying and it should be illegal to provide so little customer service when you encourage deep, irreplaceable investments into your platform.
Post reply on HN