by staticassertion · 7y ago · 0 comments
They work great, I've been able to iterate extremely quickly on a system that has had its requirements changed quite a lot over time.
I haven't spent much time optimizing my code at this point but they execute extremely quickly, much faster than my Python lambdas.
Regarding the author's complaints:
I haven't needed any async. I use threads and it's fine. When async/await is a thing I'll use it, maybe - I really don't think it's going to make a difference but it might free up some memory that I can throw at caching.
Error handing in Rust is still a bit uncomfortable. The failure crate has been working for me but it doesn't always feel 'right'.
those are not servers! In fact the branding of AWS lambda is exactly "serverless". You don't have to have process restart logic, they're very transient, if a process error causes a crash (yes that happens even in rust) the entire thing is taken down. They're less of a server than a kubernetes-orchestrated container.
I don't think it changes anything about what I said - process restarts aren't something I'd care about the language for anyways, I'd have a sidecar for that.
I'd love to learn more about how you build and deploy. Do you have any favorite articles / resources that I should look at?
This is before they offered official support though. Here’s the announcement for that, which links to resources: https://aws.amazon.com/blogs/opensource/rust-runtime-for-aws...
Here's a post on how I use AWS's "Cloud Development Kit" to do my deployments. Builds are through Docker.
Source code: https://github.com/insanitybit/grapl