-
Notifications
You must be signed in to change notification settings - Fork 0
Lambda Handler #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Feedback in the Deno Discord channel was, that "Javascript is single-threaded, so JsRuntime / {Main,Module}Worker aren't Send or Sync" and that the Deno Rust bindings aren't supporting this at the moment. I'll try to build a custom Lambda invocation and swap out the AWS Lambda Runtime. |
Well, got it to build after digging trough the code / issues in https://github.com/awslabs/aws-lambda-rust-runtime One interesting thing I learned in this issue is, that the AWS Lambda Rust Runtime is using the multi threaded Tokio executor, where Deno is using the single threaded one. Even tried to use the single threaded version in this context, but that didn't work either. So, had to dig further. Then came across awslabs/aws-lambda-rust-runtime#310 which talks about static lifetime requirements. Don't even really know what that's about, however the problems described there seemed to be familiar. Essentially, I swapped the My hunch that that it's somehow the difference between these two |
Trying to build a Rust Lambda Handler (based on https://github.com/awslabs/aws-lambda-rust-runtime). However, when integrating this I get the following error:
Have tried to move around a few things without much success, just slightly different error descriptions of the same category.
The relevant code for the lambda handler is here and the runtime
Any idea @certainty ?
The text was updated successfully, but these errors were encountered: