DEV Community

loading...

Discussion on: AWS Lambda + Rust

Collapse
ksnyde profile image
Ken Snyder

Thanks for the article. I'm completely new to RUST but have been using Lambda for years and one thing I'd be interested in is whether RUST performs better in AWS Lambda. I've not seen any information on this and this benefit might be the reason why people would switch away from more easily achieved Javascript/Typescript lambdas.

Collapse
ksnyde profile image
Ken Snyder

I guess to add onto this ... if not performance ... why? I'm not questioning RUST in this use case as much as just wondering why folks would take on a less known language that has less direct support and examples to work off of.

Collapse
rad_val_ profile image
Valentin Radu Author

Thanks for reading! I didn't test the performance. I suppose it's better than NodeJS since it eliminates some of VM overhead, however, I also feel that lambdas are many times slow for other reasons related to how they are orchestrated, and unrelated to the hosted function itself (again, I haven't tested this either, just a hunch from experience)

In any case, I'm pretty new to Rust as well and the reason I did this is because I like it as a language and (very important) its ecosystem too: it's a pleasure to use.

I realize this might not scale well talent-wise (aka, if you start a Rust project you automatically reduce the talent pool by 80%), but, for my particular use case that's not such a problem.