I'm interested in building an Alexa skill server on AWS Lambda using Go. I've done this using JavaScript but would like to try it out with Go. What's are good ways to use Go on Lambda and what are good skill servers/packages to use?
Here are some of what I've seen:
Go on Lambda
Go Alexa Skill Server
- Go Skill Server: https://github.com/mikeflynn/go-alexa/tree/master/skillserver
评论:
knowledgebethekey:
Mteigers:everything the eawsy dudes are putting out right now is awesome, definitely recommend
grokify:Remind me eawsy uses Python shims whereas Apex is using node shims?
rpk788:Just saw this performance comparison between eawsy and Apex Lambda Go shims. eawsy shim is 20X faster with 2X less LOC.
raff99: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.
With that said, you won'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.
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 "calls" the Go application built as a shared library, so there is no "IPC" going on.
