question

Antonio Perez de Tejada Martinez avatar image
Antonio Perez de Tejada Martinez asked

Official support for java Lambdas?

Has anyone had better luck using the alexa skills toolkit in a java lambda? I made a very simple hello world that worked with alexa but I effectively just copied a lot of what they have in the alexa toolkit because it wasnt in maven yet and I could not get it on the lambdas classpath easily. I did learn that since the input to lambdas is just JSON you can just always accept a map of String to Object. Probably not the best idea though. Having better support for java lambdas would be much nicer though because lambdas are way easier to set up than anything servlet related. Here is my hello world java lambda in case anyone is interested github.com/RedbeardTheNinja/SimpleAlexaJavaLambda
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
I wrote a similar HelloWorld sample for Lambda, but I leverage the classes that are provided in the ASK. So there is a lot less unique code and a lot more interoperability between Lambda deployed code code and Web Service deployed code: https://github.com/jjaquinta/EchoProofOfConcepts/tree/master/jo.echo.lambda It's pretty straightforward, but there's also a chapter in my book that walks through that code for extra advice. http://www.amazon.com/How-Program-Amazon-Echo-Development-ebook/dp/B011J6AP26 Neither of this is [i]official[/i], but David Isbitski tweeted about it, so it at least has a thumb's up. :-)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Right now there's nothing official but there have been multiple requests for it so far and we're very much aware of developer desire for this feature. -Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Hi, The updated Java SDK is now live, which includes official support for Lambda, among other changes. Thanks, Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.