I plan to use AWS lambda + API gateway to act as middleman between my JS client and my devices.
Instead of directly calling particle.callFunction on my customer facing website I will make an http request to Lambda that, in turn, will invoke the function.
However, I’ve found that some of my functions take some time to complete and as such I have to leave my lambda timeout very high to avoid it returning a failing status code.
Much better, for me, would be to submit my operations to a queue, get a 201 and move on. I could do this myself (by using AWS SQS to buffer my requests) but was wondering if there is a better way?