Skip to content

Comment on Cloud Run Button: Click-to-deploy your Git repos to GCP

Comments

i want to love all these cloud run app engine cloud function type things (and amazon type equals), but it seems like stuff takes like 30 years to start up if it hasn’t been touched for a little bit even for super simple functions... is this stuff just near unusable unless you’re patient or like super baller with billions of hits per second?

It depends on the language you're using and how you manage your dependencies.

If you're using Java, see this writeup for how different frameworks can affect startup time: https://medium.com/google-cloud/java-frameworks-performances...

Similarly, if you're using Node or Python, you might want to see if any of your dependencies are enormous with lots of files and slow startup time -- you can check this locally by timing how long it takes to get to the initial listen() call and just print that wall time as you adjust dependencies.

If you're building Golang and you're seeing slow cold starts... I have no idea how you're doing that. For development, a lot of us on the open source http://knative.dev/ side are using Go http servers that take tens of milliseconds to start up, so there's probably some other initialization that's slowing you down.

App Engine Flex has to spin up a Compute Engine VM so deploys are slow. Cloud Run deploys containers to Borg so it's significantly faster.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.