Is it frowned upon to use Go to build Serverless Apps? Go is one of the supported languages for AWS Lambda but for Google's own Cloud Functions only Node.js is supported.
评论:
SleeplessInS:
Pawda:This is because Google Cloud feature velocity is 1/10th that of Amazon Web Services... And what is interesting is that Google originally had only AppEngine which was actually like Lambda functions before they were cool. And now when they are cool, Google again missed the boat.
Jlocke98:It's a fairly new feature on AWS. Yet, stats shows a very good adoption, give it time!
SeriousM00nlight:Based on some benchmarks from openfaas, go has some of the quickest cold starts out of any language. Google doesn't really develop their cloud for external customers, they just have the essentials and whatever they end up spinning off from internal use (spanner Borg/kubernetes, grpc, pretrained models for image, audio and textual analysis, etc). My guess is that Google doesn't have a big use case for FaaS internally
No way. I don’t think it’s frowned upon. It’s just really new. We used to use shims before but they weren’t perfect. They could potentially be a little slow, but that wasn’t the biggest issue with them (I actually don’t think performance was at all). It was more inconsistencies and annoyances. But now with native support, it’s awesome.
I’m now working on a lightweight framework for Go based Lambdas designed to speed up your development. It takes tons of boilerplate out of the equation. Uses XRay for everything, etc. If you want to get started super fast to play around, give it a look: https://github.com/tmaiaroto/aegis
Even without a framework, it’s pretty easy to get going. They did a good job converting all the incoming JSON events to structs. Not everything, but most things.
I’ve been finding it really fun to build Lambdas with. Super super fast to get things cranked out and performance is pretty good. You take no penalty for using a different language. In fact I find Go faster than some others. So don’t worry about that. Again, I don’t see it as frowned upon to be using Go. I just don’t think many do — yet.
