You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
I'm pretty sure the current crowbar interface doesn't have a way of doing this at all, to directly answer your question. I suppose it's also very difficult to create a database connection in Python and hand it off to a Rust module, so perhaps that's not worth investigating either.
I'd like to see if there's a way to run code on import of a rust-cpython module. Then I'd need to make the return value of that code accessible to the handler.
Lambda seems to effectively re-use existing processes and keep connections open.
When opening connections directly in the lambda! closure, I'm seeing 20-30ms execution times, but with this, it drops to 2-3ms.
An equivalent (warm) function in Node is also in the 2-3ms range, so this is very good.
Cold starts are also way more efficient than with Node : I'm getting random cold starts between 200-600ms in Node, but nothing above 100ms in Rust yet.
Hey there,
So, I realize this might fall outside the scope of this crate, but Rust + Lambda isn't exactly a common thing yet, anyways :
From the AWS Lamba Python doc :
My question is, is there any way to do this in Rust, and if not, what would you recommend ?
The text was updated successfully, but these errors were encountered: