Ross Coundon
01/21/2022, 1:53 PMDestroy underlying resources, like sockets. It's usually not necessary to do this. However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. Otherwise, sockets might stay open for quite a long time before the server terminates them.In a Node.js lambda environment, would you say it's necessary to call destroy after processing each time? Seems like unnecessary tear-down and then client creation on next invocation if warm
thdxr
01/21/2022, 1:54 PMRoss Coundon
01/21/2022, 1:55 PM