Saturday, 1 September 2018

Best practices for data required from an http call

I am writing an Alexa skill that needs to...a) Pull config data from DynamoDBb) use that data to make several HTTP calls to receive JSON datac) Parse the data received from the HTTP calls and format it for the Alexa repsonse​What is the best practice for this? Should I cascade the calls into callbacks?Or should I run the Dynamo call synchronously, then the HTTP calls in parallel (they are not dependent on each other)?​I'm new at this, but how would I run something like this...​1) Synchronous A()2) Parallel B() and C(), which are dependent on variables set from A()3) D(), which is dependent on data from B() and C().4) Return data from D()​Thanks!

Submitted September 02, 2018 at 06:39AM by ultralame

No comments:

Post a Comment