4 ms·
Thanks for detailed reply. I'm using Node.js, this is a gist of the Lambda function: https://gist.github.com/paulspringett/ec6d3df65e977342d6ea https://gist.gi
by paulspringett 11y ago
Thanks for detailed reply.
I'm using Node.js, this is a gist of the Lambda function: https://gist.github.com/paulspringett/ec6d3df65e977342d6ea https://gist.github.com/paulspringett/ec6d3df65e977342d6ea
I'm initialising the DDB connection outside the function as you suggest. However, I'm calling context.succeed() not context.done() -- would this be problematic?
I'll try increasing the "memory size" and requesting an increased concurrent request limit too, thanks.
- scottdw2 11y agoYour code looks correct. I would expect something closer to 50ms in the warm path (300ms in the cold path seems about right). I'll take a look tomorrow and see if I can reproduce what you are seeing. I'm not super familiar with API gateway, so there could be some config issues over there. If you want to discuss this more offline, feel free to contact me at "scottwis AT amazon".