I am working on a simple Lambda function and I was wondering if I could pass in client (dynamodb this time) to the handler, so we do not re-connect for every request.
Is it possible to extend this macro to have a second option so I can add the client all the way down to the functions which are actually talking to the database.
I'm not familiar with lambda_http. By moving it into the closure, you can have it available inside the router function. If you can pass it on from there, yes.