DEV Community

Cover image for Rust on AWS Lambda with Neon & Cloud9

Rust on AWS Lambda with Neon & Cloud9

K on February 22, 2018

Cover image by Ekin Arabacioglu on Flickr Currently I'm trying to become a full-stack developer. After years of front-end development this meant g...
Collapse
 
ben profile image
Ben Halpern

Definitely going to follow this as a guideline for writing my first Rust.

Collapse
 
kayis profile image
K

Now I feel honoured :D

Collapse
 
jorinvo profile image
jorin

Just came across this post and found another interesting project on Github which was not an option in February yet. If you are still interested in Rust on AWS Lambda, check it out: github.com/srijs/rust-aws-lambda

No Javascript involved! Native performance :)
This emulates the same behavior as a Go binary does (since Lambda supports Go now) and can run at least the same speed as a Go Lambda function now.

Collapse
 
kayis profile image
K

Cool. :D

Would be nice to see a performance comparison.

As far as I know C# and JS have rather good startup times on Lambda.

Collapse
 
jorinvo profile image
jorin

Yes, I would also guess that for most use cases the performance difference is not relevant. Still, in theory native should be faster than starting up a JS runtime :)

Thread Thread
 
kayis profile image
K

I guess the AWS Lambda Rust runtime settles it, haha.

github.com/awslabs/aws-lambda-rust...

Thread Thread
 
jorinvo profile image
jorin

Nice! Awesome to see that also Amazon is investing in Rust :)

Collapse
 
kayis profile image
K

Funny how I managed to write a Rust tutorial without writing one line of Rust in it xD

Collapse
 
qm3ster profile image
Mihail Malo

Any notes about performance? Cold boot + throughput?
Also, this suggests that F# is the fastest, but Rust is only popularly invoked through Node.js and Python

Collapse
 
kayis profile image
K

No, sorry.

My last info was, Nodejs outperformed all other runtimes in startup time, nice to see the update for .net :)