Using Go to Build Serverless Apps

blov · · 509 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Is it frowned upon to use Go to build Serverless Apps? Go is one of the supported languages for AWS Lambda but for Google&#39;s own Cloud Functions only Node.js is supported.</p> <hr/>**评论:**<br/><br/>SleeplessInS: <pre><p>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.</p></pre>Pawda: <pre><p>It&#39;s a fairly new feature on AWS. Yet, stats shows a very good adoption, give it time! </p></pre>Jlocke98: <pre><p>Based on some benchmarks from openfaas, go has some of the quickest cold starts out of any language. Google doesn&#39;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&#39;t have a big use case for FaaS internally</p></pre>SeriousM00nlight: <pre><p>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.</p> <p>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: <a href="https://github.com/tmaiaroto/aegis" rel="nofollow">https://github.com/tmaiaroto/aegis</a></p> <p>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.</p> <p>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.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

509 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传