I think the 3 second overhead in this lambda call is parameter store calls happening on each invocation. The code is converted from uswgi code that called setup 1x, now that setup is called on each invocation. And there is a lib to solve this: https://github.com/keithrozario/lambda-cache https://x.com/mistersql/status/1456074454434463747
Post
November 6, 2021