question

DerekC avatar image
DerekC asked ·

DeferredResponse Timeout

With the V3 version of the API, we have the option to send response asynchronously using DeferredResponse. In regards to synchronous vs. asynchronous, the documentations states:

"In either case, there is a hard limit of 8 seconds before Alexa times out."

Does this mean Alexa will timeout if the DeferredResponse is not received in 8 seconds, or does Alexa timeout if the subsequent asynchronous message that is sent to the event gateway isn't received within 8 seconds?

Some of our device messages may take longer than 8 seconds to fully process, so we are evaluating if using DeferredResponse as an acknowledgement will suffice.

Thanks for any help.

alexa smart homeapi
10 |2000 characters needed characters left characters exceeded

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

1 Answer

DerekC avatar image
DerekC answered ·

I did not realize that currently DeferredResponse is only applicable to the LockController interface. Other interfaces specify if they support synchronous or both sync and async, but seems that the response is expected within 8 seconds either way.

Also, using the async DeferredResponse for locks does require implementation of AcceptGrant / OAuth for sending events to the Alexa gateway.

These were both clarified in the Alexa Proactive State Updates Webinar.

10 |2000 characters needed characters left characters exceeded

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