by youeseh · 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?
When you need to use Futures, it's a bit more fiddly (you can't wing it, you really need to understand lifetimes and how the Future types are composed). I'm hoping the upcoming async/await syntax sugar will lower the barrier to entry here.
What I found was: - Elixir, has awesome support for concurrency and zero-downtime deployments. Runs on Erlang VM. Inspired by Ruby.
- Rust - replacement C/C++ as the low-level programming language of the future for people who want to write pretty code.
so does rust.
> Rust - replacement C/C++ as the low-level programming language of the future for people who want to write pretty code.
It's not just that, it also replaces say python or ruby on the serverside.
> write pretty code.
Yeah, no, it's for people who want to be productive in a low level language.
Rust is great, but it's pretty hard to argue that any language has more awesome support for concurrency than the beam languages.
Now, the performance of Rust is aspect that Erlang/Elixir will never close to reaching.