Hey all - Seth from Google here. We're really excited to bring Go to Google Cloud Functions (GCF). Please try it out, give us feedback, and let us know if you have any questions!
Cloud Functions: Go 1.11 is now a supported language
101–107 of 107 posts
Re: Cloud Functions: Go 1.11 is now a supported language
#102Hey all - Seth from Google here. We're really excited to bring Go to Google Cloud Functions (GCF). Please try it out, give us feedback, and let us know if you have any questions!
This might be a very specific question, but any plans to include packages in the Go runtime for headless Chrome? I know it is already available in Node.js.
I work at GCP and on this project.
Re: Cloud Functions: Go 1.11 is now a supported language
#103Earlier quoted context omitted.
This is a much better solution, I think. Uploading your source code is often easier than uploading your binaries. If, for example, you have a new contributor you don't yet trust creating a cloud function in Go and you know enough Go to review the code, but it's not convenient for you to compile it yourself, you can just upload the code yourself. You can't easily review the binary.
The fact that it's easier to do things this way just shows how immature the toolchain surrounding serverless development is. It shouldn't be difficult to simulate the serverless environment on a workstation, and yet somehow that's a huge gap, even for Lambda.
Re: Cloud Functions: Go 1.11 is now a supported language
#104Earlier quoted context omitted.
This is a much better solution, I think. Uploading your source code is often easier than uploading your binaries. If, for example, you have a new contributor you don't yet trust creating a cloud function in Go and you know enough Go to review the code, but it's not convenient for you to compile it yourself, you can just upload the code yourself. You can't easily review the binary.
Your code review and deployment pipeline should be all automated from day zero. Setting up a CI pays off in the first couple of days in terms of time investment and massive returns on longer term mostly for avoiding human error and confusions that ensues.
Both tools are necessary for fast engineering, but in different contexts.
Re: Cloud Functions: Go 1.11 is now a supported language
#105Earlier quoted context omitted.
One thing that is not super clear from the blog post, and which may be a surpsise to some, is that Cloud Functions will require you to upload your source code. The compilation happens not on your end but on Google servers. This is probably not a surprise for folks who have been using Python or Node for cloud functions, but it is something to think about. I've been thinking of using this approach for a golang MMO game…
Like Screeps? Even more niche? :)
What I'm describing is for implementing MMOs, though.
Re: Cloud Functions: Go 1.11 is now a supported language
#106Since it's compiled (compared to Python or JS), is this faster/lighter?
So, if for your particular application, Go has a faster startup/cold start time than Python or Node, then yes, it'll be faster, overall.
Very difficult to speak about performance in general terms, though.
I will say that there is no kind of wrapper library or wrapper runtime like some other serverless platforms might depend on.
Re: Cloud Functions: Go 1.11 is now a supported language
#107Earlier quoted context omitted.
His post is super unclear but I think he is concerned about someone getting their hands on his source code. In general, a compiled Go binary is not trivial to reverse engineer, so there’s some security through obscurity there.
Not 'someone'. Google.