Replies: 1 comment 2 replies
-
It's not hard. But we're not going to change the example in this repo. You can do it yourself by changing
this will initialize the dynamodb client in every invocation, which can potentially add a few hundred milliseconds of latency to every invocation. We don't recommend it. |
Beta Was this translation helpful? Give feedback.
-
For consistency in my codebase, I'm wondering how easy would it be to rewrite this http example using the
lambda_runtime
in place of thelambda_http
?:https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/examples/http-dynamodb/src/main.rs#L56
One reason for doing this is I've noticed
lambda_runtime
doesn't complain aboutSend
missing when instantiating a (dynamodb)Client
inside thefunction_handler
, which I prefer doing.Beta Was this translation helpful? Give feedback.
All reactions