Great article. Just an update: as of serverless 1.40.0 and VS Code 1.32.3, you need to set
"autoAttachChildProcesses": true in your
launch.json for the debugger to work correctly.
Also a trick that I found useful is to put every function in a file with the same name (directory structure doesn’t matter), then use
Thanks for the tip, it really works. One question, since the change is applied to AWS.config, do you think it can improve the performance for other connections as well? Like when I call a lambda function within another lambda function or any other AWS request.
I modified the three functions this morning with the code you recommended from Yan Cui — it’s makes a staggering difference to performance. The minimum latency has dropped to 147ms in my Artillery test just from adding 5 lines — pretty amazing.