amazon web services – Node.js update AWS shadow with timeout (synchronous)

With regards to the AWS SDK JS v3 (github.com/aws/aws-sdk-js-v3) and the update IoT Shadow APIs does anyone know if its possible to make a blocking update call with a specified timeout?

The FreeRTOS C API has such an API.
docs.aws.amazon.com/freertos/latest/lib-ref/c-sdk/shadow/shadow_function_wait.html

As you may already know, the IoT Shadow state has the concepts of desired, reported and delta states. These lingering deltas (when a device is offline) does not allow an easy implementation of the A.C.I.D principle. (Atomicity, Consistency, Isolation and Durability). www.bmc.com/blogs/acid-atomic-consistent-isolated-durable/

In our use case, we’d like to make an IoT Shadow update API call and this call should either succeed or fail/timeout within a 30s transaction interval. If the device is online, it will succeed, if not it should fail. We don’t want any lingering states regarding the update.

Read more here: Source link