Go Alexa and Lambda! What's the best way?

polaris · · 450 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m interested in building an Alexa skill server on AWS Lambda using Go. I&#39;ve done this using JavaScript but would like to try it out with Go. What&#39;s are good ways to use Go on Lambda and what are good skill servers/packages to use?</p> <p>Here are some of what I&#39;ve seen:</p> <p>Go on Lambda</p> <ul> <li>Apex: <a href="https://github.com/apex/apex" rel="nofollow">https://github.com/apex/apex</a></li> <li>eawsy: <a href="https://github.com/eawsy/aws-lambda-go-shim" rel="nofollow">https://github.com/eawsy/aws-lambda-go-shim</a></li> </ul> <p>Go Alexa Skill Server</p> <ul> <li>Go Skill Server: <a href="https://github.com/mikeflynn/go-alexa/tree/master/skillserver" rel="nofollow">https://github.com/mikeflynn/go-alexa/tree/master/skillserver</a></li> </ul> <hr/>**评论:**<br/><br/>knowledgebethekey: <pre><p>everything the eawsy dudes are putting out right now is awesome, definitely recommend</p></pre>Mteigers: <pre><p>Remind me eawsy uses Python shims whereas Apex is using node shims?</p></pre>grokify: <pre><p>Just saw this performance comparison between eawsy and Apex Lambda Go shims. eawsy shim is 20X faster with 2X less LOC.</p> <p><a href="https://twitter.com/fsenart/status/842336581776220161" rel="nofollow">https://twitter.com/fsenart/status/842336581776220161</a></p></pre>rpk788: <pre><p>I am not familiar with either of the Lambda libraries but I do use the Go skillserver package in a side project I am working on. The main benefit is that it wraps a HTTP server and parses the incoming Alexa request JSON. </p> <p>With that said, you won&#39;t need the HTTP server part for Lambda but it is still helpful for parsing incoming Alexa JSON and serializing the outgoing Alexa response. There are some nice helper methods for creating speech output as well as cards in the Alexa companion app.</p></pre>raff99: <pre><p>If things have not changed Apex uses a node shim that starts the Go application as a separate service, while eawsy uses a pyhon shims that &#34;calls&#34; the Go application built as a shared library, so there is no &#34;IPC&#34; going on.</p></pre>

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

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